Table of Contents

Class MouseDragEventArgs

Namespace
Gloam.Core.Ui.EventArgs
Assembly
Gloam.Core.Ui.dll

Event arguments for mouse drag events

public sealed class MouseDragEventArgs : EventArgs
Inheritance
MouseDragEventArgs
Inherited Members

Constructors

MouseDragEventArgs(Position, Position, int, int, MouseButtonType, bool, bool, bool)

Initializes a new instance of MouseDragEventArgs

public MouseDragEventArgs(Position startPosition, Position currentPosition, int deltaX, int deltaY, MouseButtonType button, bool shift, bool alt, bool ctrl)

Parameters

startPosition Position

The position where the drag started

currentPosition Position

The current position during drag

deltaX int

The change in X position

deltaY int

The change in Y position

button MouseButtonType

The mouse button being dragged

shift bool

Whether Shift was held

alt bool

Whether Alt was held

ctrl bool

Whether Ctrl was held

Properties

Alt

Whether Alt was held during the drag

public bool Alt { get; }

Property Value

bool

Button

The mouse button being used for dragging

public MouseButtonType Button { get; }

Property Value

MouseButtonType

Ctrl

Whether Ctrl was held during the drag

public bool Ctrl { get; }

Property Value

bool

CurrentPosition

The current position during the drag

public Position CurrentPosition { get; }

Property Value

Position

DeltaX

The change in X position since the last drag event

public int DeltaX { get; }

Property Value

int

DeltaY

The change in Y position since the last drag event

public int DeltaY { get; }

Property Value

int

Shift

Whether Shift was held during the drag

public bool Shift { get; }

Property Value

bool

StartPosition

The position where the drag started

public Position StartPosition { get; }

Property Value

Position