⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module output

Module output 

Source
Expand description

Wayland Output Management (wl_output v4)

Manages display outputs for multi-monitor support and HiDPI scaling. Each output represents a physical or virtual display with its own resolution, position, scale factor, and mode list.

§Multi-Monitor Layout

Outputs are arranged in a global compositor coordinate space. Each output has an (x, y) position representing its top-left corner in this space. Adjacent outputs share edges (e.g., a right-side monitor has x = left_monitor.width). The compositor maps surfaces to outputs based on surface position overlap.

§HiDPI Scaling

Each output has an integer scale factor (1 = normal, 2 = HiDPI/Retina). Surfaces rendered for a scaled output should produce pixels at scale * logical_size. The compositor handles downscaling when displaying on lower-scale outputs.

§Hotplug

Outputs can be added and removed at runtime. When an output is added, a wl_output global is advertised to all connected clients. When removed, the global is withdrawn and any surfaces on that output should be moved to the primary output.

Structs§

Output
A display output (physical monitor or virtual display).
OutputManager
Manages all display outputs and their configuration.
OutputMode
A display mode supported by an output.

Enums§

OutputTransform
Output transform applied to the output’s content.
SubpixelLayout
Subpixel geometry of the display panel.