Class Window

Inheritance Relationships

Derived Type

Class Documentation

class Window

Display-owned window accessed on the platform owner.

Logical dimensions use window coordinates; framebuffer dimensions use drawable pixels and may be zero. Queries do not synchronize with another thread. Copy observed values into the runtime handoff instead of reading a live window from simulation/render workers.

Subclassed by CE::Platform::GLFW::Window

Public Functions

virtual ~Window() = default
virtual ::CE::Platform::Dimensions<int> logical_size() const = 0

Declaration: [[nodiscard]]

virtual ::CE::Platform::FramebufferSize framebuffer_size() const = 0

Declaration: [[nodiscard]]

virtual ::CE::Platform::WindowMode mode() const = 0

Declaration: [[nodiscard]]

virtual bool should_close() const = 0

Declaration: [[nodiscard]]

inline virtual void check_native_failure() const

Consume/rethrow a deferred native callback failure on the platform owner.

Pumping adapters check before publishing a successful poll. Backends with no throwing native callbacks retain the default no-op implementation.

virtual void resize(int width, int height) = 0

Request positive logical dimensions; query the resulting logical/pixel sizes.

Backends define observation freshness and failure behavior after mutation.

virtual void set_mode(::CE::Platform::WindowMode mode) = 0
virtual void hide_cursor(bool hide) const = 0

Change cursor visibility; pointer capture and relative motion are separate capabilities.