Class Session

Class Documentation

class Session

Declaration: final

Public Functions

Session(CE::Input::System &input, CE::Input::Routing::TargetId target, SessionOptions options = {})
~Session()
Session(const Session&) = delete
Session &operator=(const Session&) = delete
Session(Session&&) = delete
Session &operator=(Session&&) = delete
Rml::Context &context()

Declaration: [[nodiscard]]

Capabilities capabilities() const

Declaration: [[nodiscard]]

bool load_font(const std::filesystem::path &file, const Rml::String &family, bool fallback = false)
bool load_font(std::span<const unsigned char> bytes, const Rml::String &family, bool fallback = false)
void set_view(CE::Platform::Dimensions<int> logical, CE::Platform::FramebufferSize framebuffer)
void update_time(double delta_seconds)
void request_keyboard_focus(CE::Input::Routing::KeyboardPolicy routing = CE::Input::Routing::KeyboardPolicy::Exclusive)
void release_keyboard_focus()
bool owns_keyboard_focus() const

Declaration: [[nodiscard]]

void handle_input(std::span<const CE::Input::Events::Record> records, bool pointer_selected)
void handle_input(std::span<const CE::Input::Events::Record> records, bool pointer_selected, const std::function<bool(const CE::Input::Events::Record&)> &before_record)
RecordedScene record()

Declaration: [[nodiscard]]

void close_after_quiescence()