euv-macros 0.51.0

Zero-overhead procedural macros for the cross-platform euv UI framework, providing view!, style!, var!, watch!, computed!, state!, #[store], #[component], #[event], emit!, on!, and #[euv].
Documentation
1
2
3
4
5
6
7
8
9
use super::*;

/// Top-level `style! { ... }` invocation form: either named functions or an inline `Style` expression.
pub(crate) enum StyleBlockInput {
    /// Named style constructor functions (`style! { pub fn card_box(tokens: ThemeTokens) { ... } }`).
    Defs(Vec<StyleDef>),
    /// Inline anonymous `Style` expression (`style! { AlignItems::Center\n Overflow::Hidden }`).
    Inline(Vec<Expr>),
}