Skip to content

ludus::platform::wayland

Ludus Wiki · API overview · Browse API

Namespace

Declared in modules/platform/include/ludus/platform/wayland/window.h

Functions

InitializeWayland

bool ludus::platform::wayland::InitializeWayland(const WindowManager::InitializeInfo &info) noexcept

Related types: WindowManager::InitializeInfo

Declared in modules/platform/include/ludus/platform/wayland/window.h

CreateWindow

UniquePtr< WindowWayland > ludus::platform::wayland::CreateWindow(const Window::CreateInfo &info)

Related types: WindowWayland · UniquePtr · Window::CreateInfo

Declared in modules/platform/include/ludus/platform/wayland/window.h

ComputeToplevelVisibility

WindowVisibility ludus::platform::wayland::ComputeToplevelVisibility(const wl_array &states) noexcept
Map the states of an xdg_toplevel.configure event to a visibility.
ParameterDescription
states
The event's states argument: packed 32-bit xdg_toplevel_state values.

Returns

Occluded when the array carries XDG_TOPLEVEL_STATE_SUSPENDED, which xdg-shell (xdg_wm_base version 6) sends while "the surface is currently not ordinarily being repainted; for example because its content is occluded by another window, or its outputs are switched off due to screen locking", and which compositors also set for a minimized window; otherwise Visible. The protocol does not distinguish minimization, so Minimized is never returned. A build against wayland-protocols older than 1.32 has no suspended state and always returns Visible.

Related types: WindowVisibility

Declared in modules/platform/include/ludus/platform/wayland/window.h

Aliases

UniquePtr

template <typename ElementType, typename DeleterType = core::DefaultDeleter<ElementType>>
using ludus::foundation::UniquePtr = core::UniquePtr<ElementType, DeleterType>
Public spelling of core::UniquePtr, including its deleter parameter.

Declared in modules/platform/include/ludus/platform/wayland/window.h