Class AnimatingViewportState
Input state active during viewport animations (pan/zoom transitions). Allows cancellation via click or key press, and permits zoom wheel interactions.
public class AnimatingViewportState : InputStateBase, IInputState
- Inheritance
-
AnimatingViewportState
- Implements
- Inherited Members
Constructors
AnimatingViewportState(Action?, Action?)
Creates a new viewport animating state.
public AnimatingViewportState(Action? cancelAnimation = null, Action? onExit = null)
Parameters
cancelAnimationActionAction to cancel the running viewport animation.
onExitActionOptional callback when exiting this state.
Properties
IsModal
Gets whether this state blocks other interactions.
public override bool IsModal { get; }
Property Value
Name
Gets the name of this state for debugging.
public override string Name { get; }
Property Value
Methods
Exit(InputStateContext)
Called when exiting this state.
public override void Exit(InputStateContext context)
Parameters
contextInputStateContext
HandleKeyDown(InputStateContext, KeyEventArgs)
Handles key down events.
public override StateTransitionResult HandleKeyDown(InputStateContext context, KeyEventArgs e)
Parameters
contextInputStateContexteKeyEventArgs
Returns
HandlePointerMoved(InputStateContext, PointerEventArgs)
Handles pointer moved events.
public override StateTransitionResult HandlePointerMoved(InputStateContext context, PointerEventArgs e)
Parameters
contextInputStateContextePointerEventArgs
Returns
HandlePointerPressed(InputStateContext, PointerPressedEventArgs, Control?)
Handles pointer pressed events.
public override StateTransitionResult HandlePointerPressed(InputStateContext context, PointerPressedEventArgs e, Control? source)
Parameters
contextInputStateContextePointerPressedEventArgssourceControl
Returns
HandlePointerReleased(InputStateContext, PointerReleasedEventArgs)
Handles pointer released events.
public override StateTransitionResult HandlePointerReleased(InputStateContext context, PointerReleasedEventArgs e)
Parameters
contextInputStateContextePointerReleasedEventArgs
Returns
HandlePointerWheel(InputStateContext, PointerWheelEventArgs)
Handles pointer wheel events.
public override StateTransitionResult HandlePointerWheel(InputStateContext context, PointerWheelEventArgs e)
Parameters
contextInputStateContextePointerWheelEventArgs