Skip to content

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
ObjectEventArgsBubbleEventArgsPointerEventArgs ⇦ 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.

public Microsoft.Xna.Framework.Vector2 PreviousPosition { get; }
Property Value

Vector2


Methods

Offset(Vector2)

Creates a clone of this instance with an offset applied to its position.

public StardewUI.Events.PointerMoveEventArgs Offset(Microsoft.Xna.Framework.Vector2 distance);
Parameters

distance   Vector2
The offset distance.

Returns

PointerMoveEventArgs