pub fn remove_child<W: Into<ControlHandle>>(&self, c: W) {
        let mut inner = self.inner.borrow_mut();
        if inner.base.is_null() {
            panic!("Flexbox layout is not yet initialized!");
        }

        let handle = c.into().hwnd().expect("Control must be window like (HWND handle)");
        let index = inner.children.iter()
            .position(|child| child.is_item() && child.as_item().control == handle);

        match index {
            Some(i) => { inner.children.remove(i); },
            None => { panic!("Control was not found in layout"); }
        }
    }
/**
        Remove a children from the layout
        
        Panic:
        * If the control is not a window-like control
        * If the control is not in the layout (see `has_child`)
        * If the layout was not initialized
    */
Remove a children from the layout
Panic:
If the control is not a window-like control
If the control is not in the layout
If the layout was not initialized
Remove a children from the layout Panic : If the control is not a window - like control If the control is not in the layout If the layout was not initialized
pub fn remove_child<W: Into<ControlHandle>>(&self, c: W) {
        let mut inner = self.inner.borrow_mut();
        if inner.base.is_null() {
            panic!("Flexbox layout is not yet initialized!");
        }
        let handle = c.into().hwnd().expect("Control must be window like (HWND handle)");
        let index = inner.children.iter()
            .position(|child| child.is_item() && child.as_item().control == handle);
        match index {
            Some(i) => { inner.children.remove(i); },
            None => { panic!("Control was not found in layout"); }
        }
    }
pub fn remove_child < W : Into < ControlHandle > > ( & self , c : W ) { let mut inner = self . inner . borrow_mut ( ) ; if inner . base . is_null ( ) { panic ! ( " " ) ; } let handle = c . into ( ) . hwnd ( ) . expect ( " " ) ; let index = inner . children . iter ( ) . position ( | child | child . is_item ( ) && child . as_item ( ) . control == handle ) ; match index { Some ( i ) => { inner . children . remove ( i ) ; } , None => { panic ! ( " " ) ; } } }
Remove a children from the layout
Panic:
 If the control is not a window-like control
 If the control is not in the layout (see `has_child`)
 If the layout was not initialized
Remove a children from the layout Panic : If the control is not a window - like control If the control is not in the layout ( see ` has_child ` ) If the layout was not initialized
&self
c
W