Gondwana Game Engine Development (master) - 2.6.1
Gondwana is a cross-platform 2.5D game and rendering engine written in C#/.NET 8. It provides fine-grained control over rendering, timing, and scene composition, with built-in support for parallax, z-ordering, pixel overhang, collision detection, and particle effects. Gondwana targets desktop and web platforms using SkiaSharp for graphics and pluggable audio backends for desktop and browser targets.
Loading...
Searching...
No Matches
Gondwana.Widgets.WidgetMouseWheelEventArgs Class Referencesealed

Event arguments for mouse-wheel input routed to a widget. More...

Inheritance diagram for Gondwana.Widgets.WidgetMouseWheelEventArgs:
Gondwana.Widgets.WidgetEventArgs

Public Member Functions

 WidgetMouseWheelEventArgs (WidgetBase widget, View view, PointF screenPositionPx, int delta, long tick=0)
 Initializes a new wheel event.

Properties

View View [get]
 Gets the view through which the input was routed.
PointF ScreenPositionPx [get]
 Gets the pointer position in screen pixels.
int Delta [get]
 Gets the wheel delta. Positive values scroll upward; negative values scroll downward.
Properties inherited from Gondwana.Widgets.WidgetEventArgs
WidgetBase Widget [get]
 Gets the widget that raised the callback.
long Tick [get]
 Gets the engine or timer tick associated with the callback.
bool Handled [get, set]
 Gets or sets whether this widget interaction was handled.

Additional Inherited Members

Protected Member Functions inherited from Gondwana.Widgets.WidgetEventArgs
 WidgetEventArgs (WidgetBase widget, long tick)
 Initializes a new instance of the WidgetEventArgs class.

Detailed Description

Event arguments for mouse-wheel input routed to a widget.

Definition at line 9 of file WidgetMouseWheelEventArgs.cs.

Constructor & Destructor Documentation

◆ WidgetMouseWheelEventArgs()

Gondwana.Widgets.WidgetMouseWheelEventArgs.WidgetMouseWheelEventArgs ( WidgetBase widget,
View view,
PointF screenPositionPx,
int delta,
long tick = 0 )

Initializes a new wheel event.

Parameters
widgetThe widget.
viewThe view used for presentation and coordinate conversion.
screenPositionPxThe screen position px.
deltaThe delta.
tickThe current engine tick.

Definition at line 17 of file WidgetMouseWheelEventArgs.cs.

Property Documentation

◆ Delta

int Gondwana.Widgets.WidgetMouseWheelEventArgs.Delta
get

Gets the wheel delta. Positive values scroll upward; negative values scroll downward.

Definition at line 32 of file WidgetMouseWheelEventArgs.cs.

◆ ScreenPositionPx

PointF Gondwana.Widgets.WidgetMouseWheelEventArgs.ScreenPositionPx
get

Gets the pointer position in screen pixels.

Definition at line 29 of file WidgetMouseWheelEventArgs.cs.

◆ View

View Gondwana.Widgets.WidgetMouseWheelEventArgs.View
get

Gets the view through which the input was routed.

Definition at line 26 of file WidgetMouseWheelEventArgs.cs.