6#include <aegis2d/platform/export.hpp>
22class AEGIS2D_PLATFORM_EXPORT
WindowError :
public std::runtime_error {
24 using std::runtime_error::runtime_error;
61class AEGIS2D_PLATFORM_EXPORT
Window {
95 [[nodiscard]] const
Mouse& mouse() const noexcept;
102 void set_text_input(
bool active);
106 [[nodiscard]] const
TextInput& text_input() const noexcept;
115 [[nodiscard]] const
Gamepad& gamepad() const noexcept;
119 [[nodiscard]]
std::
size_t gamepad_count() const noexcept;
123 [[nodiscard]]
bool close_requested() const noexcept;
126 void request_close() noexcept;
130 [[nodiscard]]
std::
string title() const;
134 void set_title(const
std::
string& title);
153 [[nodiscard]]
std::uint32_t
id() const noexcept;
157 std::unique_ptr<Impl> impl_;
UTF-8 text typed during a frame, following the user's keyboard layout.
Definition text_input.hpp:25
Gamepad buttons, sticks and triggers, with no SDL type.
Keyboard keys, their names, and the state of the keyboard during a frame.
Mouse buttons, and the state of the mouse during a frame.
Definition endpoint.hpp:85
UTF-8 text typed during a frame, following the user's keyboard layout.