24#ifndef STELLARLIB_APP_WINDOW_HPP
25#define STELLARLIB_APP_WINDOW_HPP
27#include <stellarlib/app/lifecycle.hpp>
29#include <SDL3/SDL_events.h>
30#include <SDL3/SDL_video.h>
45friend internal::lifecycle<class context>;
74 constexpr auto operator=(const
window &) noexcept
80 constexpr auto operator=(
window &&) noexcept
103 std::unique_ptr<SDL_Window,
void (*)(SDL_Window *)> _handle{
nullptr,
nullptr};
110 void event(
const SDL_Event &event)
const;
auto title() const -> std::string
Returns the title of the window.
void set_title(const std::string &title)
Sets the title of the window.
constexpr window(window &&) noexcept=delete
Deleted move constructor.
constexpr window(const window &) noexcept=delete
Deleted copy constructor.
Application runtime.
Definition clock.hpp:33
context::info info
Main initialization descriptor.
Definition init.hpp:41
Window initialization descriptor.
Definition window.hpp:52
std::string title
Title of the window.
Definition window.hpp:56