///
/// Returns the parent window, if any.
///
/// If *mode* is IncludeTransients, then the transient parent is returned
/// if there is no parent.
///
/// A window without a parent is known as a top level window.
///
///
/// Returns the parent window, if any.
///
/// A window without a parent is known as a top level window.
Returns the parent window, if any.
If *mode* is IncludeTransients, then the transient parent is returned
if there is no parent.

A window without a parent is known as a top level window.

Returns the parent window, if any.

A window without a parent is known as a top level window.
Returns the parent window if any . If * mode * is IncludeTransients then the transient parent is returned if there is no parent . A window without a parent is known as a top level window . Returns the parent window if any . A window without a parent is known as a top level window .
pub fn parent_2(&self) -> Option<Window> {
        let (obj_data, funcs) = self.get_window_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).parent_2)(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 = Window::new_from_rc(t);
            } else {
                ret_val = Window::new_from_owned(t);
            }
            Some(ret_val)
        }
    }
pub fn parent_2 ( & self ) -> Option < Window > { let ( obj_data , funcs ) = self . get_window_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . parent_2 ) ( 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 = Window :: new_from_rc ( t ) ; } else { ret_val = Window :: new_from_owned ( t ) ; } Some ( ret_val ) } }
Returns the parent window, if any.
Returns the parent window if any .
&self