Table of Contents

Enum HitTargetType

Namespace
FlowGraph.Core.Input
Assembly
FlowGraph.Core.dll

The type of element hit during a graph hit test.

[Flags]
public enum HitTargetType

Fields

All = Canvas | Port | ResizeHandle | Waypoint | Selectable | Custom | ShapeResizeHandle

All element types (for catch-all processors).

Canvas = 1

Empty canvas space was hit.

Custom = 256

A custom element type was hit.

Draggable = Node | Group | Shape

All draggable elements (nodes, shapes, groups).

Edge = 4

An edge/connection was hit.

Group = 32

A group/container was hit.

Node = 2

A node was hit.

None = 0

Nothing was hit (empty canvas space).

Port = 8

A port on a node was hit.

ResizeHandle = 16

A resize handle was hit.

Selectable = Edge | Draggable

All selectable elements.

Shape = 128

A shape (non-node visual element) was hit.

ShapeResizeHandle = 512

A resize handle on a shape was hit.

Waypoint = 64

A waypoint on an edge was hit.

Remarks

Uses FlagsAttribute to enable efficient bitwise operations for processors that handle multiple element types. This allows O(1) type checking instead of list iteration on high-frequency events like PointerMoved.

Example: A processor handling both Node and Group can use:

HitTargetTypes.Node | HitTargetTypes.Group