- close
void close()
Close the window and destroy all the attached resources.
- create
deprecated void create(VideoMode mode, const(char)[] title, Style style, ContextSettings settings)
deprecated void create(VideoMode mode, const(wchar)[] title, Style style, ContextSettings settings)
Create (or recreate) the window.
- create
void create(VideoMode mode, const(dchar)[] title, Style style, ContextSettings settings)
void create(WindowHandle handle, ContextSettings settings)
Create (or recreate) the window.
- deleteWindowPtr
void deleteWindowPtr()
Undocumented in source. Be warned that the author may not have intended to support it.
- display
void display()
Display on screen what has been rendered to the window so far.
- getMousePosition
Vector2i getMousePosition()
Undocumented in source. Be warned that the author may not have intended to support it.
- getSettings
ContextSettings getSettings()
Get the settings of the OpenGL context of the window.
- getSystemHandle
WindowHandle getSystemHandle()
Get the OS-specific handle of the window.
- hasFocus
bool hasFocus()
Check whether the window has the input focus
- isOpen
bool isOpen()
Tell whether or not the window is open.
- mouse_SetPosition
void mouse_SetPosition(Vector2i pos)
Undocumented in source. Be warned that the author may not have intended to support it.
- mouse_getPosition
Vector2i mouse_getPosition()
Undocumented in source. Be warned that the author may not have intended to support it.
- pollEvent
bool pollEvent(Event event)
Pop the event on top of the event queue, if any, and return it.
- requestFocus
void requestFocus()
Request the current window to be made the active foreground window.
- setActive
bool setActive(bool active)
Activate or deactivate the window as the current target for OpenGL
rendering.
- setFramerateLimit
void setFramerateLimit(uint limit)
Limit the framerate to a maximum fixed frequency.
- setIcon
void setIcon(uint width, uint height, const(ubyte[]) pixels)
Change the window's icon.
- setJoystickThreshhold
deprecated void setJoystickThreshhold(float threshhold)
Change the joystick threshold.
- setJoystickThreshold
void setJoystickThreshold(float threshold)
Change the joystick threshold.
- setKeyRepeatEnabled
void setKeyRepeatEnabled(bool enabled)
Enable or disable automatic key-repeat.
- setMouseCursorVisible
void setMouseCursorVisible(bool visible)
Show or hide the mouse cursor.
- setMousePosition
void setMousePosition(Vector2i pos)
Undocumented in source. Be warned that the author may not have intended to support it.
- setTitle
deprecated void setTitle(const(char)[] newTitle)
deprecated void setTitle(const(wchar)[] newTitle)
Change the title of the window.
- setTitle
void setTitle(const(dchar)[] newTitle)
Change the title of the window.
- setVerticalSyncEnabled
void setVerticalSyncEnabled(bool enabled)
Enable or disable vertical synchronization.
- setVisible
void setVisible(bool visible)
- waitEvent
bool waitEvent(Event event)
Wait for an event and return it.
Window that serves as a target for OpenGL rendering.