Skip to main content

Module fragment

Module fragment 

Source
Expand description

The content contract between a section and the dashboard compositor.

A DashboardSection never touches cells, theme ids, or the renderer. It emits a DashboardFragment: styled, aligned, optionally-linked text. The compositor (DB.2+) turns fragments into a branding virtual-row block plus document body. Keeping this the single content type is what lets built-in sections (native Rust) and future plugin sections share one pipeline.

Structs§

DashboardFragment
One section’s rendered contribution: an ordered list of visual lines.
DashboardRow
One visual line: spans laid out left→right, with a line-level alignment.
DashboardSpan
A run of text with a semantic role and an optional link target.

Enums§

Align
Line-level alignment. Right is reserved (no consumer yet).
DashboardRole
Semantic style role. Never a colour — each role resolves to a dashboard.* theme element at compose time (DB.3).
LinkTarget
A link a <CR> follows. Mirrors the help-buffer scheme:value model so DB.2 reuses the help follow mechanism rather than inventing one.