Ejemplo n.º 1
0
 /// <description>
 /// If #useMouseEvents is true, this is called when a left mouse button drag is detected, i.e. when the user pressed the left mouse button on the control and then moves the mouse over a certain distance threshold with the mouse button still pressed.
 /// </description>
 public virtual void OnMouseDragged()
 {
     InternalUnsafeMethods.OnMouseDragged__Args _args = new InternalUnsafeMethods.OnMouseDragged__Args()
     {
     };
     InternalUnsafeMethods.OnMouseDragged()(ObjectPtr, _args);
 }
Ejemplo n.º 2
0
 /// <summary>Callback that occurs whenever the mouse is dragged 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 dragged in this control, causing the callback
 /// GuiMouseEventCtrl::onMouseDragged(%this,%modifier,%mousePoint,%mouseClickCount)
 /// {
 ///     // Code to call when a mouse event occurs.
 /// }
 /// </code>
 /// <see cref="GuiControl" />
 public virtual void OnMouseDragged(int modifier, Point2I mousePoint, int mouseClickCount)
 {
     mousePoint.Alloc();             InternalUnsafeMethods.OnMouseDragged__Args _args = new InternalUnsafeMethods.OnMouseDragged__Args()
     {
         modifier        = modifier,
         mousePoint      = mousePoint.internalStructPtr,
         mouseClickCount = mouseClickCount,
     };
     InternalUnsafeMethods.OnMouseDragged()(ObjectPtr, _args);
     mousePoint.Free();
 }