Skip to main content

Crate uzor_framework_macros

Crate uzor_framework_macros 

Source
Expand description

Procedural macros for uzor-framework.

Exports view! — JSX-mimicking DSL that lowers to widgets::lm::* builder calls against a [uzor_framework::widgets::ContentCx] (a PanelCx or OverlayCx). Pure compile-time rewriting; no second manager.

The macro expects one implicit identifier in scope:

  • cx: &mut impl uzor_framework::widgets::ContentCx

And one prop-supplied rect on a root flex node (<row rect={r}> / <col rect={r}>), from which children rects are derived via uzor_framework::flex::flex_solve.

Macros§

view
JSX-style view tree. Lowers to imperative uzor_framework::widgets::lm::* calls.