The Open Toolkit library
1.0
|
Defines the interface for a native window. More...
Public Member Functions | |
void | Close () |
Closes this window. More... | |
void | ProcessEvents () |
Processes pending window events. More... | |
Point | PointToClient (Point point) |
Transforms the specified point from screen to client coordinates. More... | |
Point | PointToScreen (Point point) |
Transforms the specified point from client to screen coordinates. More... | |
Properties | |
Icon | Icon [get, set] |
Gets or sets the System.Drawing.Icon of the window. More... | |
string | Title [get, set] |
Gets or sets the title of the window. More... | |
bool | Focused [get] |
Gets a System.Boolean that indicates whether this window has input focus. More... | |
bool | Visible [get, set] |
Gets or sets a System.Boolean that indicates whether the window is visible. More... | |
bool | Exists [get] |
Gets a System.Boolean that indicates whether the window has been created and has not been destroyed. More... | |
IWindowInfo | WindowInfo [get] |
Gets the OpenTK.Platform.IWindowInfo for this window. More... | |
WindowState | WindowState [get, set] |
Gets or sets the OpenTK.WindowState for this window. More... | |
WindowBorder | WindowBorder [get, set] |
Gets or sets the OpenTK.WindowBorder for this window. More... | |
Rectangle | Bounds [get, set] |
Gets or sets a System.Drawing.Rectangle structure the contains the external bounds of this window, in screen coordinates. External bounds include the title bar, borders and drawing area of the window. More... | |
Point | Location [get, set] |
Gets or sets a System.Drawing.Point structure that contains the location of this window on the desktop. More... | |
Size | Size [get, set] |
Gets or sets a System.Drawing.Size structure that contains the external size of this window. More... | |
int | X [get, set] |
Gets or sets the horizontal location of this window on the desktop. More... | |
int | Y [get, set] |
Gets or sets the vertical location of this window on the desktop. More... | |
int | Width [get, set] |
Gets or sets the external width of this window. More... | |
int | Height [get, set] |
Gets or sets the external height of this window. More... | |
Rectangle | ClientRectangle [get, set] |
Gets or sets a System.Drawing.Rectangle structure that contains the internal bounds of this window, in client coordinates. The internal bounds include the drawing area of the window, but exclude the titlebar and window borders. More... | |
Size | ClientSize [get, set] |
Gets or sets a System.Drawing.Size structure that contains the internal size this window. More... | |
OpenTK.Input.IInputDriver | InputDriver [get] |
This property is deprecated and should not be used. More... | |
bool | CursorVisible [get, set] |
Gets or sets a value, indicating whether the mouse cursor is visible. More... | |
Events | |
EventHandler< EventArgs > | Move |
Occurs whenever the window is moved. More... | |
EventHandler< EventArgs > | Resize |
Occurs whenever the window is resized. More... | |
EventHandler< CancelEventArgs > | Closing |
Occurs when the window is about to close. More... | |
EventHandler< EventArgs > | Closed |
Occurs after the window has closed. More... | |
EventHandler< EventArgs > | Disposed |
Occurs when the window is disposed. More... | |
EventHandler< EventArgs > | IconChanged |
Occurs when the Icon property of the window changes. More... | |
EventHandler< EventArgs > | TitleChanged |
Occurs when the Title property of the window changes. More... | |
EventHandler< EventArgs > | VisibleChanged |
Occurs when the Visible property of the window changes. More... | |
EventHandler< EventArgs > | FocusedChanged |
Occurs when the Focused property of the window changes. More... | |
EventHandler< EventArgs > | WindowBorderChanged |
Occurs when the WindowBorder property of the window changes. More... | |
EventHandler< EventArgs > | WindowStateChanged |
Occurs when the WindowState property of the window changes. More... | |
EventHandler < OpenTK.Input.KeyboardKeyEventArgs > | KeyDown |
Occurs whenever a keybord key is pressed. More... | |
EventHandler< KeyPressEventArgs > | KeyPress |
Occurs whenever a character is typed. More... | |
EventHandler < OpenTK.Input.KeyboardKeyEventArgs > | KeyUp |
Occurs whenever a keyboard key is released. More... | |
EventHandler< EventArgs > | MouseLeave |
Occurs whenever the mouse cursor leaves the window Bounds. More... | |
EventHandler< EventArgs > | MouseEnter |
Occurs whenever the mouse cursor enters the window Bounds. More... | |
Defines the interface for a native window.
void OpenTK.INativeWindow.Close | ( | ) |
Closes this window.
Implemented in OpenTK.NativeWindow.
Point OpenTK.INativeWindow.PointToClient | ( | Point | point | ) |
Transforms the specified point from screen to client coordinates.
point | A System.Drawing.Point to transform. |
Implemented in OpenTK.NativeWindow.
Point OpenTK.INativeWindow.PointToScreen | ( | Point | point | ) |
Transforms the specified point from client to screen coordinates.
point | A System.Drawing.Point to transform. |
Implemented in OpenTK.NativeWindow.
void OpenTK.INativeWindow.ProcessEvents | ( | ) |
Processes pending window events.
Implemented in OpenTK.NativeWindow.
|
getset |
Gets or sets a System.Drawing.Rectangle structure the contains the external bounds of this window, in screen coordinates. External bounds include the title bar, borders and drawing area of the window.
|
getset |
Gets or sets a System.Drawing.Rectangle structure that contains the internal bounds of this window, in client coordinates. The internal bounds include the drawing area of the window, but exclude the titlebar and window borders.
|
getset |
Gets or sets a System.Drawing.Size structure that contains the internal size this window.
|
getset |
Gets or sets a value, indicating whether the mouse cursor is visible.
|
get |
Gets a System.Boolean that indicates whether the window has been created and has not been destroyed.
|
get |
Gets a System.Boolean that indicates whether this window has input focus.
|
getset |
Gets or sets the external height of this window.
|
getset |
Gets or sets the System.Drawing.Icon of the window.
|
get |
This property is deprecated and should not be used.
|
getset |
Gets or sets a System.Drawing.Point structure that contains the location of this window on the desktop.
|
getset |
Gets or sets a System.Drawing.Size structure that contains the external size of this window.
|
getset |
Gets or sets the title of the window.
|
getset |
Gets or sets a System.Boolean that indicates whether the window is visible.
|
getset |
Gets or sets the external width of this window.
|
getset |
Gets or sets the OpenTK.WindowBorder for this window.
|
get |
Gets the OpenTK.Platform.IWindowInfo for this window.
|
getset |
Gets or sets the OpenTK.WindowState for this window.
|
getset |
Gets or sets the horizontal location of this window on the desktop.
|
getset |
Gets or sets the vertical location of this window on the desktop.
EventHandler<EventArgs> OpenTK.INativeWindow.Closed |
Occurs after the window has closed.
EventHandler<CancelEventArgs> OpenTK.INativeWindow.Closing |
Occurs when the window is about to close.
EventHandler<EventArgs> OpenTK.INativeWindow.Disposed |
Occurs when the window is disposed.
EventHandler<EventArgs> OpenTK.INativeWindow.FocusedChanged |
Occurs when the Focused property of the window changes.
EventHandler<EventArgs> OpenTK.INativeWindow.IconChanged |
Occurs when the Icon property of the window changes.
EventHandler<OpenTK.Input.KeyboardKeyEventArgs> OpenTK.INativeWindow.KeyDown |
Occurs whenever a keybord key is pressed.
EventHandler<KeyPressEventArgs> OpenTK.INativeWindow.KeyPress |
Occurs whenever a character is typed.
EventHandler<OpenTK.Input.KeyboardKeyEventArgs> OpenTK.INativeWindow.KeyUp |
Occurs whenever a keyboard key is released.
EventHandler<EventArgs> OpenTK.INativeWindow.MouseEnter |
Occurs whenever the mouse cursor enters the window Bounds.
EventHandler<EventArgs> OpenTK.INativeWindow.MouseLeave |
Occurs whenever the mouse cursor leaves the window Bounds.
EventHandler<EventArgs> OpenTK.INativeWindow.Move |
Occurs whenever the window is moved.
EventHandler<EventArgs> OpenTK.INativeWindow.Resize |
Occurs whenever the window is resized.
EventHandler<EventArgs> OpenTK.INativeWindow.TitleChanged |
Occurs when the Title property of the window changes.
EventHandler<EventArgs> OpenTK.INativeWindow.VisibleChanged |
Occurs when the Visible property of the window changes.
EventHandler<EventArgs> OpenTK.INativeWindow.WindowBorderChanged |
Occurs when the WindowBorder property of the window changes.
EventHandler<EventArgs> OpenTK.INativeWindow.WindowStateChanged |
Occurs when the WindowState property of the window changes.