|
| Window (const std::string &title, bool is_visible=true) |
| Generate and open a fullscreen window.
|
|
| Window (const glm::ivec2 &dimensions, const std::string &title, bool is_visible=true) |
| Generate and open a new window.
|
|
void | setTitle (const std::string &title) |
| Set window title.
|
|
void | processEvents () |
| Process window events.
|
|
void | beginRender () |
| Begin rendering to the main framebuffer.
|
|
void | endRender () |
| End framebuffer rendering.
|
|
void | lockCursor () |
| Hide cursor and lock it at window center.
|
|
void | setCursorVisible (bool visible=true) |
|
void | setCursorPosition (const double &x, const double &y) |
| Set cursor position relative to the window.
|
|
glm::vec2 | getCursorPosition (const bool &absolute=false) |
| Get cursor position relative to the window or screen.
|
|
void | moveToCenter () |
| Center the window.
|
|
void | show () |
| Display the window.
|
|
void | hide () |
| Hide the window.
|
|
void | blink () |
| Make the window blink to get user attention.
|
|
void | makeContextCurrent () |
|
void | setPosition (const glm::ivec2 &) |
| Set window position (excluding decorations)
|
|
void | setDimensions (const glm::ivec2 &) |
| Set window dimensions (excluding decorations)
|
|
const glm::ivec2 | getPosition () const |
| Get window position (excluding decorations)
|
|
const glm::ivec2 | getDimensions () const |
| Get window dimensions (excluding decorations)
|
|
float | getAspectRatio () const noexcept |
| Get window aspect ratio.
|
|
glm::ivec2 | getBufferDimensions () |
| Get main framebuffer dimensions.
|
|
void | setShouldClose (bool can_close=true) |
| Tell the window to close.
|
|
bool | canRun () const |
| Check if nothing prevented the window to close.
|
|
EventHandler & | getEventHandler () |
| Get a reference to the event handler bound to this window.
|
|
const EventHandler & | getEventHandler () const |
| Get a const reference to the event handler bound to this window.
|
|
const std::string | getClipboardContent () |
| Returns the contents of the system clipboard, if the content contains or is convertible to a UTF-8 encoded string.
|
|
void | setClipboardContent (const std::string &contents) |
| Set the contents of the system clipboard to the UTF-8 string.
|
|