Expand description
Desktop Renderer
Connects the Wayland compositor’s back-buffer to the hardware framebuffer. Creates the initial desktop scene (background gradient, panel, terminal placeholder) and runs the compositing loop.
Includes server-side decoration (SSD) types and rendering functions that define the complete decoration API surface. Some items (hit-testing, button rendering) are not yet wired into the event dispatch path.
Structs§
- Decoration
Config - Window decoration rendering configuration.
Enums§
- Border
Edge - Which border edge was hit for resize operations.
- Decoration
Button - Buttons that can appear in the title bar.
- Decoration
HitTest - Result of hit-testing a point against window decorations.
Functions§
- create_
app_ surface - Create a compositor surface backed by a SHM pool + buffer.
- draw_
char_ into_ buffer - Draw a single 8x16 character into a BGRA pixel buffer.
- draw_
string_ into_ buffer - Draw a string into a BGRA pixel buffer at (px, py) with the given color.
- draw_
title_ bar_ into_ surface - Draw a title bar (background + title text + close button) into a BGRA surface pixel buffer. The title bar occupies the top 28 rows of the buffer. The window’s title and focus state are read from the WM.
- hit_
test_ decoration - Hit-test a point (relative to the window’s top-left including decorations) against the decoration regions.
- render_
decoration_ button - Render a single decoration button (close, maximize, or minimize).
- render_
window_ decoration - Render a complete window decoration frame into a pixel buffer.
- start_
desktop - Initialize the desktop environment and start the compositor.
- update_
surface_ pixels - Update the pixel data for an app surface and request recomposite.