C# 클래스 OpenTK.NativeWindow

Instances of this class implement the OpenTK.INativeWindow interface on the current platform.
상속: INativeWindow
파일 보기 프로젝트 열기: andykorth/opentk 1 사용 예제들

Private Properties

프로퍼티 타입 설명
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, DisplayDevice device ) : System

Constructs a new NativeWindow with the specified attributes.

NativeWindow ( int width, int height, string title, GameWindowFlags options, OpenTK.Graphics.GraphicsMode mode, DisplayDevice device ) : System

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 ( EventArgs e ) : void

Called when the NativeWindow has closed.

OnClosing ( CancelEventArgs e ) : void

Called when the NativeWindow is about to close.

OnDisposed ( EventArgs e ) : void

Called when the NativeWindow is disposed.

OnFocusedChanged ( EventArgs e ) : void

Called when the OpenTK.INativeWindow.Focused property of the NativeWindow has changed.

OnIconChanged ( EventArgs e ) : void

Called when the OpenTK.INativeWindow.Icon property of the NativeWindow has changed.

OnKeyDown ( KeyboardKeyEventArgs e ) : void

Occurs whenever a keybord key is pressed.

OnKeyPress ( KeyPressEventArgs e ) : void

Called when a character is typed.

OnKeyUp ( KeyboardKeyEventArgs e ) : void

Called when a keybord key is released.

OnMouseEnter ( EventArgs e ) : void

Called whenever the mouse cursor reenters the window Bounds.

OnMouseLeave ( EventArgs e ) : void

Called whenever the mouse cursor leaves the window Bounds.

OnMove ( EventArgs e ) : void

Called when the NativeWindow is moved.

OnResize ( EventArgs e ) : void

Called when the NativeWindow is resized.

OnTitleChanged ( EventArgs e ) : void

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, EventArgs e ) : void
OnClosingInternal ( object sender, CancelEventArgs e ) : void
OnDisposedInternal ( object sender, EventArgs e ) : void
OnFocusedChangedInternal ( object sender, EventArgs e ) : void
OnIconChangedInternal ( object sender, EventArgs e ) : void
OnKeyPressInternal ( object sender, KeyPressEventArgs e ) : void
OnMouseEnterInternal ( object sender, EventArgs e ) : void
OnMouseLeaveInternal ( object sender, EventArgs e ) : void
OnMoveInternal ( object sender, EventArgs e ) : void
OnResizeInternal ( object sender, EventArgs e ) : void
OnTitleChangedInternal ( object sender, EventArgs e ) : void
OnVisibleChangedInternal ( object sender, EventArgs e ) : void
OnWindowBorderChangedInternal ( object sender, EventArgs e ) : void
OnWindowStateChangedInternal ( object sender, EventArgs e ) : void

메소드 상세

Close() 공개 메소드

Closes the NativeWindow.
public Close ( ) : void
리턴 void

Dispose() 공개 메소드

Releases all non-managed resources belonging to this NativeWindow.
public Dispose ( ) : void
리턴 void

EnsureUndisposed() 보호된 메소드

Ensures that this NativeWindow has not been disposed.
/// If this NativeWindow has been disposed. ///
protected EnsureUndisposed ( ) : void
리턴 void

NativeWindow() 공개 메소드

Constructs a new NativeWindow with default attributes without enabling events.
public NativeWindow ( ) : System
리턴 System

NativeWindow() 공개 메소드

Constructs a new NativeWindow with the specified attributes.
If width or height is less than 1. If mode or device is null.
public NativeWindow ( int x, int y, int width, int height, string title, GameWindowFlags options, OpenTK.Graphics.GraphicsMode mode, DisplayDevice device ) : System
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 DisplayDevice The OpenTK.Graphics.DisplayDevice to construct the NativeWindow in.
리턴 System

NativeWindow() 공개 메소드

Constructs a new centered NativeWindow with the specified attributes.
If width or height is less than 1. If mode or device is null.
public NativeWindow ( int width, int height, string title, GameWindowFlags options, OpenTK.Graphics.GraphicsMode mode, DisplayDevice device ) : System
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 DisplayDevice The OpenTK.Graphics.DisplayDevice to construct the NativeWindow in.
리턴 System

