The Open Toolkit library  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
OpenTK.INativeWindow Interface Reference

Defines the interface for a native window. More...

+ Inheritance diagram for OpenTK.INativeWindow:

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< KeyPressEventArgsKeyPress
 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...
 

Detailed Description

Defines the interface for a native window.

Member Function Documentation

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.

Parameters
pointA System.Drawing.Point to transform.
Returns
The point transformed to client coordinates.

Implemented in OpenTK.NativeWindow.

Point OpenTK.INativeWindow.PointToScreen ( Point  point)

Transforms the specified point from client to screen coordinates.

Parameters
pointA System.Drawing.Point to transform.
Returns
The point transformed to screen coordinates.

Implemented in OpenTK.NativeWindow.

void OpenTK.INativeWindow.ProcessEvents ( )

Processes pending window events.

Implemented in OpenTK.NativeWindow.

Property Documentation

Rectangle OpenTK.INativeWindow.Bounds
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.

Rectangle OpenTK.INativeWindow.ClientRectangle
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.

Size OpenTK.INativeWindow.ClientSize
getset

Gets or sets a System.Drawing.Size structure that contains the internal size this window.

bool OpenTK.INativeWindow.CursorVisible
getset

Gets or sets a value, indicating whether the mouse cursor is visible.

bool OpenTK.INativeWindow.Exists
get

Gets a System.Boolean that indicates whether the window has been created and has not been destroyed.

bool OpenTK.INativeWindow.Focused
get

Gets a System.Boolean that indicates whether this window has input focus.

int OpenTK.INativeWindow.Height
getset

Gets or sets the external height of this window.

Icon OpenTK.INativeWindow.Icon
getset

Gets or sets the System.Drawing.Icon of the window.

OpenTK.Input.IInputDriver OpenTK.INativeWindow.InputDriver
get

This property is deprecated and should not be used.

Point OpenTK.INativeWindow.Location
getset

Gets or sets a System.Drawing.Point structure that contains the location of this window on the desktop.

Size OpenTK.INativeWindow.Size
getset

Gets or sets a System.Drawing.Size structure that contains the external size of this window.

string OpenTK.INativeWindow.Title
getset

Gets or sets the title of the window.

bool OpenTK.INativeWindow.Visible
getset

Gets or sets a System.Boolean that indicates whether the window is visible.

int OpenTK.INativeWindow.Width
getset

Gets or sets the external width of this window.

WindowBorder OpenTK.INativeWindow.WindowBorder
getset

Gets or sets the OpenTK.WindowBorder for this window.

IWindowInfo OpenTK.INativeWindow.WindowInfo
get

Gets the OpenTK.Platform.IWindowInfo for this window.

WindowState OpenTK.INativeWindow.WindowState
getset

Gets or sets the OpenTK.WindowState for this window.

int OpenTK.INativeWindow.X
getset

Gets or sets the horizontal location of this window on the desktop.

int OpenTK.INativeWindow.Y
getset

Gets or sets the vertical location of this window on the desktop.

Event Documentation

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.