Struct WindowState

Struct Documentation

struct WindowState

An owned selection made on the platform owner; focus is unknown when unsupported.

See also

Committed views

Public Functions

bool operator==(const WindowState&) const = default

Public Members

std::uint64_t source = 0

Checked source identity after session reservation; zero before reservation.

std::uint64_t session = 0

Checked runtime session identity; not a native window ID.

std::uint64_t revision = 0

Advances on the initial selection and logical/pixel/supported-focus changes.

CE::Platform::Dimensions<int> logical_size = {0, 0}

Copied window coordinates, independent of framebuffer pixels.

CE::Platform::FramebufferSize framebuffer_size = {0, 0}

Copied drawable pixels; zero extents can suppress drawing.

std::optional<bool> focused

Native window focus when supported; unrelated to keyboard routing ownership.

std::chrono::steady_clock::time_point observed_at = {}

Time of this committed selection.

bool initialized = false

A platform baseline has been selected.

bool closed = false

Runtime closed the source; closure does not fabricate a native change.