pub struct BuildContext<'a> {Show 21 fields
pub view: &'a CatalogView,
pub recipes: &'a RecipeIndex,
pub data: &'a Value,
pub local: &'a mut LocalState,
pub template: &'a dyn Fn(&str) -> Option<UiNode>,
pub viewport_height: f32,
pub viewport_width: f32,
pub hairline: f32,
pub row_extent: f32,
pub menu_row: f32,
pub tab_bar: f32,
pub gap_px: &'a dyn Fn(&str) -> f32,
pub expand_controls: bool,
pub strings: &'a StringTable,
pub breakpoint: Option<String>,
pub locale: &'a str,
pub wide: bool,
pub today: Option<String>,
pub formatter: &'a dyn Formatter,
pub now: f64,
pub data_version: u64,
}Fields§
§view: &'a CatalogView§recipes: &'a RecipeIndex§data: &'a Value§local: &'a mut LocalState§template: &'a dyn Fn(&str) -> Option<UiNode>Reduce a template component by id into a normalized subtree.
viewport_height: f32§viewport_width: f32Round 2: the viewport width (horizontal windows).
hairline: f32$control.hairline (Resizable handles, list dividers) and
$control.row (the extent of an unmeasured list item).
row_extent: f32EXP-1259: $control.buttonSm, a menu row’s height (a searchable
submenu’s list window).
tab_bar: f32VAPP-162: $control.tabBar, the item height of a vertical bar
Segmented (the navigation rail).
gap_px: &'a dyn Fn(&str) -> f32The theme’s default gap for List items per gap enum, in px.
expand_controls: boolExpand form controls into label/field/description parts (a themed surface); off = geometry mode, every native is ONE measured leaf.
strings: &'a StringTableThe surface’s built-in string table.
breakpoint: Option<String>The active breakpoint (None = base) for responsive native props.
locale: &'a strThe surface locale (week start).
wide: boolThe surface is at least md wide (the toast stack sits bottom-end).
today: Option<String>Today as yyyy-mm-dd (the host’s clock; calendars open on it).
formatter: &'a dyn FormatterRound 2: the surface formatter (Table cells, NumberField, chart ticks, pickers, calendar names, the format functions).
now: f64The clock (epoch ms) relative times read.
data_version: u64Bumped on every write to the data model (the key caches’ version).