Exemple #1
0
 /// <description>
 /// If #useMouseEvents is true, this is called when the left mouse button is release over an (active) button.
 /// </description>
 /// <remarks> To trigger actions, better use onClick() since onMouseUp() will also be called when the mouse was not originally pressed on the button.</remarks>
 public virtual void OnMouseUp()
 {
     InternalUnsafeMethods.OnMouseUp__Args _args = new InternalUnsafeMethods.OnMouseUp__Args()
     {
     };
     InternalUnsafeMethods.OnMouseUp()(ObjectPtr, _args);
 }
Exemple #2
0
 /// <summary>Callback that occurs whenever the mouse is released while in 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 was released in this control, causing the callback
 /// GuiMouseEventCtrl::onMouseUp(%this,%modifier,%mousePoint,%mouseClickCount)
 /// {
 ///     // Code to call when a mouse event occurs.
 /// }
 /// </code>
 /// <see cref="GuiControl" />
 public virtual void OnMouseUp(int modifier, Point2I mousePoint, int mouseClickCount)
 {
     mousePoint.Alloc();             InternalUnsafeMethods.OnMouseUp__Args _args = new InternalUnsafeMethods.OnMouseUp__Args()
     {
         modifier        = modifier,
         mousePoint      = mousePoint.internalStructPtr,
         mouseClickCount = mouseClickCount,
     };
     InternalUnsafeMethods.OnMouseUp()(ObjectPtr, _args);
     mousePoint.Free();
 }