Skip to main content

Crate telar_macros

Crate telar_macros 

Source

Macros§

app
rsx_modules
Transpile every .rsx file under src/ and declare the module tree — what app! does, minus the winit runner. Use this in a crate that drives rsx through a custom Platform (e.g. a Wayland layer-shell backend) instead of the built-in desktop runner: invoke telar::rsx_modules!() at the crate root, then build your own App from the transpiled components and run it via telar::run_with_platform / telar::run_multi_with_platform. Pass a theme type — rsx_modules!(MyTheme) — if your .rsx calls use_theme; otherwise rsx_modules!().
t
Translates a catalog key to a String, substituting named arguments: t!("battery.remaining", time = t).

Derive Macros§

ThemeTokens
Implements Theme and ThemeTokens for a theme struct, mapping each token to the field of the same name.