Struct GestureRoute<TRegion>
- Namespace
- SharpConsoleUI.Helpers
- Assembly
- SharpConsoleUI.dll
The routing result of a mouse event through MouseGestureCapture<TRegion>: the gesture phase and the region the event is routed to.
public readonly record struct GestureRoute<TRegion> : IEquatable<GestureRoute<TRegion>> where TRegion : struct, Enum
Type Parameters
TRegionThe control's sub-region enum.
- Implements
-
IEquatable<GestureRoute<TRegion>>
- Inherited Members
- Extension Methods
Constructors
GestureRoute(GesturePhase, TRegion)
The routing result of a mouse event through MouseGestureCapture<TRegion>: the gesture phase and the region the event is routed to.
public GestureRoute(GesturePhase Phase, TRegion Region)
Parameters
PhaseGesturePhaseThe gesture phase.
RegionTRegionThe region the event is routed to (the captured region during a gesture).
Properties
Phase
The gesture phase.
public GesturePhase Phase { get; init; }
Property Value
Region
The region the event is routed to (the captured region during a gesture).
public TRegion Region { get; init; }
Property Value
- TRegion