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.WidgetPointerEventArgs Class Referencesealed

Event arguments for pointer-based widget callbacks. More...

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

Public Member Functions

 WidgetPointerEventArgs (WidgetBase widget, View view, PointF screenPositionPx, WidgetPointerButtonEnum button=WidgetPointerButtonEnum.None, int clickCount=0, Vector2 deltaPx=default, long tick=0, int pointerId=0)
 Initializes a new instance of the WidgetPointerEventArgs class.

Properties

View View [get]
 Gets the view through which the pointer interaction was routed.
PointF WrappedOffsetWorldPx [get, set]
 World-space translation of the selected periodic widget instance. Retained throughout pointer capture; zero for view-space widgets and canonical copies.
PointF ScreenPositionPx [get]
 Gets the pointer position in screen pixels.
WidgetPointerButtonEnum Button [get]
 Gets the pointer button involved in the interaction.
int ClickCount [get]
 Gets the number of clicks associated with this pointer action.
Vector2 DeltaPx [get]
 Gets the movement delta in pixels since the previous pointer update.
int PointerId [get]
 Gets the identifier of the pointer that produced the event.
bool IsPrimaryButton [get]
 Gets whether the pointer event represents a primary-button interaction.
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 pointer-based widget callbacks.

Definition at line 10 of file WidgetPointerEventArgs.cs.

Constructor & Destructor Documentation

◆ WidgetPointerEventArgs()

Gondwana.Widgets.WidgetPointerEventArgs.WidgetPointerEventArgs ( WidgetBase widget,
View view,
PointF screenPositionPx,
WidgetPointerButtonEnum button = WidgetPointerButtonEnum::None,
int clickCount = 0,
Vector2 deltaPx = default,
long tick = 0,
int pointerId = 0 )

Initializes a new instance of the WidgetPointerEventArgs class.

Parameters
widgetThe widget that raised the event.
viewThe view through which the pointer interaction was routed.
screenPositionPxThe pointer position in screen pixels.
buttonThe pointer button involved in the interaction.
clickCountThe number of clicks associated with this pointer action.
deltaPxThe movement delta in pixels since the previous pointer update.
tickThe engine tick associated with the event.
pointerIdThe identifier of the pointer that produced the event. Mouse input uses WidgetInputRouter.MousePointerId; touch input uses its contact ID.

Definition at line 26 of file WidgetPointerEventArgs.cs.

Property Documentation

◆ Button

WidgetPointerButtonEnum Gondwana.Widgets.WidgetPointerEventArgs.Button
get

Gets the pointer button involved in the interaction.

Definition at line 63 of file WidgetPointerEventArgs.cs.

◆ ClickCount

int Gondwana.Widgets.WidgetPointerEventArgs.ClickCount
get

Gets the number of clicks associated with this pointer action.

Definition at line 68 of file WidgetPointerEventArgs.cs.

◆ DeltaPx

Vector2 Gondwana.Widgets.WidgetPointerEventArgs.DeltaPx
get

Gets the movement delta in pixels since the previous pointer update.

Definition at line 73 of file WidgetPointerEventArgs.cs.

◆ IsPrimaryButton

bool Gondwana.Widgets.WidgetPointerEventArgs.IsPrimaryButton
get

Gets whether the pointer event represents a primary-button interaction.

Definition at line 83 of file WidgetPointerEventArgs.cs.

◆ PointerId

int Gondwana.Widgets.WidgetPointerEventArgs.PointerId
get

Gets the identifier of the pointer that produced the event.

Definition at line 78 of file WidgetPointerEventArgs.cs.

◆ ScreenPositionPx

PointF Gondwana.Widgets.WidgetPointerEventArgs.ScreenPositionPx
get

Gets the pointer position in screen pixels.

Definition at line 58 of file WidgetPointerEventArgs.cs.

◆ View

View Gondwana.Widgets.WidgetPointerEventArgs.View
get

Gets the view through which the pointer interaction was routed.

Definition at line 47 of file WidgetPointerEventArgs.cs.

◆ WrappedOffsetWorldPx

PointF Gondwana.Widgets.WidgetPointerEventArgs.WrappedOffsetWorldPx
getset

World-space translation of the selected periodic widget instance. Retained throughout pointer capture; zero for view-space widgets and canonical copies.

Definition at line 53 of file WidgetPointerEventArgs.cs.