Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

[[ Emscripten ]] Native HTML5 Button Widget #6307

Merged
merged 19 commits into from
Feb 28, 2018

Conversation

livecodeian
Copy link
Contributor

@livecodeian livecodeian commented Jan 31, 2018

This PR implements a LCB widget containing a native HTML button element.
In addition, enhancements have been made to the bridging of values between JavaScript and LCB. It is now possible to pass JavaScript objects as MCJSObjectRef values, which can be used as parameter values when calling javascript code from LCB.

DEPENDS ON PR: livecode/livecode-ide#1902


return true;
}

MCScreenDC::MCScreenDC()
: m_main_window(nil), m_mouse_button_state(0)
{
m_mouse_position = MCPointMake(-1,-1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would : m_main_window(nil), m_mouse_button_state(0), m_mouse_position({-1, -1}) work here? Just curious as it would be slightly more efficient (not that this class is constructed very often :-D)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something like m_mouse_position{-1, -1} should work I think.

@livecodeali
Copy link
Member

@livecode-vulcan review ok 3645b56

@livecode-vulcan
Copy link
Contributor

💙 review by @livecodeali ok 3645b56

livecode-vulcan added a commit that referenced this pull request Feb 27, 2018
…tton

[[ Emscripten ]] Native HTML5 Button Widget

This PR implements a LCB widget containing a native HTML button element.
In addition, enhancements have been made to the bridging of values between JavaScript and LCB. It is now possible to pass JavaScript objects as MCJSObjectRef values, which can be used as parameter values when calling javascript code from LCB.

DEPENDS ON PR: livecode/livecode-ide#1902
@livecode-vulcan
Copy link
Contributor

😎 test success 3645b56

  • try-community-armv6-android-api8: success
  • try-community-armv6-android-api9: success
  • try-community-js-emscripten-sdk1.35: success
  • try-community-universal-ios-iphoneos11.2: success
  • try-community-universal-ios-iphonesimulator11.2: success
  • try-community-universal-mac-macosx10.6: success
  • try-community-universal-mac-macosx10.9: success
  • try-community-x86-linux-debian7: success
  • try-community-x86-linux-debian8: success
  • try-community-x86_64-linux-debian7: success
  • try-community-x86_64-linux-debian8: success
  • try-community-x86-win32: success
  • try-community-x86_64-win32: success

@livecodeali livecodeali merged commit 365b250 into livecode:develop Feb 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants