Android Guides | Samples

OpenTK.NativeWindow Class

Instances of this class implement the INativeWindow interface on the current platform.

See Also: NativeWindow

Syntax

public class NativeWindow : INativeWindow, IDisposable

Requirements

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

The members of OpenTK.NativeWindow are listed below.

See Also: Object

Public Constructors

Public Properties

BoundsRectangle. Gets or sets a Rectangle structure that 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 value indicating whether a render window exists.
[read-only]
FocusedBoolean. Gets a System.Boolean that indicates whether this NativeWindow has input focus.
HeightInt32. Gets or sets the external height of this window.
[read-only]
InputDriverIInputDriver. This property is deprecated.
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 NativeWindow title.
VisibleBoolean. Gets or sets a System.Boolean that indicates whether this NativeWindow is visible.
WidthInt32. Gets or sets the external width of this window.
WindowBorderWindowBorder. Gets or states the border of the NativeWindow.
[read-only]
WindowInfoIWindowInfo. Gets the IWindowInfo of this window.
WindowStateWindowState. Gets or states the state of the NativeWindow.
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.

Protected Properties

IsDisposedBoolean. Gets or sets a Boolean, which indicates whether this instance has been disposed.

Public Methods

Close()
Closes the NativeWindow.
Dispose()
Releases all non-managed resources belonging to this NativeWindow.
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 operating system events until the NativeWindow becomes idle.

Protected Methods

EnsureUndisposed()
Ensures that this NativeWindow has not been disposed.
OnClosed(EventArgs)
Called when the NativeWindow has closed.
OnClosing(CancelEventArgs)
Called when the NativeWindow is about to close.
OnDisposed(EventArgs)
Called when the NativeWindow is disposed.
OnFocusedChanged(EventArgs)
Called when the INativeWindow.Focused property of the NativeWindow has changed.
OnKeyPress(KeyPressEventArgs)
Called when a character is typed.
OnMouseEnter(EventArgs)
Called whenever the mouse cursor reenters the window NativeWindow.Bounds.
OnMouseLeave(EventArgs)
Called whenever the mouse cursor leaves the window NativeWindow.Bounds.
OnMove(EventArgs)
Called when the NativeWindow is moved.
OnResize(EventArgs)
Called when the NativeWindow is resized.
OnTitleChanged(EventArgs)
Called when the INativeWindow.Title property of the NativeWindow has changed.
OnVisibleChanged(EventArgs)
Called when the INativeWindow.Visible property of the NativeWindow has changed.
OnWindowBorderChanged(EventArgs)
Called when the WindowBorder of this NativeWindow has changed.
OnWindowStateChanged(EventArgs)
Called when the WindowState of this NativeWindow has changed.
ProcessEvents(Boolean)
Processes operating system events until the NativeWindow becomes idle.

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 NativeWindow.Focused property of the window changes.
KeyPress Occurs whenever a character is typed.
MouseEnter Occurs whenever the mouse cursor enters the window NativeWindow.Bounds.
MouseLeave Occurs whenever the mouse cursor leaves the window NativeWindow.Bounds.
Move Occurs whenever the window is moved.
Resize Occurs whenever the window is resized.
TitleChanged Occurs when the NativeWindow.Title property of the window changes.
VisibleChanged Occurs when the NativeWindow.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.