편집

다음을 통해 공유


IGameWindow Interface

Definition

Defines the interface for a GameWindow.

public interface IGameWindow : IDisposable, OpenTK.INativeWindow
type IGameWindow = interface
    interface INativeWindow
    interface IDisposable
Derived
Implements

Properties

Bounds

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.

(Inherited from INativeWindow)
ClientRectangle

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.

(Inherited from INativeWindow)
ClientSize

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

(Inherited from INativeWindow)
Exists

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

(Inherited from INativeWindow)
Focused

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

(Inherited from INativeWindow)
Height

Gets or sets the external height of this window.

(Inherited from INativeWindow)
Location

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

(Inherited from INativeWindow)
Size

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

(Inherited from INativeWindow)
Title

Gets or sets the title of the window.

(Inherited from INativeWindow)
Visible

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

(Inherited from INativeWindow)
Width

Gets or sets the external width of this window.

(Inherited from INativeWindow)
WindowBorder

Gets or sets the WindowBorder for this window.

(Inherited from INativeWindow)
WindowInfo

Gets the IWindowInfo for this window.

(Inherited from INativeWindow)
WindowState

Gets or sets the WindowState for this window.

(Inherited from INativeWindow)
X

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

(Inherited from INativeWindow)
Y

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

(Inherited from INativeWindow)

Methods

Close()

Closes this window.

(Inherited from INativeWindow)
MakeCurrent()

Makes the GraphicsContext current on the calling thread.

PointToClient(Point)

Transforms the specified point from screen to client coordinates.

(Inherited from INativeWindow)
PointToScreen(Point)

Transforms the specified point from client to screen coordinates.

(Inherited from INativeWindow)
ProcessEvents()

Processes pending window events.

(Inherited from INativeWindow)
Run()

Enters the game loop of the GameWindow using the maximum update rate.

Run(Double)

Enters the game loop of the GameWindow using the specified update rate.

SwapBuffers()

Swaps the front and back buffers of the current GraphicsContext, presenting the rendered scene to the user.

Events

Closed

Occurs after the window has closed.

(Inherited from INativeWindow)
Closing

Occurs when the window is about to close.

(Inherited from INativeWindow)
Disposed

Occurs when the window is disposed.

(Inherited from INativeWindow)
FocusedChanged

Occurs when the Focused property of the window changes.

(Inherited from INativeWindow)
KeyPress

Occurs whenever a character is typed.

(Inherited from INativeWindow)
Load

Occurs before the window is displayed for the first time.

Move

Occurs whenever the window is moved.

(Inherited from INativeWindow)
RenderFrame

Occurs when it is time to render a frame.

Resize

Occurs whenever the window is resized.

(Inherited from INativeWindow)
TitleChanged

Occurs when the Title property of the window changes.

(Inherited from INativeWindow)
Unload

Occurs before the window is destroyed.

UpdateFrame

Occurs when it is time to update a frame.

VisibleChanged

Occurs when the Visible property of the window changes.

(Inherited from INativeWindow)
WindowBorderChanged

Occurs when the WindowBorder property of the window changes.

(Inherited from INativeWindow)
WindowStateChanged

Occurs when the WindowState property of the window changes.

(Inherited from INativeWindow)

Applies to