pub fn add_child_item(&self, i: DynLayoutItem) {
        let base = {
            let mut inner = self.inner.borrow_mut();
            if inner.base.is_null() {
                panic!("DynLayout is not initialized");
            }

            // No need to check the layout item control because it's checked in `DynLayoutItem::new`

            inner.children.push(i);
            inner.base
        };

        let (w, h) = unsafe { wh::get_window_size(base) };
        self.update_layout(w as u32, h as u32);
    }
/**
    Add a children control to the layout.

    Panic:
        - If the layout is not initialized
        - If the control is not window-like (HWND handle)
    */
Add a children control to the layout.
Panic:
If the layout is not initialized
If the control is not window-like (HWND handle)
Add a children control to the layout . Panic : If the layout is not initialized If the control is not window - like ( HWND handle )
pub fn add_child_item(&self, i: DynLayoutItem) {
        let base = {
            let mut inner = self.inner.borrow_mut();
            if inner.base.is_null() {
                panic!("DynLayout is not initialized");
            }
            // No need to check the layout item control because it's checked in `DynLayoutItem::new`
            inner.children.push(i);
            inner.base
        };
        let (w, h) = unsafe { wh::get_window_size(base) };
        self.update_layout(w as u32, h as u32);
    }
pub fn add_child_item ( & self , i : DynLayoutItem ) { let base = { let mut inner = self . inner . borrow_mut ( ) ; if inner . base . is_null ( ) { panic ! ( " " ) ; } // No need to check the layout item control because it's checked in `DynLayoutItem::new` inner . children . push ( i ) ; inner . base } ; let ( w , h ) = unsafe { wh :: get_window_size ( base ) } ; self . update_layout ( w as u32 , h as u32 ) ; }
Add a children control to the layout.
Add a children control to the layout .
&self
i
DynLayoutItem