![]() |
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.
|
Provides data for the Viewport.ZoomChanged event, which is raised when a viewport's zoom level changes either through direct assignment or animated zoom transitions. More...
Public Member Functions | |
| ViewportZoomChangedEventArgs (Viewport viewport, float oldZoom, float newZoom) | |
| Initializes a new instance of the ViewportZoomChangedEventArgs class with the specified viewport and zoom values. | |
Properties | |
| Viewport | Viewport [get] |
| Gets the viewport instance whose zoom level changed. | |
| float | OldZoom [get] |
| Gets the previous zoom level before the change occurred. | |
| float | NewZoom [get] |
| Gets the new zoom level after the change occurred. | |
Provides data for the Viewport.ZoomChanged event, which is raised when a viewport's zoom level changes either through direct assignment or animated zoom transitions.
Definition at line 8 of file ViewportZoomChangedEventArgs.cs.
| Gondwana.Rendering.Views.ViewportZoomChangedEventArgs.ViewportZoomChangedEventArgs | ( | Viewport | viewport, |
| float | oldZoom, | ||
| float | newZoom ) |
Initializes a new instance of the ViewportZoomChangedEventArgs class with the specified viewport and zoom values.
| viewport | The viewport whose zoom level changed. |
| oldZoom | The zoom level before the change. |
| newZoom | The zoom level after the change. |
Definition at line 43 of file ViewportZoomChangedEventArgs.cs.
|
get |
Gets the new zoom level after the change occurred.
A float representing the current zoom factor after the change. Values greater than 1 indicate zoom in; values between 0 and 1 indicate zoom out.
Definition at line 34 of file ViewportZoomChangedEventArgs.cs.
|
get |
Gets the previous zoom level before the change occurred.
A float representing the zoom factor before the change. Values greater than 1 indicate zoom in; values between 0 and 1 indicate zoom out.
Definition at line 25 of file ViewportZoomChangedEventArgs.cs.
|
get |
Gets the viewport instance whose zoom level changed.
The Views.Viewport that raised the event.
Definition at line 16 of file ViewportZoomChangedEventArgs.cs.