![]() |
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 widget drag callbacks. More...
Public Member Functions | |
| WidgetDragEventArgs (WidgetBase widget, PointF startScreenPositionPx, PointF currentScreenPositionPx, WidgetPointerButtonEnum button=WidgetPointerButtonEnum.Left, long tick=0, int pointerId=0) | |
| Initializes a new instance of the WidgetDragEventArgs class. | |
Properties | |
| PointF | StartScreenPositionPx [get] |
| Gets the screen position where the drag began. | |
| PointF | CurrentScreenPositionPx [get] |
| Gets the current pointer position in screen pixels. | |
| WidgetPointerButtonEnum | Button [get] |
| Gets the pointer button used for dragging. | |
| int | PointerId [get] |
| Gets the identifier of the pointer performing the drag. | |
| Vector2 | TotalDeltaPx [get] |
| Gets the total drag offset from the drag start position. | |
| 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 widget drag callbacks.
Definition at line 9 of file WidgetDragEventArgs.cs.
| Gondwana.Widgets.WidgetDragEventArgs.WidgetDragEventArgs | ( | WidgetBase | widget, |
| PointF | startScreenPositionPx, | ||
| PointF | currentScreenPositionPx, | ||
| WidgetPointerButtonEnum | button = WidgetPointerButtonEnum::Left, | ||
| long | tick = 0, | ||
| int | pointerId = 0 ) |
Initializes a new instance of the WidgetDragEventArgs class.
| widget | The widget that raised the event. |
| startScreenPositionPx | The screen position where the drag began. |
| currentScreenPositionPx | The current pointer position in screen pixels. |
| button | The pointer button used for dragging. |
| tick | The engine tick associated with the event. |
| pointerId | The identifier of the pointer performing the drag. |
Definition at line 20 of file WidgetDragEventArgs.cs.
|
get |
Gets the pointer button used for dragging.
Definition at line 47 of file WidgetDragEventArgs.cs.
|
get |
Gets the current pointer position in screen pixels.
Definition at line 42 of file WidgetDragEventArgs.cs.
|
get |
Gets the identifier of the pointer performing the drag.
Definition at line 52 of file WidgetDragEventArgs.cs.
|
get |
Gets the screen position where the drag began.
Definition at line 37 of file WidgetDragEventArgs.cs.
|
get |
Gets the total drag offset from the drag start position.
Definition at line 57 of file WidgetDragEventArgs.cs.