iOS Guides | Samples

OpenTK.INativeWindow

Defines the interface for a native window.

See Also: INativeWindow

Syntax

public interface INativeWindow : IDisposable

Requirements

Namespace: OpenTK
Assembly: OpenTK-1.0 (in OpenTK-1.0.dll)
Assembly Versions: 0.0.0.0

The members of OpenTK.INativeWindow are listed below.

Public Properties

BoundsRectangle. Gets or sets a 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.
ClientRectangleRectangle. Gets or sets a 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.
ClientSizeSize. Gets or sets a Size structure that contains the internal size this window.
[read-only]
ExistsBoolean. Gets a System.Boolean that indicates whether the window has been created and has not been destroyed.
[read-only]
FocusedBoolean. Gets a System.Boolean that indicates whether this window has input focus.
HeightInt32. Gets or sets the external height of this window.
LocationPoint. Gets or sets a Point structure that contains the location of this window on the desktop.
SizeSize. Gets or sets a Size structure that contains the external size of this window.
TitleString. Gets or sets the title of the window.
VisibleBoolean. Gets or sets a System.Boolean that indicates whether the window is visible.
WidthInt32. Gets or sets the external width of this window.
WindowBorderWindowBorder. Gets or sets the WindowBorder for this window.
[read-only]
WindowInfoIWindowInfo. Gets the IWindowInfo for this window.
WindowStateWindowState. Gets or sets the WindowState for this window.
XInt32. Gets or sets the horizontal location of this window on the desktop.
YInt32. Gets or sets the vertical location of this window on the desktop.

Public Methods

Close()
Closes this window.
PointToClient(Point) : Point
Transforms the specified point from screen to client coordinates.
PointToScreen(Point) : Point
Transforms the specified point from client to screen coordinates.
ProcessEvents()
Processes pending window events.

Public Events

Closed Occurs after the window has closed.
Closing Occurs when the window is about to close.
Disposed Occurs when the window is disposed.
FocusedChanged Occurs when the INativeWindow.Focused property of the window changes.
KeyPress Occurs whenever a character is typed.
Move Occurs whenever the window is moved.
Resize Occurs whenever the window is resized.
TitleChanged Occurs when the INativeWindow.Title property of the window changes.
VisibleChanged Occurs when the INativeWindow.Visible property of the window changes.
WindowBorderChanged Occurs when the WindowBorder property of the window changes.
WindowStateChanged Occurs when the WindowState property of the window changes.