Skip to content

Reference

The whole of xpui-chrome's public API, by area. It is written for a backend author: someone answering xpui's Chrome trait on top of a drawing library. The host contract is what a backend implements, and design.md is why the choices here are what they are.

Each page lists every public name in its area with its declaration, its parameters, examples you can copy, and a picture of what it draws. The gate checks every page against the code, so what a page says an item is, the compiler agrees with, and every rust block on them is compiled and run as a doctest.

GroupPageHolds
Backendplain chromeplain_chrome!, and the four things a backend passes in
Paintingpaintingthe header, the controls and the hint bar: draw_header, draw_sub_header, draw_slider, draw_progress_bar, draw_button_hints
painting listsrows of content: draw_list, draw_option_popup, draw_scroll_indicator
Layout & sizinglayoutwhere a list's rows and a dialog's rows land: row_height, rows_that_fit, popup_layout, PopupLayout, option_popup_row_rect
metrics and labelsMetrics and its three presets, Labels, and the re-exported KeyRow and RowKey
IconsiconsIcon, draw_icon and icon_size