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
WidgetMouseWheelEventArgs.cs
1using System.Drawing;
3
4namespace Gondwana.Widgets;
5
10{
17 public WidgetMouseWheelEventArgs(WidgetBase widget, View view, PointF screenPositionPx, int delta, long tick = 0)
18 : base(widget, tick)
19 {
20 View = view ?? throw new ArgumentNullException(nameof(view));
21 ScreenPositionPx = screenPositionPx;
22 Delta = delta;
23 }
24
26 public View View { get; }
27
29 public PointF ScreenPositionPx { get; }
30
32 public int Delta { get; }
33}
Provides the base implementation for widgets that can be drawn and receive pointer,...
Definition WidgetBase.cs:12
WidgetEventArgs(WidgetBase widget, long tick)
Initializes a new instance of the WidgetEventArgs class.
View View
Gets the view through which the input was routed.
PointF ScreenPositionPx
Gets the pointer position in screen pixels.
WidgetMouseWheelEventArgs(WidgetBase widget, View view, PointF screenPositionPx, int delta, long tick=0)
Initializes a new wheel event.
int Delta
Gets the wheel delta. Positive values scroll upward; negative values scroll downward.