Свойство | Тип | Описание | |
---|---|---|---|
OnClosedInternal | void | ||
OnClosingInternal | void | ||
OnDisposedInternal | void | ||
OnFocusedChangedInternal | void | ||
OnIconChangedInternal | void | ||
OnKeyPressInternal | void | ||
OnMouseEnterInternal | void | ||
OnMouseLeaveInternal | void | ||
OnMoveInternal | void | ||
OnResizeInternal | void | ||
OnTitleChangedInternal | void | ||
OnVisibleChangedInternal | void | ||
OnWindowBorderChangedInternal | void | ||
OnWindowStateChangedInternal | void |
Метод | Описание | |
---|---|---|
Close ( ) : void |
Closes the NativeWindow.
|
|
Dispose ( ) : void |
Releases all non-managed resources belonging to this NativeWindow.
|
|
NativeWindow ( ) : System |
Constructs a new NativeWindow with default attributes without enabling events.
|
|
NativeWindow ( int x, int y, int width, int height, string title, GameWindowFlags options, OpenTK.Graphics.GraphicsMode mode, |
Constructs a new NativeWindow with the specified attributes.
|
|
NativeWindow ( int width, int height, string title, GameWindowFlags options, OpenTK.Graphics.GraphicsMode mode, |
Constructs a new centered NativeWindow with the specified attributes.
|
|
PointToClient ( Point point ) : Point |
Transforms the specified point from screen to client coordinates.
|
|
PointToScreen ( Point point ) : Point |
Transforms the specified point from client to screen coordinates.
|
|
ProcessEvents ( ) : void |
Processes operating system events until the NativeWindow becomes idle.
|
Метод | Описание | |
---|---|---|
EnsureUndisposed ( ) : void |
Ensures that this NativeWindow has not been disposed.
|
|
OnClosed ( |
Called when the NativeWindow has closed.
|
|
OnClosing ( CancelEventArgs e ) : void |
Called when the NativeWindow is about to close.
|
|
OnDisposed ( |
Called when the NativeWindow is disposed.
|
|
OnFocusedChanged ( |
Called when the OpenTK.INativeWindow.Focused property of the NativeWindow has changed.
|
|
OnIconChanged ( |
Called when the OpenTK.INativeWindow.Icon property of the NativeWindow has changed.
|
|
OnKeyDown ( |
Occurs whenever a keybord key is pressed.
|
|
OnKeyPress ( |
Called when a character is typed.
|
|
OnKeyUp ( |
Called when a keybord key is released.
|
|
OnMouseEnter ( |
Called whenever the mouse cursor reenters the window Bounds.
|
|
OnMouseLeave ( |
Called whenever the mouse cursor leaves the window Bounds.
|
|
OnMove ( |
Called when the NativeWindow is moved.
|
|
OnResize ( |
Called when the NativeWindow is resized.
|
|
OnTitleChanged ( |
Called when the OpenTK.INativeWindow.Title property of the NativeWindow has changed.
|
|
OnVisibleChanged ( EventArgs e ) : void |
Called when the OpenTK.INativeWindow.Visible property of the NativeWindow has changed.
|
|
OnWindowBorderChanged ( EventArgs e ) : void |
Called when the WindowBorder of this NativeWindow has changed.
|
|
OnWindowStateChanged ( EventArgs e ) : void |
Called when the WindowState of this NativeWindow has changed.
|
|
ProcessEvents ( bool retainEvents ) : void |
Processes operating system events until the NativeWindow becomes idle.
|
Метод | Описание | |
---|---|---|
OnClosedInternal ( object sender, |
||
OnClosingInternal ( object sender, CancelEventArgs e ) : void | ||
OnDisposedInternal ( object sender, |
||
OnFocusedChangedInternal ( object sender, |
||
OnIconChangedInternal ( object sender, |
||
OnKeyPressInternal ( object sender, |
||
OnMouseEnterInternal ( object sender, |
||
OnMouseLeaveInternal ( object sender, |
||
OnMoveInternal ( object sender, |
||
OnResizeInternal ( object sender, |
||
OnTitleChangedInternal ( object sender, EventArgs e ) : void | ||
OnVisibleChangedInternal ( object sender, EventArgs e ) : void | ||
OnWindowBorderChangedInternal ( object sender, EventArgs e ) : void | ||
OnWindowStateChangedInternal ( object sender, EventArgs e ) : void |
public NativeWindow ( int x, int y, int width, int height, string title, GameWindowFlags options, OpenTK.Graphics.GraphicsMode mode, |
||
x | int | Horizontal screen space coordinate of the NativeWindow's origin. |
y | int | Vertical screen space coordinate of the NativeWindow's origin. |
width | int | The width of the NativeWindow in pixels. |
height | int | The height of the NativeWindow in pixels. |
title | string | The title of the NativeWindow. |
options | GameWindowFlags | GameWindow options specifying window appearance and behavior. |
mode | OpenTK.Graphics.GraphicsMode | The OpenTK.Graphics.GraphicsMode of the NativeWindow. |
device | The OpenTK.Graphics.DisplayDevice to construct the NativeWindow in. | |
Результат | System |
public NativeWindow ( int width, int height, string title, GameWindowFlags options, OpenTK.Graphics.GraphicsMode mode, |
||
width | int | The width of the NativeWindow in pixels. |
height | int | The height of the NativeWindow in pixels. |
title | string | The title of the NativeWindow. |
options | GameWindowFlags | GameWindow options specifying window appearance and behavior. |
mode | OpenTK.Graphics.GraphicsMode | The OpenTK.Graphics.GraphicsMode of the NativeWindow. |
device | The OpenTK.Graphics.DisplayDevice to construct the NativeWindow in. | |
Результат | System |
protected OnClosed ( |
||
e | Not used. | |
Результат | void |
protected OnClosing ( CancelEventArgs e ) : void | ||
e | CancelEventArgs |
/// The |
Результат | void |
protected OnDisposed ( |
||
e | Not used. | |
Результат | void |
protected OnFocusedChanged ( |
||
e | Not used. | |
Результат | void |
protected OnIconChanged ( |
||
e | Not used. | |
Результат | void |
protected OnKeyDown ( |
||
e | ||
Результат | void |
protected OnKeyPress ( |
||
e | The |
|
Результат | void |
protected OnKeyUp ( |
||
e | The |
|
Результат | void |
protected OnMouseEnter ( |
||
e | Not used. | |
Результат | void |
protected OnMouseLeave ( |
||
e | Not used. | |
Результат | void |
protected OnMove ( |
||
e | Not used. | |
Результат | void |
protected OnResize ( |
||
e | Not used. | |
Результат | void |
protected OnTitleChanged ( |
||
e | Not used. | |
Результат | void |
protected OnVisibleChanged ( EventArgs e ) : void | ||
e | EventArgs | Not used. |
Результат | void |
protected OnWindowBorderChanged ( EventArgs e ) : void | ||
e | EventArgs | Not used. |
Результат | void |
protected OnWindowStateChanged ( EventArgs e ) : void | ||
e | EventArgs | Not used. |
Результат | void |
public PointToClient ( Point point ) : Point | ||
point | Point |
/// A |
Результат | Point |
public PointToScreen ( Point point ) : Point | ||
point | Point |
/// A |
Результат | Point |
protected ProcessEvents ( bool retainEvents ) : void | ||
retainEvents | bool | If true, the state of underlying system event propagation will be preserved, otherwise event propagation will be enabled if it has not been already. |
Результат | void |