OnClosed() 보호된 메소드

Called when the NativeWindow has closed.
protected OnClosed ( EventArgs e ) : void
e System.EventArgs Not used.
리턴 void

OnClosing() 보호된 메소드

Called when the NativeWindow is about to close.
protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs /// The for this event. /// Set e.Cancel to true in order to stop the NativeWindow from closing.
리턴 void

OnDisposed() 보호된 메소드

Called when the NativeWindow is disposed.
protected OnDisposed ( EventArgs e ) : void
e System.EventArgs Not used.
리턴 void

OnFocusedChanged() 보호된 메소드

Called when the OpenTK.INativeWindow.Focused property of the NativeWindow has changed.
protected OnFocusedChanged ( EventArgs e ) : void
e System.EventArgs Not used.
리턴 void

OnIconChanged() 보호된 메소드

Called when the OpenTK.INativeWindow.Icon property of the NativeWindow has changed.
protected OnIconChanged ( EventArgs e ) : void
e System.EventArgs Not used.
리턴 void

OnKeyDown() 보호된 메소드

Occurs whenever a keybord key is pressed.
protected OnKeyDown ( KeyboardKeyEventArgs e ) : void
e OpenTK.Input.KeyboardKeyEventArgs
리턴 void

OnKeyPress() 보호된 메소드

Called when a character is typed.
protected OnKeyPress ( KeyPressEventArgs e ) : void
e KeyPressEventArgs The for this event.
리턴 void

OnKeyUp() 보호된 메소드

Called when a keybord key is released.
protected OnKeyUp ( KeyboardKeyEventArgs e ) : void
e OpenTK.Input.KeyboardKeyEventArgs The for this event.
리턴 void

OnMouseEnter() 보호된 메소드

Called whenever the mouse cursor reenters the window Bounds.
protected OnMouseEnter ( EventArgs e ) : void
e System.EventArgs Not used.
리턴 void

OnMouseLeave() 보호된 메소드

Called whenever the mouse cursor leaves the window Bounds.
protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs Not used.
리턴 void

OnMove() 보호된 메소드

Called when the NativeWindow is moved.
protected OnMove ( EventArgs e ) : void
e System.EventArgs Not used.
리턴 void

OnResize() 보호된 메소드

Called when the NativeWindow is resized.
protected OnResize ( EventArgs e ) : void
e System.EventArgs Not used.
리턴 void

OnTitleChanged() 보호된 메소드

Called when the OpenTK.INativeWindow.Title property of the NativeWindow has changed.
protected OnTitleChanged ( EventArgs e ) : void
e System.EventArgs Not used.
리턴 void

OnVisibleChanged() 보호된 메소드

Called when the OpenTK.INativeWindow.Visible property of the NativeWindow has changed.
protected OnVisibleChanged ( EventArgs e ) : void
e EventArgs Not used.
리턴 void

OnWindowBorderChanged() 보호된 메소드

Called when the WindowBorder of this NativeWindow has changed.
protected OnWindowBorderChanged ( EventArgs e ) : void
e EventArgs Not used.
리턴 void

OnWindowStateChanged() 보호된 메소드

Called when the WindowState of this NativeWindow has changed.
protected OnWindowStateChanged ( EventArgs e ) : void
e EventArgs Not used.
리턴 void

PointToClient() 공개 메소드

Transforms the specified point from screen to client coordinates.
public PointToClient ( Point point ) : Point
point Point /// A to transform. ///
리턴 Point

PointToScreen() 공개 메소드

Transforms the specified point from client to screen coordinates.
public PointToScreen ( Point point ) : Point
point Point /// A to transform. ///
리턴 Point

ProcessEvents() 공개 메소드

Processes operating system events until the NativeWindow becomes idle.
public ProcessEvents ( ) : void
리턴 void

ProcessEvents() 보호된 메소드

Processes operating system events until the NativeWindow becomes idle.
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