Skip to main content

render_flex_list

Function render_flex_list 

Source
pub fn render_flex_list(
    params: &FlexListParams,
    tx: u32,
    ty: u32,
    ctx: &DataContext,
    theme: &Theme,
    painter: &mut dyn Painter,
)
Expand description

Render a multi-column flex list into the framebuffer via painter.

Each item in items must be a DataValue::List whose elements correspond to the columns defined in item_layout by position.

§Arguments

  • params — Deserialised FlexListParams from the layout definition.
  • tx, ty — Top-left tile position of the element.
  • ctx — Data context for resolving item values.
  • painter — Drawing backend.