pub fn create_window_container<A: WidgetTrait<'a>, W: WindowTrait<'a>>(
        window: &W,
        parent: &A,
        flags: WindowFlags,
    ) -> Option<Widget<'a>> {
        let (obj_window_1, _funcs) = window.get_window_obj_funcs();
        let (obj_parent_2, _funcs) = parent.get_widget_obj_funcs();
        let enum_flags_3 = flags.bits();

        let (obj_data, funcs) = unsafe {
            (
                ::std::ptr::null(),
                (*((*rute_ffi_get()).get_widget)(::std::ptr::null()).all_funcs).widget_funcs,
            )
        };
        unsafe {
            let ret_val = ((*funcs).create_window_container)(
                obj_data,
                obj_window_1,
                obj_parent_2,
                enum_flags_3,
            );
            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)
        }
    }
///
/// Creates a QWidget that makes it possible to embed *window* into
/// a QWidget-based application.
///
/// The window container is created as a child of *parent* and with
/// window flags *flags.*
///
/// Once the window has been embedded into the container, the
/// container will control the window's geometry and
/// visibility. Explicit calls to QWindow::setGeometry(),
/// QWindow::show() or QWindow::hide() on an embedded window is not
/// recommended.
///
/// The container takes over ownership of *window.* The window can
/// be removed from the window container with a call to
/// QWindow::setParent().
///
/// The window container is attached as a native child window to the
/// toplevel window it is a child of. When a window container is used
/// as a child of a QAbstractScrollArea or QMdiArea, it will
/// create a [native window](Native%20Widgets%20vs%20Alien%20Widgets)
/// for
/// every widget in its parent chain to allow for proper stacking and
/// clipping in this use case. Creating a native window for the window
/// container also allows for proper stacking and clipping. This must
/// be done before showing the window container. Applications with
/// many native child windows may suffer from performance issues.
///
/// The window container has a number of known limitations:
///
/// * Stacking order; The embedded window will stack on top of the widget hierarchy as an opaque box. The stacking order of multiple overlapping window container instances is undefined.
/// * Rendering Integration; The window container does not interoperate with QGraphicsProxyWidget, QWidget::render() or similar functionality.
/// * Focus Handling; It is possible to let the window container instance have any focus policy and it will delegate focus to the window via a call to QWindow::requestActivate(). However, returning to the normal focus chain from the QWindow instance will be up to the QWindow instance implementation itself. For instance, when entering a Qt Quick based window with tab focus, it is quite likely that further tab presses will only cycle inside the QML application. Also, whether QWindow::requestActivate() actually gives the window focus, is platform dependent.
/// * Using many window container instances in a QWidget-based application can greatly hurt the overall performance of the application.
Creates a QWidget that makes it possible to embed *window* into
a QWidget-based application.

The window container is created as a child of *parent* and with
window flags *flags.

Once the window has been embedded into the container, the
container will control the window's geometry and
visibility.

The container takes over ownership of *window.* The window can
be removed from the window container with a call to
QWindow::setParent().

The window container is attached as a native child window to the
toplevel window it is a child of.

The window container has a number of known limitations.

Stacking order; The embedded window will stack on top of the widget hierarchy as an opaque box. The stacking order of multiple overlapping window container instances is undefined.
Rendering Integration; The window container does not interoperate with QGraphicsProxyWidget, QWidget::render() or similar functionality.
Focus Handling; It is possible to let the window container instance have any focus policy and it will delegate focus to the window via a call to QWindow::requestActivate(). However, returning to the normal focus chain from the QWindow instance will be up to the QWindow instance implementation itself. For instance, when entering a Qt Quick based window with tab focus, it is quite likely that further tab presses will only cycle inside the QML application. Also, whether QWindow::requestActivate() actually gives the window focus, is platform dependent.
Using many window container instances in a QWidget-based application can greatly hurt the overall performance of the application.
Creates a QWidget that makes it possible to embed * window * into a QWidget - based application . The window container is created as a child of * parent * and with window flags * flags . Once the window has been embedded into the container the container will control the window ' s geometry and visibility . The container takes over ownership of * window . * The window can be removed from the window container with a call to QWindow :: setParent () . The window container is attached as a native child window to the toplevel window it is a child of . The window container has a number of known limitations . Stacking order ; The embedded window will stack on top of the widget hierarchy as an opaque box . The stacking order of multiple overlapping window container instances is undefined . Rendering Integration ; The window container does not interoperate with QGraphicsProxyWidget QWidget :: render () or similar functionality . Focus Handling ; It is possible to let the window container instance have any focus policy and it will delegate focus to the window via a call to QWindow :: requestActivate () . However returning to the normal focus chain from the QWindow instance will be up to the QWindow instance implementation itself . For instance when entering a Qt Quick based window with tab focus it is quite likely that further tab presses will only cycle inside the QML application . Also whether QWindow :: requestActivate () actually gives the window focus is platform dependent . Using many window container instances in a QWidget - based application can greatly hurt the overall performance of the application .
pub fn create_window_container<A: WidgetTrait<'a>, W: WindowTrait<'a>>(
        window: &W,
        parent: &A,
        flags: WindowFlags,
    ) -> Option<Widget<'a>> {
        let (obj_window_1, _funcs) = window.get_window_obj_funcs();
        let (obj_parent_2, _funcs) = parent.get_widget_obj_funcs();
        let enum_flags_3 = flags.bits();
        let (obj_data, funcs) = unsafe {
            (
                ::std::ptr::null(),
                (*((*rute_ffi_get()).get_widget)(::std::ptr::null()).all_funcs).widget_funcs,
            )
        };
        unsafe {
            let ret_val = ((*funcs).create_window_container)(
                obj_data,
                obj_window_1,
                obj_parent_2,
                enum_flags_3,
            );
            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 create_window_container < A : WidgetTrait < ' a > , W : WindowTrait < ' a > > ( window : & W , parent : & A , flags : WindowFlags , ) -> Option < Widget < ' a > > { let ( obj_window_1 , _funcs ) = window . get_window_obj_funcs ( ) ; let ( obj_parent_2 , _funcs ) = parent . get_widget_obj_funcs ( ) ; let enum_flags_3 = flags . bits ( ) ; let ( obj_data , funcs ) = unsafe { ( :: std :: ptr :: null ( ) , ( * ( ( * rute_ffi_get ( ) ) . get_widget ) ( :: std :: ptr :: null ( ) ) . all_funcs ) . widget_funcs , ) } ; unsafe { let ret_val = ( ( * funcs ) . create_window_container ) ( obj_data , obj_window_1 , obj_parent_2 , enum_flags_3 , ) ; 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 ) } }
Creates a QWidget that makes it possible to embed *window* into
a QWidget-based application.
Creates a QWidget that makes it possible to embed * window * into a QWidget - based application .
window
&W
parent
&A
flags
WindowFlags
window
&W
parent
&A
flags
WindowFlags