///
/// Must be implemented in subclasses to remove the layout item at *index* from the layout, and return the item. If there is no such
/// item, the function must do nothing and return 0. Items are numbered
/// consecutively from 0. If an item is removed, other items will be
/// renumbered.
///
/// The following code fragment shows a safe way to remove all items
/// from a layout:
///
/// **See also:** [`item_at()`]
/// [`count()`]
Must be implemented in subclasses to remove the layout item at *index* from the layout, and return the item. If there is no such
item, the function must do nothing and return 0. Items are numbered
consecutively from 0. If an item is removed, other items will be
renumbered.

The following code fragment shows a safe way to remove all items
from a layout.


Must be implemented in subclasses to remove the layout item at * index * from the layout and return the item . If there is no such item the function must do nothing and return 0 . Items are numbered consecutively from 0 . If an item is removed other items will be renumbered . The following code fragment shows a safe way to remove all items from a layout .
pub fn take_at(&self, index: i32) -> Option<LayoutItem> {
        let (obj_data, funcs) = self.get_layout_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).take_at)(obj_data, index);
            if ret_val.qt_data == ::std::ptr::null() {
                return None;
            }
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = LayoutItem::new_from_rc(t);
            } else {
                ret_val = LayoutItem::new_from_owned(t);
            }
            Some(ret_val)
        }
    }
pub fn take_at ( & self , index : i32 ) -> Option < LayoutItem > { let ( obj_data , funcs ) = self . get_layout_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . take_at ) ( obj_data , index ) ; if ret_val . qt_data == :: std :: ptr :: null ( ) { return None ; } let t = ret_val ; let ret_val ; if t . host_data != :: std :: ptr :: null ( ) { ret_val = LayoutItem :: new_from_rc ( t ) ; } else { ret_val = LayoutItem :: new_from_owned ( t ) ; } Some ( ret_val ) } }
Must be implemented in subclasses to remove the layout item at *index* from the layout, and return the item.
Must be implemented in subclasses to remove the layout item at * index * from the layout and return the item .
&self
index
i32