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

Module panel

Module panel 

Source
Expand description

Desktop Panel (Taskbar) with Layer-Shell Integration

Renders a taskbar at the bottom of the screen showing workspace indicators, open windows, system clock with date, and system tray area.

§Layer-Shell Protocol

The panel uses the wlr-layer-shell protocol to anchor itself to the bottom edge of the output. Layer-shell surfaces are rendered above normal windows and below overlay surfaces (e.g., notifications).

Layer ordering (bottom to top):

  • Background: desktop wallpaper
  • Bottom: desktop widgets
  • Top: panels, docks (this panel)
  • Overlay: lock screen, notifications

The panel requests exclusive zone equal to its height, so the compositor reserves that space and prevents normal windows from overlapping the panel area.

Layer-shell types, enum variants, and panel configuration fields define the complete panel API. Unused items are retained for protocol completeness.

Structs§

LayerSurfaceConfig
Layer-shell surface configuration.
Panel
Desktop panel state.

Enums§

LayerShellAnchor
Layer-shell anchor edges (bitmask).
LayerShellLayer
Layer-shell layer (from wlr-layer-shell protocol).

Constants§

PANEL_HEIGHT
Panel height in pixels.

Functions§

init
Initialize the desktop panel.
with_panel
Execute a function with the panel.