kiss_ui::children! [] [src]

macro_rules! children [
    // Accepts invocation with or without a final comma.
    ($($child:expr),+,) => (children![$($child),+]);
    ($($child:expr),+) => ({
        use ::kiss_ui::widget::Widget;
        vec![$($child.to_base()),+]
    });
    () => (vec![]);
];

Convert a heterogeneous list of widgets into a Vec<BaseWidget>, suitable for passing to any function that takes AsRef<[BaseWidget]>, such as a constructor for one of the container types.