pub fn layout(&self) -> Option<Layout> {
        let (obj_data, funcs) = self.get_widget_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).layout)(obj_data);
            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 = Layout::new_from_rc(t);
            } else {
                ret_val = Layout::new_from_owned(t);
            }
            Some(ret_val)
        }
    }
///
/// By default, this property is set to Qt::LeftToRight.
///
/// When the layout direction is set on a widget, it will propagate to
/// the widget's children, but not to a child that is a window and not
/// to a child for which setLayoutDirection() has been explicitly
/// called. Also, child widgets added *after* setLayoutDirection()
/// has been called for the parent do not inherit the parent's layout
/// direction.
///
/// This method no longer affects text layout direction since Qt 4.7.
///
/// **See also:** [`Application::layout_direction()`]
///
/// Returns the layout manager that is installed on this widget, or 0
/// if no layout manager is installed.
///
/// The layout manager sets the geometry of the widget's children
/// that have been added to the layout.
///
/// **See also:** [`set_layout()`]
/// [`size_policy()`]
/// {Layout Management}
By default, this property is set to Qt::LeftToRight.
When the layout direction is set on a widget, it will propagate to
the widget's children, but not to a child that is a window and not
to a child for which setLayoutDirection() has been explicitly
called. Also, child widgets added *after* setLayoutDirection()
has been called for the parent do not inherit the parent's layout
direction.

This method no longer affects text layout direction since Qt 4.7.



Returns the layout manager that is installed on this widget, or 0
if no layout manager is installed.

The layout manager sets the geometry of the widget's children
that have been added to the layout.


By default this property is set to Qt :: LeftToRight . When the layout direction is set on a widget it will propagate to the widget ' s children but not to a child that is a window and not to a child for which setLayoutDirection () has been explicitly called . Also child widgets added * after * setLayoutDirection () has been called for the parent do not inherit the parent ' s layout direction . This method no longer affects text layout direction since Qt 4 . 7 . Returns the layout manager that is installed on this widget or 0 if no layout manager is installed . The layout manager sets the geometry of the widget ' s children that have been added to the layout .
pub fn layout(&self) -> Option<Layout> {
        let (obj_data, funcs) = self.get_widget_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).layout)(obj_data);
            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 = Layout::new_from_rc(t);
            } else {
                ret_val = Layout::new_from_owned(t);
            }
            Some(ret_val)
        }
    }
pub fn layout ( & self ) -> Option < Layout > { let ( obj_data , funcs ) = self . get_widget_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . layout ) ( obj_data ) ; 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 = Layout :: new_from_rc ( t ) ; } else { ret_val = Layout :: new_from_owned ( t ) ; } Some ( ret_val ) } }
By default, this property is set to Qt::LeftToRight.
By default this property is set to Qt :: LeftToRight .
&self
&self