react_juce/core/View.cpp
static juce::var makeViewEventObject (const juce::MouseEvent& me, const View &view)
        {
            // TODO: Get all of it!
            return makeViewEventObject({
                {"x", me.x},
                {"y", me.y},
                {"screenX", me.getScreenX()},
                {"screenY", me.getScreenY()},
                {"relatedTarget", getMouseEventRelatedTarget(me, view)}
            }, view);
        }
/** Another little helper for DynamicObject construction. */
Another little helper for DynamicObject construction.
Another little helper for DynamicObject construction .
static juce::var makeViewEventObject (const juce::MouseEvent& me, const View &view)
        {
            return makeViewEventObject({
                {"x", me.x},
                {"y", me.y},
                {"screenX", me.getScreenX()},
                {"screenY", me.getScreenY()},
                {"relatedTarget", getMouseEventRelatedTarget(me, view)}
            }, view);
        }
static juce :: var makeViewEventObject ( const juce :: MouseEvent & me , const View & view ) { return makeViewEventObject ( { { " " , me . x } , { " " , me . y } , { " " , me . getScreenX ( ) } , { " " , me . getScreenY ( ) } , { " " , getMouseEventRelatedTarget ( me , view ) } } , view ) ; }
Another little helper for DynamicObject construction.
Another little helper for DynamicObject construction .
// TODO: Get all of it!