|
|
| Window (const ApplicationSpecification &props, bool startHidden=false) |
| |
| 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 |
| |
|
unsigned int | GetFramebufferWidth () const noexcept |
| |
|
unsigned int | GetFramebufferHeight () const noexcept |
| |
|
glm::ivec2 | GetFramebufferSize () const noexcept |
| |
| void | SetEventCallback (const std::function< void(Event &)> &callback) |
| | Sets the callback that will be invoked when events occur.
|
| |
|
void | SetFramebufferResizeCallback (const std::function< void(uint32_t)> &callback) |
| |
|
const input::InputState & | GetInputState () const noexcept |
| |
| void * | GetNativeWindow () const noexcept |
| | Returns the underlying native window pointer.
|
| |
| std::pair< const char **, uint32_t > | GetInstanceExtensions () const |
| | Retrieves the Vulkan instance extensions required by GLFW.
|
| |
| VkResult | CreateSurface (VkInstance instance, const VkAllocationCallbacks *allocator, VkSurfaceKHR *surface) const |
| | Creates a Vulkan surface for this window.
|
| |
| void | Minimize () noexcept |
| | Minimizes the window.
|
| |
| void | Maximize () noexcept |
| | Maximizes the window.
|
| |
| void | Restore () noexcept |
| | Restores the window from a minimized or maximized state.
|
| |
| 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.
|
| |