Window

A class of GLFWwindow. Initializing GLFW will be executed automatically if it's necessary.

Constructors

this
this(vec2i sz, string text, int hint)

Destructor

~this
~this()

Members

Functions

applyFrame
void applyFrame()

Swaps the back and front buffers.

close
void close()

Closes the opened window.

dispose
void dispose()

Deletes the window.

focus
void focus()

Focuses to the unfocused window.

hide
void hide()

Hides the shown window.

maximize
void maximize()

Maximizes the window.

minimize
void minimize()

Minimizes the window.

resetFrame
void resetFrame()

Prepares the window to draw. This method doesn't clear the buffers. The saved exception at handler will be throwed from here.

restore
void restore()

Restores the window.

setClampSize
void setClampSize(vec2i min, vec2i max)

Sets size limitations.

show
void show()

Shows the hidden window.

Properties

alive
bool alive [@property getter]

Checks if the window shouldn't close.

aspectRatio
vec2i aspectRatio [@property setter]

Sets aspect ratio of the window.

clipboard
dstring clipboard [@property getter]
dstring clipboard [@property setter]

Clipboard text.

cursor
Cursor cursor [@property setter]

Sets cursor shape for the window. (writeonly)

disposed
disposed [@property getter]

Checks if the window is disposed.

pos
vec2i pos [@property getter]

Gets position of the window.

pos
vec2i pos [@property setter]

Sets position of the window.

size
vec2i size [@property getter]

Gets size of the window.

size
vec2i size [@property setter]

Sets size of the window.

title
string title [@property setter]

Sets title of the window. (writeonly)

Static functions

pollEvents
void pollEvents()

Handles events of all window.

Variables

_window
GLFWwindow* _window;
Undocumented in source.
handler
EventHandler handler;

Event handlers.

Meta