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