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
KindPointerKindThe pointer that drags.
ScreenStartPointThe press position, in physical pixels - lets an element claim only part of itself.
LocalDirectionVector2The movement that crossed the drag threshold, mapped into the element's own space.
StartedFromHoldboolWhether the drag grew out of a press-and-hold.
Properties
Kind
The pointer that drags.
public PointerKind Kind { get; init; }
Property Value
LocalDirection
The movement that crossed the drag threshold, mapped into the element's own space.
public Vector2 LocalDirection { get; init; }
Property Value
ScreenStart
The press position, in physical pixels - lets an element claim only part of itself.
public Point ScreenStart { get; init; }
Property Value
StartedFromHold
Whether the drag grew out of a press-and-hold.
public bool StartedFromHold { get; init; }