Class WindowResizeEventArgs
This event is triggered when a window has its size changed on screen.
Inherited Members
Namespace: OpenTK.Core.Platform
Assembly: OpenTK.Core.dll
Syntax
public class WindowResizeEventArgs : WindowEventArgs
Constructors
WindowResizeEventArgs(WindowHandle, Vector2i, Vector2i)
Initializes a new instance of the WindowResizeEventArgs class.
Declaration
public WindowResizeEventArgs(WindowHandle window, Vector2i newSize, Vector2i newClientSize)
Parameters
Type | Name | Description |
---|---|---|
WindowHandle | window | The window that got resized. |
Vector2i | newSize | The new window size. |
Vector2i | newClientSize | The new client size of the window. |
Properties
NewClientSize
The new client size of the window.
Declaration
public Vector2i NewClientSize { get; }
Property Value
Type | Description |
---|---|
Vector2i |
NewSize
The new size of the window.
Declaration
public Vector2i NewSize { get; }
Property Value
Type | Description |
---|---|
Vector2i |