Macro gstore::application_window[][src]

macro_rules! application_window {
    (
        widget {
             $($widget:tt)*
        }
        $(title_bar {
            $($title_bar:tt)*
        })?
        $(styles $styles_path:expr)?
    ) => { ... };
}

Creates a new ApplicationWindow.

See Also

Examples

application_window! {
    widget {
        properties {
            default_width: 400
            default_height: 400
        }
        connecting store {
            connect_destroy: move |_| store.dispatch(Action::Stop)
        }
        children [
            label!(just "Test Label")
        ]
    }
    // load styles here via `styles "../styles.css"`
};