![]() |
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.
|
Event arguments for pointer-based widget callbacks. More...
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. | |
Event arguments for pointer-based widget callbacks.
Definition at line 10 of file WidgetPointerEventArgs.cs.
| 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.
| widget | The widget that raised the event. |
| view | The view through which the pointer interaction was routed. |
| screenPositionPx | The pointer position in screen pixels. |
| button | The pointer button involved in the interaction. |
| clickCount | The number of clicks associated with this pointer action. |
| deltaPx | The movement delta in pixels since the previous pointer update. |
| tick | The engine tick associated with the event. |
| pointerId | The 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.
|
get |
Gets the pointer button involved in the interaction.
Definition at line 63 of file WidgetPointerEventArgs.cs.
|
get |
Gets the number of clicks associated with this pointer action.
Definition at line 68 of file WidgetPointerEventArgs.cs.
|
get |
Gets the movement delta in pixels since the previous pointer update.
Definition at line 73 of file WidgetPointerEventArgs.cs.
|
get |
Gets whether the pointer event represents a primary-button interaction.
Definition at line 83 of file WidgetPointerEventArgs.cs.
|
get |
Gets the identifier of the pointer that produced the event.
Definition at line 78 of file WidgetPointerEventArgs.cs.
|
get |
Gets the pointer position in screen pixels.
Definition at line 58 of file WidgetPointerEventArgs.cs.
|
get |
Gets the view through which the pointer interaction was routed.
Definition at line 47 of file WidgetPointerEventArgs.cs.
|
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.