Expand description
A .yui tree (as the designer holds it) → the yog_ui::Widget tree the
generated .g.rs builds in game — the same builder calls yog build emits (yog-cli yui.rs), made directly instead of as source —
wrapped like the generated root_with (the screen panel, anchored).
Re-exports§
pub use crate::yui::color;
Structs§
- YuiNode
- One element of the designer’s document (
YuiNodeinyui.ts).
Functions§
- apply_
resources - What
yog builddoes to a screen before building it (and the design view’s own:d:values for bound ones):<Screen.Resources>(@Namevalues,<Style x:Key>withbased_on) applied — a style’s attributes on every element naming it, its own winning — and yog-kit’s elements as the widgets they become (ToggleButton→Button,ListView→ScrollView,ItemsControl/ContentPresenter→ a column or row). Unknown names are left as they are (yog checkreports them). - apply_
theme <Screen theme>’s defaults on every node that doesn’t set the attribute itself — asyog buildapplies them.- is_
container - is_
property_ element - A property element (
<Grid.RowDefinitions>) — part of its parent, not a widget. - screen
- text
- What a text attribute shows:
@lang:keyis a translation key (shown as the key — the designer has no game language),@@xthe literal@x. - widget
- Builds the widget for
node.in_canvas: the parent places children absolutely.scroll: preview scroll offsets by uid. - widget_
children - The children that are widgets (property elements skipped).