Struct PluginPointerEvent
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
One pointer event on a canvas, in the canvas's own pixels from its top-left corner, y down, at whatever anchor, offset or interface scale the canvas is shown at.
public readonly record struct PluginPointerEvent : IEquatable<PluginPointerEvent>
- Implements
- Inherited Members
Constructors
PluginPointerEvent(PluginPointerEventKind, PluginPoint, PluginPointerButton, PluginKeyModifiers, int)
One pointer event on a canvas, in the canvas's own pixels from its top-left corner, y down, at whatever anchor, offset or interface scale the canvas is shown at.
public PluginPointerEvent(PluginPointerEventKind Kind, PluginPoint Position, PluginPointerButton Button, PluginKeyModifiers Modifiers, int WheelDelta = 0)
Parameters
KindPluginPointerEventKindWhat the pointer did.
PositionPluginPointWhere, in the canvas's own pixels; outside the canvas's rectangle only during a drag.
ButtonPluginPointerButtonThe button the event is about: the one pressed, released or held during a move; None for a wheel turn.
ModifiersPluginKeyModifiersThe modifier keys held at the time.
WheelDeltaintHow far the wheel turned, in notches, positive away from the user; zero for everything but Wheel.
Properties
Button
The button the event is about: the one pressed, released or held during a move; None for a wheel turn.
public PluginPointerButton Button { get; init; }
Property Value
Kind
What the pointer did.
public PluginPointerEventKind Kind { get; init; }
Property Value
Modifiers
The modifier keys held at the time.
public PluginKeyModifiers Modifiers { get; init; }
Property Value
Position
Where, in the canvas's own pixels; outside the canvas's rectangle only during a drag.
public PluginPoint Position { get; init; }
Property Value
WheelDelta
How far the wheel turned, in notches, positive away from the user; zero for everything but Wheel.
public int WheelDelta { get; init; }