Table of Contents

Class ResizingShapeState

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

State for resizing a shape element via drag handles.

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

Constructors

ResizingShapeState(ShapeElement, ResizeHandlePosition, Point, FlowCanvasSettings, ViewportState)

public ResizingShapeState(ShapeElement shape, ResizeHandlePosition handlePosition, Point startPoint, FlowCanvasSettings settings, ViewportState viewport)

Parameters

shape ShapeElement
handlePosition ResizeHandlePosition
startPoint Point
settings FlowCanvasSettings
viewport ViewportState

Properties

Name

Gets the name of this state for debugging.

public override string Name { get; }

Property Value

string

Methods

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