Table of Contents

Struct DragClaimContext

Namespace
Icy.UI
Assembly
IcyUI.dll

Describes a starting drag to an element deciding whether to claim it (see GetDragAxes(in DragClaimContext)).

public readonly record struct DragClaimContext : IEquatable<DragClaimContext>
Implements
Inherited Members
Extension Methods

Constructors

DragClaimContext(PointerKind, Point, Vector2, bool)

Describes a starting drag to an element deciding whether to claim it (see GetDragAxes(in DragClaimContext)).

public DragClaimContext(PointerKind Kind, Point ScreenStart, Vector2 LocalDirection, bool StartedFromHold)

Parameters

Kind PointerKind

The pointer that drags.

ScreenStart Point

The press position, in physical pixels - lets an element claim only part of itself.

LocalDirection Vector2

The movement that crossed the drag threshold, mapped into the element's own space.

StartedFromHold bool

Whether the drag grew out of a press-and-hold.

Properties

Kind

The pointer that drags.

public PointerKind Kind { get; init; }

Property Value

PointerKind

LocalDirection

The movement that crossed the drag threshold, mapped into the element's own space.

public Vector2 LocalDirection { get; init; }

Property Value

Vector2

ScreenStart

The press position, in physical pixels - lets an element claim only part of itself.

public Point ScreenStart { get; init; }

Property Value

Point

StartedFromHold

Whether the drag grew out of a press-and-hold.

public bool StartedFromHold { get; init; }

Property Value

bool