/** * @file Window.h * @author apio (cloudapio.eu) * @brief UI windows. * * @copyright Copyright (c) 2023, the Luna authors. * */ #pragma once #include #include #include #include namespace ui { class Window { public: static Result create(Rect rect); void set_title(StringView title); Canvas& canvas() { return m_canvas; } void update(); void close(); int id() const { return m_id; } ~Window(); private: int m_id; Canvas m_canvas; }; }