Class PointerMoveEventArgs
Definition
Namespace: StardewUI.Events
Assembly: StardewUI.dll
Event arguments for pointer movement relative to some view.
public class PointerMoveEventArgs : StardewUI.Events.PointerEventArgs,
StardewUI.Layout.IOffsettable<StardewUI.Events.PointerMoveEventArgs>
Inheritance
Object ⇦ EventArgs ⇦ BubbleEventArgs ⇦ PointerEventArgs ⇦ PointerMoveEventArgs
Implements
IOffsettable<PointerMoveEventArgs>
Members
Constructors
Name | Description |
---|---|
PointerMoveEventArgs(Vector2, Vector2) | Event arguments for pointer movement relative to some view. |
Properties
Name | Description |
---|---|
Handled | Whether or not the view receiving the event handled the event. Set to true to prevent bubbling.(Inherited from BubbleEventArgs) |
Position | The position, relative to the view receiving the event, of the pointer when the event occurred. (Inherited from PointerEventArgs) |
PreviousPosition | The previously-tracked position of the pointer. |
Methods
Name | Description |
---|---|
Offset(Vector2) | Creates a clone of this instance with an offset applied to its position. |
Details
Constructors
PointerMoveEventArgs(Vector2, Vector2)
Event arguments for pointer movement relative to some view.
public PointerMoveEventArgs(Microsoft.Xna.Framework.Vector2 previousPosition, Microsoft.Xna.Framework.Vector2 position);
Parameters
previousPosition
Vector2
The previously-tracked position of the pointer.
position
Vector2
The new pointer position.
Properties
PreviousPosition
The previously-tracked position of the pointer.
Property Value
Methods
Offset(Vector2)
Creates a clone of this instance with an offset applied to its position.
Parameters
distance
Vector2
The offset distance.