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

            let handle = c.into().hwnd().expect("Control must be window-like (HWND handle)");
            let index = inner.children.iter().position(|item| item.control == handle);
            match index {
                Some(i) => { inner.children.remove(i); },
                None => { return; }
            }
            
            inner.base
        };
        

        let (w, h) = unsafe { wh::get_window_size(base) };
        self.update_layout(w as u32, h as u32);
    }
/**
        Remove the children control in the layout. See also `remove_child_by_pos`.
        Note that the child control won't be hidden after being removed from the control.

        This method won't do anything if there is no control at the specified position.

        Panic:
        - If the layout is not initialized
    */
Remove the children control in the layout.

This method won't do anything if there is no control at the specified position.

If the layout is not initialized
Remove the children control in the layout . This method won ' t do anything if there is no control at the specified position . If the layout is not initialized
pub fn remove_child<W: Into<ControlHandle>>(&self, c: W) {
        let base = {
            let mut inner = self.inner.borrow_mut();
            if inner.base.is_null() {
                panic!("GridLayout is not initialized");
            }
            let handle = c.into().hwnd().expect("Control must be window-like (HWND handle)");
            let index = inner.children.iter().position(|item| item.control == handle);
            match index {
                Some(i) => { inner.children.remove(i); },
                None => { return; }
            }
            inner.base
        };
        let (w, h) = unsafe { wh::get_window_size(base) };
        self.update_layout(w as u32, h as u32);
    }
pub fn remove_child < W : Into < ControlHandle > > ( & self , c : W ) { let base = { 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 ( | item | item . control == handle ) ; match index { Some ( i ) => { inner . children . remove ( i ) ; } , None => { return ; } } inner . base } ; let ( w , h ) = unsafe { wh :: get_window_size ( base ) } ; self . update_layout ( w as u32 , h as u32 ) ; }
Remove the children control in the layout.
Remove the children control in the layout .
&self
c
W