|
|
| Window (WindowConfig config) |
| void | OnUpdate () noexcept |
| | Polls for and processes events.
|
| void | SetIcon (const Filesystem &filesystem, const VirtualPath &iconPath) |
| | Sets the window icon from an image file.
|
| unsigned int | GetWidth () const noexcept |
| | Accessors for window size.
|
|
unsigned int | GetHeight () const noexcept |
|
glm::ivec2 | GetSize () const noexcept |
|
glm::ivec2 | GetPosition () const noexcept |
|
glm::vec2 | GetContentScale () const noexcept |
|
unsigned int | GetFramebufferWidth () const noexcept |
|
unsigned int | GetFramebufferHeight () const noexcept |
|
glm::ivec2 | GetFramebufferSize () const noexcept |
| void | SetEventCallback (const std::function< void(pixelbullet::core::Event &)> &callback) |
| | Sets the callback that will be invoked when events occur.
|
|
void | SetFramebufferResizeCallback (const std::function< void(uint32_t)> &callback) |
|
const pixelbullet::input::InputState & | GetInputState () const noexcept |
|
bool | IsKeyDown (pixelbullet::input::KeyCode key) const noexcept |
| void | Minimize () noexcept |
| | Minimizes the window.
|
| void | Maximize () noexcept |
| | Maximizes the window.
|
| void | Restore () noexcept |
| | Restores the window from a minimized or maximized state.
|
| void | RequestClose () noexcept |
| | Requests application shutdown through the normal window-close event path.
|
| bool | SetClipboardText (std::string_view text) |
| | Sets the OS clipboard text for this window.
|
| std::optional< std::string > | GetClipboardText () const |
| | Returns the OS clipboard text for this window when available.
|
| void | ShowSystemMenuAt (const WindowPoint &client_point) noexcept |
| | Shows the native window system menu anchored at the given client-space point.
|
| bool | SupportsCustomChrome () const noexcept |
| | Returns whether the current platform backend supports custom chrome.
|
| void | SetCustomChromeLayout (const WindowChromeLayout &layout) |
| | Stores draggable caption regions for custom chrome windows.
|
| void | ClearCustomChromeLayout () |
| | Clears the currently stored custom chrome layout.
|
| void | SetCursorCaptured (bool captured) noexcept |
| | Captures the OS cursor for relative first-person input.
|
| bool | IsCursorCaptured () const noexcept |
| | Returns whether the window is currently capturing the cursor.
|
| bool | IsMinimized () const noexcept |
| | Returns whether the window is currently minimized.
|
| bool | IsFocused () const noexcept |
| | Returns whether the window currently has focus.
|
| bool | IsMaximized () const noexcept |
| | Returns whether the window is currently maximized.
|
| WindowState | GetWindowState () const noexcept |
| | Returns the current window state.
|