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.WidgetEventArgs Class Referenceabstract

Base event argument type for Gondwana widget callbacks. More...

Inheritance diagram for Gondwana.Widgets.WidgetEventArgs:
Gondwana.Widgets.WidgetDragEventArgs Gondwana.Widgets.WidgetKeyboardEventArgs Gondwana.Widgets.WidgetMouseWheelEventArgs Gondwana.Widgets.WidgetPointerEventArgs

Protected Member Functions

 WidgetEventArgs (WidgetBase widget, long tick)
 Initializes a new instance of the WidgetEventArgs class.

Properties

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.

Detailed Description

Base event argument type for Gondwana widget callbacks.

Definition at line 6 of file WidgetEventArgs.cs.

Constructor & Destructor Documentation

◆ WidgetEventArgs()

Gondwana.Widgets.WidgetEventArgs.WidgetEventArgs ( WidgetBase widget,
long tick )
protected

Initializes a new instance of the WidgetEventArgs class.

Parameters
widgetThe widget that raised the event.
tickThe engine or timer tick associated with the event.
Exceptions
ArgumentNullExceptionThrown when widget is null.

Definition at line 14 of file WidgetEventArgs.cs.

Property Documentation

◆ Handled

bool Gondwana.Widgets.WidgetEventArgs.Handled
getset

Gets or sets whether this widget interaction was handled.

Definition at line 33 of file WidgetEventArgs.cs.

◆ Tick

long Gondwana.Widgets.WidgetEventArgs.Tick
get

Gets the engine or timer tick associated with the callback.

Definition at line 28 of file WidgetEventArgs.cs.

◆ Widget

WidgetBase Gondwana.Widgets.WidgetEventArgs.Widget
get

Gets the widget that raised the callback.

Definition at line 23 of file WidgetEventArgs.cs.