Table of Contents

Class ResizeHandleProcessor

Namespace
FlowGraph.Avalonia.Input.Processors
Assembly
FlowGraph.Avalonia.dll

Processes input for resize handles (both node and shape).

public class ResizeHandleProcessor : InputProcessorBase, IInputProcessor
Inheritance
ResizeHandleProcessor
Implements
Inherited Members

Remarks

This processor has the HIGHEST priority because resize handles are small targets that sit on top of their parent elements. Without priority, clicks intended for resize handles would be captured by the parent node/shape.

Key Design Decision: Resize handles for nodes and shapes both use ResizeHandle, distinguished by the Target type:

  • Node resize: check ResizeHandleOwner
  • Shape resize: check for shape info in Target (future enhancement)

Properties

HandledTypes

The hit target types this processor handles (bitmask). Use bitwise OR to handle multiple types: HitTargetType.Node | HitTargetType.Group

public override HitTargetType HandledTypes { get; }

Property Value

HitTargetType

Name

Display name for debugging.

public override string Name { get; }

Property Value

string

Priority

Priority for checking this processor. Higher = checked first.

public override int Priority { get; }

Property Value

int

Methods

HandlePointerPressed(InputStateContext, GraphHitTestResult, PointerPressedEventArgs)

Handles pointer pressed on an element this processor is responsible for.

public override InputProcessorResult HandlePointerPressed(InputStateContext context, GraphHitTestResult hit, PointerPressedEventArgs e)

Parameters

context InputStateContext

The input state context.

hit GraphHitTestResult

The hit test result (guaranteed to be a type from HandledTypes).

e PointerPressedEventArgs

The Avalonia pointer event.

Returns

InputProcessorResult

Result indicating whether handled and any state transition.