![]() |
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.TargetRectChanged event, which is raised when a viewport's target rectangle is resized or repositioned on the render surface. More...
Public Member Functions | |
| ViewportResizedEventArgs (Viewport viewport, Rectangle oldRect, Rectangle newRect) | |
| Initializes a new instance of the ViewportResizedEventArgs class with the specified viewport and rectangle values. | |
Properties | |
| Viewport | Viewport [get] |
| Gets the viewport instance that was resized or repositioned. | |
| Rectangle | OldRect [get] |
| Gets the previous target rectangle before the resize or reposition operation. | |
| Rectangle | NewRect [get] |
| Gets the new target rectangle after the resize or reposition operation. | |
Provides data for the Viewport.TargetRectChanged event, which is raised when a viewport's target rectangle is resized or repositioned on the render surface.
Definition at line 10 of file ViewportResizedEventArgs.cs.
| Gondwana.Rendering.Views.ViewportResizedEventArgs.ViewportResizedEventArgs | ( | Viewport | viewport, |
| Rectangle | oldRect, | ||
| Rectangle | newRect ) |
Initializes a new instance of the ViewportResizedEventArgs class with the specified viewport and rectangle values.
| viewport | The viewport that was resized or repositioned. |
| oldRect | The target rectangle before the change. |
| newRect | The target rectangle after the change. |
Definition at line 45 of file ViewportResizedEventArgs.cs.
|
get |
Gets the new target rectangle after the resize or reposition operation.
A Rectangle representing the viewport's current screen-space bounds after the change occurred.
Definition at line 36 of file ViewportResizedEventArgs.cs.
|
get |
Gets the previous target rectangle before the resize or reposition operation.
A Rectangle representing the viewport's screen-space bounds before the change occurred.
Definition at line 27 of file ViewportResizedEventArgs.cs.
|
get |
Gets the viewport instance that was resized or repositioned.
The Views.Viewport that raised the event.
Definition at line 18 of file ViewportResizedEventArgs.cs.