sandbox
Loading...
Searching...
No Matches
sbx::devices::window Class Reference

Public Member Functions

 window (const window_create_info &create_info)
 
auto handle () -> GLFWwindow *
 
 operator GLFWwindow * ()
 
auto title () const -> const std::string &
 
auto set_title (const std::string &title) -> void
 
auto width () const -> std::uint32_t
 
auto height () const -> std::uint32_t
 
auto aspect_ratio () const -> std::float_t
 
auto should_close () -> bool
 Determins if the window should be closed. More...
 
auto show () -> void
 Makes the window visible.
 
auto hide () -> void
 Hides the window.
 
auto is_iconified () const noexcept -> bool
 
auto is_focused () const noexcept -> bool
 
auto is_visible () const noexcept -> bool
 
auto on_window_closed_signal () -> signals::signal< const window_closed_event & > &
 
auto on_window_moved_signal () -> signals::signal< const window_moved_event & > &
 
auto on_window_resized_signal () -> signals::signal< const window_resized_event & > &
 
auto on_framebuffer_resized () -> signals::signal< const framebuffer_resized_event & > &
 
auto on_key_pressed () -> signals::signal< const key_pressed_event & > &
 
auto on_key_released () -> signals::signal< const key_released_event & > &
 
auto on_mouse_moved () -> signals::signal< const mouse_moved_event & > &
 

Member Function Documentation

◆ should_close()

auto sbx::devices::window::should_close ( ) -> bool
inline

Determins if the window should be closed.

Returns
true if the window should be closed, false otherwise

The documentation for this class was generated from the following file: