Show / Hide Table of Contents

Struct WindowPositionEventArgs

Defines the event data for the window position 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 WindowPositionEventArgs

Constructors

WindowPositionEventArgs(Vector2i)

Initializes a new instance of the WindowPositionEventArgs struct.

Declaration
public WindowPositionEventArgs(Vector2i position)
Parameters
Type Name Description
Vector2i position

The new window position.

WindowPositionEventArgs(int, int)

Initializes a new instance of the WindowPositionEventArgs struct with given coordinate.

Declaration
public WindowPositionEventArgs(int x, int y)
Parameters
Type Name Description
int x

The new window x position.

int y

The new window y position.

Properties

Position

Gets the new window position, in pixels relative to the top left corner of the current monitor.

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

X

Gets the new window x position.

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

Y

Gets the new window y position.

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