view 0.4.1

a macro for constructing views
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::View;

#[derive(Default)]
pub struct VStack {
    pub children: Vec<Box<dyn crate::View>>,
}

impl VStack {
    pub fn add_view_child<'a, T>(&'a mut self, child: T)
    where
        T: 'static + View,
    {
        self.children.push(Box::new(child));
    }
}

impl View for VStack {}