Defines the interface for a native window. More...
Public Member Functions | |
| void | Close () |
| Closes this window. | |
| void | ProcessEvents () |
| Processes pending window events. | |
| Point | PointToClient (Point point) |
| Transforms the specified point from screen to client coordinates. | |
| Point | PointToScreen (Point point) |
| Transforms the specified point from client to screen coordinates. | |
Properties | |
| Icon | Icon [get, set] |
| Gets or sets the System.Drawing.Icon of the window. | |
| string | Title [get, set] |
| Gets or sets the title of the window. | |
| bool | Focused [get] |
| Gets a System.Boolean that indicates whether this window has input focus. | |
| bool | Visible [get, set] |
| Gets or sets a System.Boolean that indicates whether the window is visible. | |
| bool | Exists [get] |
| Gets a System.Boolean that indicates whether the window has been created and has not been destroyed. | |
| IWindowInfo | WindowInfo [get] |
| Gets the OpenTK.Platform.IWindowInfo for this window. | |
| WindowState | WindowState [get, set] |
| Gets or sets the OpenTK.WindowState for this window. | |
| WindowBorder | WindowBorder [get, set] |
| Gets or sets the OpenTK.WindowBorder for this window. | |
| 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. | |
| Point | Location [get, set] |
| Gets or sets a System.Drawing.Point structure that contains the location of this window on the desktop. | |
| Size | Size [get, set] |
| Gets or sets a System.Drawing.Size structure that contains the external size of this window. | |
| int | X [get, set] |
| Gets or sets the horizontal location of this window on the desktop. | |
| int | Y [get, set] |
| Gets or sets the vertical location of this window on the desktop. | |
| int | Width [get, set] |
| Gets or sets the external width of this window. | |
| int | Height [get, set] |
| Gets or sets the external height of this window. | |
| 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. | |
| Size | ClientSize [get, set] |
| Gets or sets a System.Drawing.Size structure that contains the internal size this window. | |
| OpenTK.Input.IInputDriver | InputDriver [get] |
| This property is deprecated and should not be used. | |
Events | |
| EventHandler< EventArgs > | Move |
| Occurs whenever the window is moved. | |
| EventHandler< EventArgs > | Resize |
| Occurs whenever the window is resized. | |
| EventHandler< CancelEventArgs > | Closing |
| Occurs when the window is about to close. | |
| EventHandler< EventArgs > | Closed |
| Occurs after the window has closed. | |
| EventHandler< EventArgs > | Disposed |
| Occurs when the window is disposed. | |
| EventHandler< EventArgs > | IconChanged |
| Occurs when the Icon property of the window changes. | |
| EventHandler< EventArgs > | TitleChanged |
| Occurs when the Title property of the window changes. | |
| EventHandler< EventArgs > | VisibleChanged |
| Occurs when the Visible property of the window changes. | |
| EventHandler< EventArgs > | FocusedChanged |
| Occurs when the Focused property of the window changes. | |
| EventHandler< EventArgs > | WindowBorderChanged |
| Occurs when the WindowBorder property of the window changes. | |
| EventHandler< EventArgs > | WindowStateChanged |
| Occurs when the WindowState property of the window changes. | |
| EventHandler< KeyPressEventArgs > | KeyPress |
| Occurs whenever a character is typed. | |
| EventHandler< EventArgs > | MouseLeave |
| Occurs whenever the mouse cursor leaves the window Bounds. | |
| EventHandler< EventArgs > | MouseEnter |
| Occurs whenever the mouse cursor enters the window Bounds. | |
Defines the interface for a native window.
Definition at line 40 of file INativeWindow.cs.
| 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.
Rectangle OpenTK.INativeWindow.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.
Implemented in OpenTK.NativeWindow.
Definition at line 86 of file INativeWindow.cs.
Rectangle OpenTK.INativeWindow.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.
Implemented in OpenTK.NativeWindow.
Definition at line 122 of file INativeWindow.cs.
Size OpenTK.INativeWindow.ClientSize [get, set] |
Gets or sets a System.Drawing.Size structure that contains the internal size this window.
Implemented in OpenTK.NativeWindow.
Definition at line 127 of file INativeWindow.cs.
bool OpenTK.INativeWindow.Exists [get] |
Gets a System.Boolean that indicates whether the window has been created and has not been destroyed.
Implemented in OpenTK.NativeWindow.
Definition at line 65 of file INativeWindow.cs.
bool OpenTK.INativeWindow.Focused [get] |
Gets a System.Boolean that indicates whether this window has input focus.
Implemented in OpenTK.NativeWindow.
Definition at line 55 of file INativeWindow.cs.
int OpenTK.INativeWindow.Height [get, set] |
Gets or sets the external height of this window.
Implemented in OpenTK.NativeWindow.
Definition at line 116 of file INativeWindow.cs.
Icon OpenTK.INativeWindow.Icon [get, set] |
Gets or sets the System.Drawing.Icon of the window.
Implemented in OpenTK.NativeWindow.
Definition at line 45 of file INativeWindow.cs.
OpenTK.Input.IInputDriver OpenTK.INativeWindow.InputDriver [get] |
This property is deprecated and should not be used.
Implemented in OpenTK.NativeWindow.
Definition at line 133 of file INativeWindow.cs.
Point OpenTK.INativeWindow.Location [get, set] |
Gets or sets a System.Drawing.Point structure that contains the location of this window on the desktop.
Implemented in OpenTK.NativeWindow.
Definition at line 91 of file INativeWindow.cs.
Size OpenTK.INativeWindow.Size [get, set] |
Gets or sets a System.Drawing.Size structure that contains the external size of this window.
Implemented in OpenTK.NativeWindow.
Definition at line 96 of file INativeWindow.cs.
string OpenTK.INativeWindow.Title [get, set] |
Gets or sets the title of the window.
Implemented in OpenTK.NativeWindow.
Definition at line 50 of file INativeWindow.cs.
bool OpenTK.INativeWindow.Visible [get, set] |
Gets or sets a System.Boolean that indicates whether the window is visible.
Implemented in OpenTK.NativeWindow.
Definition at line 60 of file INativeWindow.cs.
int OpenTK.INativeWindow.Width [get, set] |
Gets or sets the external width of this window.
Implemented in OpenTK.NativeWindow.
Definition at line 111 of file INativeWindow.cs.
WindowBorder OpenTK.INativeWindow.WindowBorder [get, set] |
Gets or sets the OpenTK.WindowBorder for this window.
Implemented in OpenTK.NativeWindow.
Definition at line 80 of file INativeWindow.cs.
IWindowInfo OpenTK.INativeWindow.WindowInfo [get] |
Gets the OpenTK.Platform.IWindowInfo for this window.
Implemented in OpenTK.NativeWindow.
Definition at line 70 of file INativeWindow.cs.
WindowState OpenTK.INativeWindow.WindowState [get, set] |
Gets or sets the OpenTK.WindowState for this window.
Implemented in OpenTK.GameWindow, and OpenTK.NativeWindow.
Definition at line 75 of file INativeWindow.cs.
int OpenTK.INativeWindow.X [get, set] |
Gets or sets the horizontal location of this window on the desktop.
Implemented in OpenTK.NativeWindow.
Definition at line 101 of file INativeWindow.cs.
int OpenTK.INativeWindow.Y [get, set] |
Gets or sets the vertical location of this window on the desktop.
Implemented in OpenTK.NativeWindow.
Definition at line 106 of file INativeWindow.cs.
| EventHandler<EventArgs> OpenTK.INativeWindow.Closed |
Occurs after the window has closed.
Implemented in OpenTK.NativeWindow.
Definition at line 185 of file INativeWindow.cs.
| EventHandler<CancelEventArgs> OpenTK.INativeWindow.Closing |
Occurs when the window is about to close.
Implemented in OpenTK.NativeWindow.
Definition at line 180 of file INativeWindow.cs.
| EventHandler<EventArgs> OpenTK.INativeWindow.Disposed |
Occurs when the window is disposed.
Implemented in OpenTK.NativeWindow.
Definition at line 190 of file INativeWindow.cs.
| EventHandler<EventArgs> OpenTK.INativeWindow.FocusedChanged |
Occurs when the Focused property of the window changes.
Implemented in OpenTK.NativeWindow.
Definition at line 210 of file INativeWindow.cs.
| EventHandler<EventArgs> OpenTK.INativeWindow.IconChanged |
Occurs when the Icon property of the window changes.
Implemented in OpenTK.NativeWindow.
Definition at line 195 of file INativeWindow.cs.
| EventHandler<KeyPressEventArgs> OpenTK.INativeWindow.KeyPress |
Occurs whenever a character is typed.
Implemented in OpenTK.NativeWindow.
Definition at line 225 of file INativeWindow.cs.
| EventHandler<EventArgs> OpenTK.INativeWindow.MouseEnter |
Occurs whenever the mouse cursor enters the window Bounds.
Implemented in OpenTK.NativeWindow.
Definition at line 235 of file INativeWindow.cs.
| EventHandler<EventArgs> OpenTK.INativeWindow.MouseLeave |
Occurs whenever the mouse cursor leaves the window Bounds.
Implemented in OpenTK.NativeWindow.
Definition at line 230 of file INativeWindow.cs.
| EventHandler<EventArgs> OpenTK.INativeWindow.Move |
Occurs whenever the window is moved.
Implemented in OpenTK.NativeWindow.
Definition at line 170 of file INativeWindow.cs.
| EventHandler<EventArgs> OpenTK.INativeWindow.Resize |
Occurs whenever the window is resized.
Implemented in OpenTK.NativeWindow.
Definition at line 175 of file INativeWindow.cs.
| EventHandler<EventArgs> OpenTK.INativeWindow.TitleChanged |
Occurs when the Title property of the window changes.
Implemented in OpenTK.NativeWindow.
Definition at line 200 of file INativeWindow.cs.
| EventHandler<EventArgs> OpenTK.INativeWindow.VisibleChanged |
Occurs when the Visible property of the window changes.
Implemented in OpenTK.NativeWindow.
Definition at line 205 of file INativeWindow.cs.
| EventHandler<EventArgs> OpenTK.INativeWindow.WindowBorderChanged |
Occurs when the WindowBorder property of the window changes.
Implemented in OpenTK.NativeWindow.
Definition at line 215 of file INativeWindow.cs.
| EventHandler<EventArgs> OpenTK.INativeWindow.WindowStateChanged |
Occurs when the WindowState property of the window changes.
Implemented in OpenTK.NativeWindow.
Definition at line 220 of file INativeWindow.cs.
1.6.1