/// <description> /// If #useMouseEvents is true, this is called when the mouse cursor moves off the button (only if the button had previously received an onMouseEvent() event). /// </description> public virtual void OnMouseLeave() { InternalUnsafeMethods.OnMouseLeave__Args _args = new InternalUnsafeMethods.OnMouseLeave__Args() { }; InternalUnsafeMethods.OnMouseLeave()(ObjectPtr, _args); }
/// <summary>Callback that occurs whenever the mouse leaves this control.</summary> /// <description> /// /// </description> /// <param name="modifier">Key that was pressed during this callback. Values are: /// /// $EventModifier::RSHIFT /// /// $EventModifier::SHIFT /// /// $EventModifier::LCTRL /// /// $EventModifier::RCTRL /// /// $EventModifier::CTRL /// /// $EventModifier::CTRL /// /// $EventModifier::RALT /// /// $EventModifier::ALT</param> /// <param name="mousePoint">X/Y location of the mouse point</param> /// <param name="mouseClickCount">How many mouse clicks have occured for this event</param> /// <code> /// // Mouse left this control, causing the callback /// GuiMouseEventCtrl::onMouseLeave(%this,%modifier,%mousePoint,%mouseClickCount) /// { /// // Code to call when a mouse event occurs. /// } /// </code> /// <see cref="GuiControl" /> public virtual void OnMouseLeave(int modifier, Point2I mousePoint, int mouseClickCount) { mousePoint.Alloc(); InternalUnsafeMethods.OnMouseLeave__Args _args = new InternalUnsafeMethods.OnMouseLeave__Args() { modifier = modifier, mousePoint = mousePoint.internalStructPtr, mouseClickCount = mouseClickCount, }; InternalUnsafeMethods.OnMouseLeave()(ObjectPtr, _args); mousePoint.Free(); }