macro_rules! label {
(
just $text:expr
) => { ... };
(
select $state:ident -> {$getter:expr}
$(css $class:expr)?
) => { ... };
(
$($text:tt)*
) => { ... };
}
gstore makro for the GTK label.
Long example:
label! {
class "my-label-css-class"
properties stateful {
label: format!("{}", count())
}
};
Short example without local state: