Macro gstore::label[][src]

macro_rules! label {
    (
        just $text:expr
    ) => { ... };
    (
        select $state:ident -> {$getter:expr}
        $(css $class:expr)?
    ) => { ... };
    (
        $($text:tt)*
    ) => { ... };
}

gstore makro for the GTK label.

See Also

Examples

Long example:

label! {
    // set css label
    class "my-label-css-class"
    // define gtk label properties
    properties stateful {
        label: format!("{}", count())
    }
};

Short example without local state:

label!(just "Test");