Struct PluginMapInput
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
Input delivered by a map surface.
public readonly record struct PluginMapInput : IEquatable<PluginMapInput>
- Implements
- Inherited Members
Constructors
PluginMapInput(PluginMapInputKind, PluginMapPixel, double, string?)
Input delivered by a map surface.
public PluginMapInput(PluginMapInputKind Kind, PluginMapPixel Position, double WheelDelta = 0, string? MarkerId = null)
Parameters
KindPluginMapInputKindWhat the pointer did.
PositionPluginMapPixelWhere on the map's image the pointer was.
WheelDeltadoubleHow far the wheel turned, for a wheel event; zero otherwise.
MarkerIdstringThe marker under the pointer, or null when there was none.
Properties
Kind
What the pointer did.
public PluginMapInputKind Kind { get; init; }
Property Value
MarkerId
The marker under the pointer, or null when there was none.
public string? MarkerId { get; init; }
Property Value
Position
Where on the map's image the pointer was.
public PluginMapPixel Position { get; init; }
Property Value
WheelDelta
How far the wheel turned, for a wheel event; zero otherwise.
public double WheelDelta { get; init; }