1#ifndef LIBSBX_DEVICES_WINDOW_HPP_
2#define LIBSBX_DEVICES_WINDOW_HPP_
9#include <unordered_set>
12#include <libsbx/utility/target.hpp>
14#include <libsbx/core/concepts.hpp>
16#include <libsbx/core/version.hpp>
18#include <libsbx/math/vector2.hpp>
20#include <libsbx/signals/signal.hpp>
22#include <libsbx/devices/events.hpp>
23#include <libsbx/devices/input.hpp>
25namespace sbx::devices {
29 std::uint32_t width{};
30 std::uint32_t height{};
41 auto handle() -> GLFWwindow*;
43 operator GLFWwindow*();
45 auto title()
const ->
const std::string&;
47 auto set_title(
const std::string& title) -> void;
49 auto width()
const -> std::uint32_t;
51 auto height()
const -> std::uint32_t;
53 auto aspect_ratio()
const -> std::float_t;
71 auto is_iconified()
const noexcept -> bool;
73 auto is_focused()
const noexcept -> bool;
75 auto is_visible()
const noexcept -> bool;
93 auto _set_callbacks() -> void;
96 std::uint32_t _width{};
97 std::uint32_t _height{};
99 GLFWwindow* _handle{};
Definition: window.hpp:33
auto show() -> void
Makes the window visible.
Definition: window.cpp:101
auto should_close() -> bool
Determins if the window should be closed.
Definition: window.cpp:97
auto hide() -> void
Hides the window.
Definition: window.cpp:105
A vector in two-dimensional space.
Definition: vector2.hpp:27
Definition: signal.hpp:16
Definition: window.hpp:27