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

Event arguments for widget drag callbacks. More...

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

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.

Detailed Description

Event arguments for widget drag callbacks.

Definition at line 9 of file WidgetDragEventArgs.cs.

Constructor & Destructor Documentation

◆ WidgetDragEventArgs()

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.

Parameters
widgetThe widget that raised the event.
startScreenPositionPxThe screen position where the drag began.
currentScreenPositionPxThe current pointer position in screen pixels.
buttonThe pointer button used for dragging.
tickThe engine tick associated with the event.
pointerIdThe identifier of the pointer performing the drag.

Definition at line 20 of file WidgetDragEventArgs.cs.

Property Documentation

◆ Button

WidgetPointerButtonEnum Gondwana.Widgets.WidgetDragEventArgs.Button
get

Gets the pointer button used for dragging.

Definition at line 47 of file WidgetDragEventArgs.cs.

◆ CurrentScreenPositionPx

PointF Gondwana.Widgets.WidgetDragEventArgs.CurrentScreenPositionPx
get

Gets the current pointer position in screen pixels.

Definition at line 42 of file WidgetDragEventArgs.cs.

◆ PointerId

int Gondwana.Widgets.WidgetDragEventArgs.PointerId
get

Gets the identifier of the pointer performing the drag.

Definition at line 52 of file WidgetDragEventArgs.cs.

◆ StartScreenPositionPx

PointF Gondwana.Widgets.WidgetDragEventArgs.StartScreenPositionPx
get

Gets the screen position where the drag began.

Definition at line 37 of file WidgetDragEventArgs.cs.

◆ TotalDeltaPx

Vector2 Gondwana.Widgets.WidgetDragEventArgs.TotalDeltaPx
get

Gets the total drag offset from the drag start position.

Definition at line 57 of file WidgetDragEventArgs.cs.