|
| | 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 | shouldClose () 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.
|
| |
|
bool | isHovered () const noexcept |
| | Check if the cursor is currently directly over the content area of the window, with no other windows between.
|
| |
|
bool | isFocused () const noexcept |
| | Check if the window has input focus.
|
| |
|
bool | isAlwaysOnTop () const noexcept |
| | Check if the window is forced at foreground.
|
| |
|
bool | isDecorated () const noexcept |
| | Check if the window has decorations (title bar and OS specific borders)
|
| |
| bool | isResizable () const noexcept |
| | Check if the window is resizable by the user.
|
| |
|
bool | isMousePasthrough () const noexcept |
| | Check if the window is transparent to mouse input, letting any mouse events pass through to whatever window is behind it.
|
| |
| void | setAlwaysOnTop (const bool enable=true) noexcept |
| | Toggle if the window should be always on top.
|
| |
| void | setDecorated (const bool enable=true) noexcept |
| | Toggle the decorations (title bar and OS specific borders)
|
| |
| void | setResizable (const bool enable=true) noexcept |
| | Toggle to let the window being resizable by the user.
|
| |
| void | setMousePasthrough (const bool enable=true) noexcept |
| | Toggle to let the window being transparent to mouse input.
|
| |
Window wrapper containing an Graphical context