///
/// Returns the desktop widget (also called the root window).
///
/// The desktop may be composed of multiple screens, so it would be incorrect,
/// for example, to attempt to *center* some widget in the desktop's geometry.
/// QDesktopWidget has various functions for obtaining useful geometries upon
/// the desktop, such as QDesktopWidget::screenGeometry() and
/// QDesktopWidget::availableGeometry().
///
/// On X11, it is also possible to draw on the desktop.
Returns the desktop widget (also called the root window).
The desktop may be composed of multiple screens, so it would be incorrect,
for example, to attempt to *center* some widget in the desktop's geometry.
QDesktopWidget has various functions for obtaining useful geometries upon
the desktop, such as QDesktopWidget::screenGeometry() and
QDesktopWidget::availableGeometry().

On X11, it is also possible to draw on the desktop.
Returns the desktop widget ( also called the root window ) . The desktop may be composed of multiple screens so it would be incorrect for example to attempt to * center * some widget in the desktop ' s geometry . QDesktopWidget has various functions for obtaining useful geometries upon the desktop such as QDesktopWidget :: screenGeometry () and QDesktopWidget :: availableGeometry () . On X11 it is also possible to draw on the desktop .
pub fn desktop() -> Option<DesktopWidget<'a>> {
        let (obj_data, funcs) = unsafe {
            (
                ::std::ptr::null(),
                (*((*rute_ffi_get()).get_application)(::std::ptr::null()).all_funcs)
                    .application_funcs,
            )
        };
        unsafe {
            let ret_val = ((*funcs).desktop)(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 = DesktopWidget::new_from_rc(t);
            } else {
                ret_val = DesktopWidget::new_from_owned(t);
            }
            Some(ret_val)
        }
    }
pub fn desktop ( ) -> Option < DesktopWidget < ' a > > { let ( obj_data , funcs ) = unsafe { ( :: std :: ptr :: null ( ) , ( * ( ( * rute_ffi_get ( ) ) . get_application ) ( :: std :: ptr :: null ( ) ) . all_funcs ) . application_funcs , ) } ; unsafe { let ret_val = ( ( * funcs ) . desktop ) ( 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 = DesktopWidget :: new_from_rc ( t ) ; } else { ret_val = DesktopWidget :: new_from_owned ( t ) ; } Some ( ret_val ) } }
Returns the desktop widget (also called the root window).
Returns the desktop widget ( also called the root window ) .