Table of Contents

Class DraggingShapesState

Namespace
FlowGraph.Avalonia.Input.States
Assembly
FlowGraph.Avalonia.dll

State for dragging selected shapes (CommentElement, etc.).

public class DraggingShapesState : InputStateBase, IInputState
Inheritance
DraggingShapesState
Implements
Inherited Members

Constructors

DraggingShapesState(Graph, Point, Point, ViewportState, FlowCanvasSettings)

public DraggingShapesState(Graph graph, Point viewportPosition, Point canvasPosition, ViewportState viewport, FlowCanvasSettings settings)

Parameters

graph Graph
viewportPosition Point
canvasPosition Point
viewport ViewportState
settings FlowCanvasSettings

Properties

Name

Gets the name of this state for debugging.

public override string Name { get; }

Property Value

string

Methods

Enter(InputStateContext)

Called when entering this state.

public override void Enter(InputStateContext context)

Parameters

context InputStateContext

Exit(InputStateContext)

Called when exiting this state.

public override void Exit(InputStateContext context)

Parameters

context InputStateContext

HandleKeyDown(InputStateContext, KeyEventArgs)

Handles key down events.

public override StateTransitionResult HandleKeyDown(InputStateContext context, KeyEventArgs e)

Parameters

context InputStateContext
e KeyEventArgs

Returns

StateTransitionResult

HandlePointerMoved(InputStateContext, PointerEventArgs)

Handles pointer moved events.

public override StateTransitionResult HandlePointerMoved(InputStateContext context, PointerEventArgs e)

Parameters

context InputStateContext
e PointerEventArgs

Returns

StateTransitionResult

HandlePointerReleased(InputStateContext, PointerReleasedEventArgs)

Handles pointer released events.

public override StateTransitionResult HandlePointerReleased(InputStateContext context, PointerReleasedEventArgs e)

Parameters

context InputStateContext
e PointerReleasedEventArgs

Returns

StateTransitionResult