★ wanayoo — archive 1999 https://github.com/livecode/livecode/pull/6307Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[[ 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

livecodeian added 5 commits Jan 31, 2018
MCPointIsEqual - compare two points for equality
MCPointOffset - return the given point shifted by the x, y offset

return true;
}

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

This comment has been minimized.

@livecodeali

livecodeali Feb 21, 2018
Member

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)

This comment has been minimized.

@livecodeian

livecodeian Feb 21, 2018
Author Contributor

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

@livecodeali
Copy link
Member

@livecodeali livecodeali commented Feb 27, 2018

@livecode-vulcan
Copy link
Contributor

@livecode-vulcan livecode-vulcan commented Feb 27, 2018

💙 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

@livecode-vulcan livecode-vulcan commented Feb 28, 2018

😎 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
4 checks passed
4 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/vulcan/cla Contributor Agreement signed by @livecodeian
continuous-integration/vulcan/pr The Vulcan build succeeded on 13 builders
continuous-integration/vulcan/review Approved by reviewer @livecodeali
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.