Skip to content

TilePanelZoomEventArgs ​

Namespace: Hex1b.Events

Assembly: Hex1b.dll

Event arguments for TilePanel zoom events.

csharp
public sealed class TilePanelZoomEventArgs : WidgetEventArgs<TilePanelWidget, TilePanelNode>

Inheritance ​

Object → WidgetEventArgs → WidgetEventArgs<TilePanelWidget, TilePanelNode> → TilePanelZoomEventArgs

Properties ​

Delta ​

The zoom delta (+1 for zoom in, -1 for zoom out).

Returns: Int32

csharp
public int Delta { get; }

NewZoomLevel ​

The new zoom level after the zoom change.

Returns: Int32

csharp
public int NewZoomLevel { get; }

PivotX ​

The X coordinate in tile-space that the zoom should pivot around. For mouse-initiated zooms, this is the tile-space position under the cursor. For keyboard zooms, this equals (viewport center).

Returns: Double

csharp
public double PivotX { get; }

PivotY ​

The Y coordinate in tile-space that the zoom should pivot around. For mouse-initiated zooms, this is the tile-space position under the cursor. For keyboard zooms, this equals (viewport center).

Returns: Double

csharp
public double PivotY { get; }

Released under the MIT License.