///
/// Must be implemented in subclasses to return the layout item at *index.* If there is no such item, the function must return 0.
/// Items are numbered consecutively from 0. If an item is deleted, other items will be renumbered.
///
/// This function can be used to iterate over a layout. The following
/// code will draw a rectangle for each layout item in the layout structure of the widget.
///
/// **See also:** [`count()`]
/// [`take_at()`]
Must be implemented in subclasses to return the layout item at *index.* If there is no such item, the function must return 0.
Items are numbered consecutively from 0. If an item is deleted, other items will be renumbered.

This function can be used to iterate over a layout. The following
code will draw a rectangle for each layout item in the layout structure of the widget.


Must be implemented in subclasses to return the layout item at * index . * If there is no such item the function must return 0 . Items are numbered consecutively from 0 . If an item is deleted other items will be renumbered . This function can be used to iterate over a layout . The following code will draw a rectangle for each layout item in the layout structure of the widget .
pub fn item_at(&self, index: i32) -> Option<LayoutItem> {
        let (obj_data, funcs) = self.get_layout_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).item_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 item_at ( & self , index : i32 ) -> Option < LayoutItem > { let ( obj_data , funcs ) = self . get_layout_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . item_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 return the layout item at *index.
Must be implemented in subclasses to return the layout item at * index .
&self
index
i32