Macro gstore::stack[][src]

macro_rules! stack {
    (
        widget {
            $($widget:tt)*
        }
        $(children_properties [
            $( ($child_name:expr, $child_title:expr, $child_icon:expr) )*
        ])?
    ) => { ... };
    (
        $($child:expr)*
    ) => { ... };
}

Creates a GTK stack.

See Also

Examples

stack! {
    widget {
        properties {
            visible_child_name: "test"
        }
        children [
            label!(just "Test Label")
        ]
    }
    children_properties [
        // (Option<GTK widget name>, Option<Stack item title>, Option<icon name>)
        (Some("child1"), Some("Child One".to_string()), Some("web-browser-symbolic"))
    ]
};