pub fn add_child<W: Into<ControlHandle>>(&self, c: W, style: Style) -> Result<(), stretch::Error> {
        {
            let mut inner = self.inner.borrow_mut();
            if inner.base.is_null() {
                panic!("Flexbox layout is not yet initialized!");
            }
    
            let item = FlexboxLayoutItem {
                control: c.into().hwnd().expect("Control must be window like (HWND handle)"),
                style
            };
    
            inner.children.push(FlexboxLayoutChild::Item(item));
        }

        self.fit()
    }
/**
        Add a new children in the layout with the stretch style. 
        
        Panic:
        * If the control is not a window-like control
        * If the layout was not initialized
    */
Add a new children in the layout with the stretch style.
Panic:
If the control is not a window-like control
If the layout was not initialized
Add a new children in the layout with the stretch style . Panic : If the control is not a window - like control If the layout was not initialized
pub fn add_child<W: Into<ControlHandle>>(&self, c: W, style: Style) -> Result<(), stretch::Error> {
        {
            let mut inner = self.inner.borrow_mut();
            if inner.base.is_null() {
                panic!("Flexbox layout is not yet initialized!");
            }
            let item = FlexboxLayoutItem {
                control: c.into().hwnd().expect("Control must be window like (HWND handle)"),
                style
            };
            inner.children.push(FlexboxLayoutChild::Item(item));
        }
        self.fit()
    }
pub fn add_child < W : Into < ControlHandle > > ( & self , c : W , style : Style ) -> Result < ( ) , stretch :: Error > { { let mut inner = self . inner . borrow_mut ( ) ; if inner . base . is_null ( ) { panic ! ( " " ) ; } let item = FlexboxLayoutItem { control : c . into ( ) . hwnd ( ) . expect ( " " ) , style } ; inner . children . push ( FlexboxLayoutChild :: Item ( item ) ) ; } self . fit ( ) }
Add a new children in the layout with the stretch style.
Add a new children in the layout with the stretch style .
&self
c
W
style
Style