Show / Hide Table of Contents

Struct ResizeEventArgs

Defines the event data for the window resize event.

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: OpenTK.Windowing.Common
Assembly: OpenTK.Windowing.Common.dll
Syntax
public readonly struct ResizeEventArgs

Constructors

ResizeEventArgs(Vector2i)

Initializes a new instance of the ResizeEventArgs struct.

Declaration
public ResizeEventArgs(Vector2i size)
Parameters
Type Name Description
Vector2i size

The new window size.

ResizeEventArgs(int, int)

Initializes a new instance of the ResizeEventArgs struct.

Declaration
public ResizeEventArgs(int width, int height)
Parameters
Type Name Description
int width

The new window width.

int height

The new window height.

Properties

Height

Gets the new window height.

Declaration
public int Height { get; }
Property Value
Type Description
int

Size

Gets the new window size.

Declaration
public Vector2i Size { get; }
Property Value
Type Description
Vector2i

Width

Gets the new window width.

Declaration
public int Width { get; }
Property Value
Type Description
int
In This Article
Back to top Generated by DocFX