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

Module renderer

Module renderer 

Source
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§

DecorationConfig
Window decoration rendering configuration.

Enums§

BorderEdge
Which border edge was hit for resize operations.
DecorationButton
Buttons that can appear in the title bar.
DecorationHitTest
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.