Table of Contents

Class PointerGestures

Namespace
Xui.Core.UI.Input
Assembly
Xui.Core.dll

Singleton gesture markers used by simple widgets when capturing a pointer. Reusing these avoids per-event heap allocation. Widgets that need to carry extra state can implement IPointerGesture on their own type and pass an instance to CapturePointer instead.

public static class PointerGestures
Inheritance
PointerGestures
Inherited Members

Properties

Drag

Generic drag (e.g. color wheel, slider thumb) — ancestors must not steal.

public static IDrag Drag { get; }

Property Value

IDrag

DragHorizontalTentative

A horizontal-axis drag that is tentatively willing to yield to a vertical-axis ancestor (see IDragHorizontalTentative). Replace with Drag once horizontal motion has firmly committed.

public static IDragHorizontalTentative DragHorizontalTentative { get; }

Property Value

IDragHorizontalTentative

Tap

Generic tap (e.g. Button, Checkbox) — may be stolen by an ancestor drag.

public static ITap Tap { get; }

Property Value

ITap