///
/// Returns the active popup widget.
///
/// A popup widget is a special top-level widget that sets the `Qt::WType_Popup` widget flag, e.g. the QMenu widget. When the application
/// opens a popup widget, all events are sent to the popup. Normal widgets and
/// modal widgets cannot be accessed before the popup widget is closed.
///
/// Only other popup widgets may be opened when a popup widget is shown. The
/// popup widgets are organized in a stack. This function returns the active
/// popup widget at the top of the stack.
///
/// **See also:** [`active_modal_widget()`]
/// [`top_level_widgets()`]
Returns the active popup widget.
A popup widget is a special top-level widget that sets the `Qt::WType_Popup` widget flag, e.g.

Only other popup widgets may be opened when a popup widget is shown. The
popup widgets are organized in a stack. This function returns the active
popup widget at the top of the stack.


Returns the active popup widget . A popup widget is a special top - level widget that sets the ` Qt :: WType_Popup ` widget flag e . g . Only other popup widgets may be opened when a popup widget is shown . The popup widgets are organized in a stack . This function returns the active popup widget at the top of the stack .
pub fn active_popup_widget() -> Option<Widget<'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).active_popup_widget)(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 = Widget::new_from_rc(t);
            } else {
                ret_val = Widget::new_from_owned(t);
            }
            Some(ret_val)
        }
    }
pub fn active_popup_widget ( ) -> Option < Widget < ' 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 ) . active_popup_widget ) ( 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 = Widget :: new_from_rc ( t ) ; } else { ret_val = Widget :: new_from_owned ( t ) ; } Some ( ret_val ) } }
Returns the active popup widget.
Returns the active popup widget .