Class GraphEditFilter

Namespace
Forma
Assembly
Forma.dll

Input filter overlay used by graph editors to consume canvas gestures without affecting nodes underneath.

public sealed class GraphEditFilter : Control, IAddChild<Control>, IAddChild, INotifyPropertyChanged
Inheritance
GraphEditFilter
Implements
Inherited Members

Constructors

GraphEditFilter()

public GraphEditFilter()

Methods

PointerPressed(Point)

A pointer press landed on this control, in global coordinates.

Protected as well as internal so a control defined outside this assembly can take part in pointer input. Without that, an app hosting its own drawing surface has to read raw mouse state instead, which bypasses hit-testing, modal gating and the injection side-channel — so such a surface cannot be driven by a test at all.

protected override void PointerPressed(Point position)

Parameters

position Point

PointerReleased(Point, bool)

The pointer was released, with whether it was still inside this control.

protected override void PointerReleased(Point position, bool isInside)

Parameters

position Point
isInside bool

Events

CanvasPressed

public event Action<GraphEditFilter, Point> CanvasPressed

Event Type

Action<GraphEditFilter, Point>

CanvasReleased

public event Action<GraphEditFilter, Point> CanvasReleased

Event Type

Action<GraphEditFilter, Point>