[][src]Struct qt_widgets::QMdiArea

#[repr(C)]
pub struct QMdiArea { /* fields omitted */ }

The QMdiArea widget provides an area in which MDI windows are displayed.

C++ class: QMdiArea.

C++ documentation:

The QMdiArea widget provides an area in which MDI windows are displayed.

QMdiArea functions, essentially, like a window manager for MDI windows. For instance, it draws the windows it manages on itself and arranges them in a cascading or tile pattern. QMdiArea is commonly used as the center widget in a QMainWindow to create MDI applications, but can also be placed in any layout. The following code adds an area to a main window:

QMainWindow *mainWindow = new QMainWindow; mainWindow->setCentralWidget(mdiArea);

Unlike the window managers for top-level windows, all window flags (Qt::WindowFlags) are supported by QMdiArea as long as the flags are supported by the current widget style. If a specific flag is not supported by the style (e.g., the WindowShadeButtonHint), you can still shade the window with showShaded().

Subwindows in QMdiArea are instances of QMdiSubWindow. They are added to an MDI area with addSubWindow(). It is common to pass a QWidget, which is set as the internal widget, to this function, but it is also possible to pass a QMdiSubWindow directly.The class inherits QWidget, and you can use the same API as with a normal top-level window when programming. QMdiSubWindow also has behavior that is specific to MDI windows. See the QMdiSubWindow class description for more details.

A subwindow becomes active when it gets the keyboard focus, or when setFocus() is called. The user activates a window by moving focus in the usual ways. The MDI area emits the subWindowActivated() signal when the active window changes, and the activeSubWindow() function returns the active subwindow.

The convenience function subWindowList() returns a list of all subwindows. This information could be used in a popup menu containing a list of windows, for example.

The subwindows are sorted by the current WindowOrder. This is used for the subWindowList() and for activateNextSubWindow() and activatePreviousSubWindow(). Also, it is used when cascading or tiling the windows with cascadeSubWindows() and tileSubWindows().

QMdiArea provides two built-in layout strategies for subwindows: cascadeSubWindows() and tileSubWindows(). Both are slots and are easily connected to menu entries.

Note: The default scroll bar property for QMdiArea is Qt::ScrollBarAlwaysOff.

Methods

impl QMdiArea[src]

pub fn sub_window_activated(&self) -> Signal<(*mut QMdiSubWindow,)>[src]

QMdiArea emits this signal after window has been activated. When window is 0, QMdiArea has just deactivated its last active window, and there are no active windows on the workspace.

Returns a built-in Qt signal QMdiArea::subWindowActivated that can be passed to qt_core::Signal::connect.

C++ documentation:

QMdiArea emits this signal after window has been activated. When window is 0, QMdiArea has just deactivated its last active window, and there are no active windows on the workspace.

See also QMdiArea::activeSubWindow().

pub fn slot_set_active_sub_window(&self) -> Receiver<(*mut QMdiSubWindow,)>[src]

Activates the subwindow window. If window is 0, any current active window is deactivated.

Returns a built-in Qt slot QMdiArea::setActiveSubWindow that can be passed to qt_core::Signal::connect.

C++ documentation:

Activates the subwindow window. If window is 0, any current active window is deactivated.

See also activeSubWindow().

pub fn slot_tile_sub_windows(&self) -> Receiver<()>[src]

Arranges all child windows in a tile pattern.

Returns a built-in Qt slot QMdiArea::tileSubWindows that can be passed to qt_core::Signal::connect.

C++ documentation:

Arranges all child windows in a tile pattern.

See also cascadeSubWindows().

pub fn slot_cascade_sub_windows(&self) -> Receiver<()>[src]

Arranges all the child windows in a cascade pattern.

Returns a built-in Qt slot QMdiArea::cascadeSubWindows that can be passed to qt_core::Signal::connect.

C++ documentation:

Arranges all the child windows in a cascade pattern.

See also tileSubWindows().

pub fn slot_close_active_sub_window(&self) -> Receiver<()>[src]

Closes the active subwindow.

Returns a built-in Qt slot QMdiArea::closeActiveSubWindow that can be passed to qt_core::Signal::connect.

C++ documentation:

Closes the active subwindow.

See also closeAllSubWindows().

pub fn slot_close_all_sub_windows(&self) -> Receiver<()>[src]

Closes all subwindows by sending a QCloseEvent to each window. You may receive subWindowActivated() signals from subwindows before they are closed (if the MDI area activates the subwindow when another is closing).

Returns a built-in Qt slot QMdiArea::closeAllSubWindows that can be passed to qt_core::Signal::connect.

C++ documentation:

Closes all subwindows by sending a QCloseEvent to each window. You may receive subWindowActivated() signals from subwindows before they are closed (if the MDI area activates the subwindow when another is closing).

Subwindows that ignore the close event will remain open.

See also closeActiveSubWindow().

pub fn slot_activate_next_sub_window(&self) -> Receiver<()>[src]

Gives the keyboard focus to another window in the list of child windows. The window activated will be the next one determined by the current activation order.

Returns a built-in Qt slot QMdiArea::activateNextSubWindow that can be passed to qt_core::Signal::connect.

C++ documentation:

Gives the keyboard focus to another window in the list of child windows. The window activated will be the next one determined by the current activation order.

See also activatePreviousSubWindow() and QMdiArea::WindowOrder.

pub fn slot_activate_previous_sub_window(&self) -> Receiver<()>[src]

Gives the keyboard focus to another window in the list of child windows. The window activated will be the previous one determined by the current activation order.

Returns a built-in Qt slot QMdiArea::activatePreviousSubWindow that can be passed to qt_core::Signal::connect.

C++ documentation:

Gives the keyboard focus to another window in the list of child windows. The window activated will be the previous one determined by the current activation order.

See also activateNextSubWindow() and QMdiArea::WindowOrder.

pub fn slot_setup_viewport(&self) -> Receiver<(*mut QWidget,)>[src]

Reimplemented from QAbstractScrollArea::setupViewport().

Returns a built-in Qt slot QMdiArea::setupViewport that can be passed to qt_core::Signal::connect.

C++ documentation:

Reimplemented from QAbstractScrollArea::setupViewport().

This slot is called by QAbstractScrollArea after setViewport() has been called. Reimplement this function in a subclass of QMdiArea to initialize the new viewport before it is used.

See also setViewport().

pub unsafe fn activate_next_sub_window(&mut self)[src]

Gives the keyboard focus to another window in the list of child windows. The window activated will be the next one determined by the current activation order.

Calls C++ function: [slot] void QMdiArea::activateNextSubWindow().

C++ documentation:

Gives the keyboard focus to another window in the list of child windows. The window activated will be the next one determined by the current activation order.

See also activatePreviousSubWindow() and QMdiArea::WindowOrder.

pub unsafe fn activate_previous_sub_window(&mut self)[src]

Gives the keyboard focus to another window in the list of child windows. The window activated will be the previous one determined by the current activation order.

Calls C++ function: [slot] void QMdiArea::activatePreviousSubWindow().

C++ documentation:

Gives the keyboard focus to another window in the list of child windows. The window activated will be the previous one determined by the current activation order.

See also activateNextSubWindow() and QMdiArea::WindowOrder.

pub unsafe fn activation_order(&self) -> WindowOrder[src]

This property holds the ordering criteria for subwindow lists

Calls C++ function: QMdiArea::WindowOrder QMdiArea::activationOrder() const.

C++ documentation:

This property holds the ordering criteria for subwindow lists

This property specifies the ordering criteria for the list of subwindows returned by subWindowList(). By default, it is the window creation order.

This property was introduced in Qt 4.4.

Access functions:

WindowOrder activationOrder() const
void setActivationOrder(WindowOrder order)

See also subWindowList().

pub unsafe fn active_sub_window(&self) -> MutPtr<QMdiSubWindow>[src]

Returns a pointer to the current active subwindow. If no window is currently active, 0 is returned.

Calls C++ function: QMdiSubWindow* QMdiArea::activeSubWindow() const.

C++ documentation:

Returns a pointer to the current active subwindow. If no window is currently active, 0 is returned.

Subwindows are treated as top-level windows with respect to window state, i.e., if a widget outside the MDI area is the active window, no subwindow will be active. Note that if a widget in the window in which the MDI area lives gains focus, the window will be activated.

See also setActiveSubWindow() and Qt::WindowState.

pub unsafe fn add_sub_window_2a(
    &mut self,
    widget: impl CastInto<MutPtr<QWidget>>,
    flags: QFlags<WindowType>
) -> MutPtr<QMdiSubWindow>
[src]

Adds widget as a new subwindow to the MDI area. If windowFlags are non-zero, they will override the flags set on the widget.

Calls C++ function: QMdiSubWindow* QMdiArea::addSubWindow(QWidget* widget, QFlags<Qt::WindowType> flags = …).

C++ documentation:

Adds widget as a new subwindow to the MDI area. If windowFlags are non-zero, they will override the flags set on the widget.

The widget can be either a QMdiSubWindow or another QWidget (in which case the MDI area will create a subwindow and set the widget as the internal widget).

Note: Once the subwindow has been added, its parent will be the viewport widget of the QMdiArea.

QMdiArea mdiArea; QMdiSubWindow *subWindow1 = new QMdiSubWindow; subWindow1->setWidget(internalWidget1); subWindow1->setAttribute(Qt::WA_DeleteOnClose); mdiArea.addSubWindow(subWindow1);

QMdiSubWindow *subWindow2 = mdiArea.addSubWindow(internalWidget2);

When you create your own subwindow, you must set the Qt::WA_DeleteOnClose widget attribute if you want the window to be deleted when closed in the MDI area. If not, the window will be hidden and the MDI area will not activate the next subwindow.

Returns the QMdiSubWindow that is added to the MDI area.

See also removeSubWindow().

pub unsafe fn add_sub_window_1a(
    &mut self,
    widget: impl CastInto<MutPtr<QWidget>>
) -> MutPtr<QMdiSubWindow>
[src]

Adds widget as a new subwindow to the MDI area. If windowFlags are non-zero, they will override the flags set on the widget.

Calls C++ function: QMdiSubWindow* QMdiArea::addSubWindow(QWidget* widget).

C++ documentation:

Adds widget as a new subwindow to the MDI area. If windowFlags are non-zero, they will override the flags set on the widget.

The widget can be either a QMdiSubWindow or another QWidget (in which case the MDI area will create a subwindow and set the widget as the internal widget).

Note: Once the subwindow has been added, its parent will be the viewport widget of the QMdiArea.

QMdiArea mdiArea; QMdiSubWindow *subWindow1 = new QMdiSubWindow; subWindow1->setWidget(internalWidget1); subWindow1->setAttribute(Qt::WA_DeleteOnClose); mdiArea.addSubWindow(subWindow1);

QMdiSubWindow *subWindow2 = mdiArea.addSubWindow(internalWidget2);

When you create your own subwindow, you must set the Qt::WA_DeleteOnClose widget attribute if you want the window to be deleted when closed in the MDI area. If not, the window will be hidden and the MDI area will not activate the next subwindow.

Returns the QMdiSubWindow that is added to the MDI area.

See also removeSubWindow().

pub unsafe fn background(&self) -> CppBox<QBrush>[src]

This property holds the background brush for the workspace

Calls C++ function: QBrush QMdiArea::background() const.

C++ documentation:

This property holds the background brush for the workspace

This property sets the background brush for the workspace area itself. By default, it is a gray color, but can be any brush (e.g., colors, gradients or pixmaps).

Access functions:

QBrush background() const
void setBackground(const QBrush &background)

pub unsafe fn cascade_sub_windows(&mut self)[src]

Arranges all the child windows in a cascade pattern.

Calls C++ function: [slot] void QMdiArea::cascadeSubWindows().

C++ documentation:

Arranges all the child windows in a cascade pattern.

See also tileSubWindows().

pub unsafe fn close_active_sub_window(&mut self)[src]

Closes the active subwindow.

Calls C++ function: [slot] void QMdiArea::closeActiveSubWindow().

C++ documentation:

Closes the active subwindow.

See also closeAllSubWindows().

pub unsafe fn close_all_sub_windows(&mut self)[src]

Closes all subwindows by sending a QCloseEvent to each window. You may receive subWindowActivated() signals from subwindows before they are closed (if the MDI area activates the subwindow when another is closing).

Calls C++ function: [slot] void QMdiArea::closeAllSubWindows().

C++ documentation:

Closes all subwindows by sending a QCloseEvent to each window. You may receive subWindowActivated() signals from subwindows before they are closed (if the MDI area activates the subwindow when another is closing).

Subwindows that ignore the close event will remain open.

See also closeActiveSubWindow().

pub unsafe fn current_sub_window(&self) -> MutPtr<QMdiSubWindow>[src]

Returns a pointer to the current subwindow, or 0 if there is no current subwindow.

Calls C++ function: QMdiSubWindow* QMdiArea::currentSubWindow() const.

C++ documentation:

Returns a pointer to the current subwindow, or 0 if there is no current subwindow.

This function will return the same as activeSubWindow() if the QApplication containing QMdiArea is active.

See also activeSubWindow() and QApplication::activeWindow().

pub unsafe fn document_mode(&self) -> bool[src]

This property holds whether the tab bar is set to document mode in tabbed view mode.

Calls C++ function: bool QMdiArea::documentMode() const.

C++ documentation:

This property holds whether the tab bar is set to document mode in tabbed view mode.

Document mode is disabled by default.

This property was introduced in Qt 4.5.

Access functions:

bool documentMode() const
void setDocumentMode(bool enabled)

See also QTabBar::documentMode and setViewMode().

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* QMdiArea::metaObject() const.

pub unsafe fn minimum_size_hint(&self) -> CppBox<QSize>[src]

Reimplemented from QWidget::minimumSizeHint().

Calls C++ function: virtual QSize QMdiArea::minimumSizeHint() const.

C++ documentation:

Reimplemented from QWidget::minimumSizeHint().

pub unsafe fn new_1a(parent: impl CastInto<MutPtr<QWidget>>) -> CppBox<QMdiArea>[src]

Constructs an empty mdi area. parent is passed to QWidget's constructor.

Calls C++ function: [constructor] void QMdiArea::QMdiArea(QWidget* parent = …).

C++ documentation:

Constructs an empty mdi area. parent is passed to QWidget's constructor.

pub unsafe fn new_0a() -> CppBox<QMdiArea>[src]

The QMdiArea widget provides an area in which MDI windows are displayed.

Calls C++ function: [constructor] void QMdiArea::QMdiArea().

C++ documentation:

The QMdiArea widget provides an area in which MDI windows are displayed.

QMdiArea functions, essentially, like a window manager for MDI windows. For instance, it draws the windows it manages on itself and arranges them in a cascading or tile pattern. QMdiArea is commonly used as the center widget in a QMainWindow to create MDI applications, but can also be placed in any layout. The following code adds an area to a main window:

QMainWindow *mainWindow = new QMainWindow; mainWindow->setCentralWidget(mdiArea);

Unlike the window managers for top-level windows, all window flags (Qt::WindowFlags) are supported by QMdiArea as long as the flags are supported by the current widget style. If a specific flag is not supported by the style (e.g., the WindowShadeButtonHint), you can still shade the window with showShaded().

Subwindows in QMdiArea are instances of QMdiSubWindow. They are added to an MDI area with addSubWindow(). It is common to pass a QWidget, which is set as the internal widget, to this function, but it is also possible to pass a QMdiSubWindow directly.The class inherits QWidget, and you can use the same API as with a normal top-level window when programming. QMdiSubWindow also has behavior that is specific to MDI windows. See the QMdiSubWindow class description for more details.

A subwindow becomes active when it gets the keyboard focus, or when setFocus() is called. The user activates a window by moving focus in the usual ways. The MDI area emits the subWindowActivated() signal when the active window changes, and the activeSubWindow() function returns the active subwindow.

The convenience function subWindowList() returns a list of all subwindows. This information could be used in a popup menu containing a list of windows, for example.

The subwindows are sorted by the current WindowOrder. This is used for the subWindowList() and for activateNextSubWindow() and activatePreviousSubWindow(). Also, it is used when cascading or tiling the windows with cascadeSubWindows() and tileSubWindows().

QMdiArea provides two built-in layout strategies for subwindows: cascadeSubWindows() and tileSubWindows(). Both are slots and are easily connected to menu entries.

Note: The default scroll bar property for QMdiArea is Qt::ScrollBarAlwaysOff.

pub unsafe fn qt_metacall(
    &mut self,
    arg1: Call,
    arg2: c_int,
    arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]

Calls C++ function: virtual int QMdiArea::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(
    &mut self,
    arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]

Calls C++ function: virtual void* QMdiArea::qt_metacast(const char* arg1).

pub unsafe fn remove_sub_window(
    &mut self,
    widget: impl CastInto<MutPtr<QWidget>>
)
[src]

Removes widget from the MDI area. The widget must be either a QMdiSubWindow or a widget that is the internal widget of a subwindow. Note widget is never actually deleted by QMdiArea. If a QMdiSubWindow is passed in its parent is set to 0 and it is removed, but if an internal widget is passed in the child widget is set to 0 but the QMdiSubWindow is not removed.

Calls C++ function: void QMdiArea::removeSubWindow(QWidget* widget).

C++ documentation:

Removes widget from the MDI area. The widget must be either a QMdiSubWindow or a widget that is the internal widget of a subwindow. Note widget is never actually deleted by QMdiArea. If a QMdiSubWindow is passed in its parent is set to 0 and it is removed, but if an internal widget is passed in the child widget is set to 0 but the QMdiSubWindow is not removed.

See also addSubWindow().

pub unsafe fn set_activation_order(&mut self, order: WindowOrder)[src]

This property holds the ordering criteria for subwindow lists

Calls C++ function: void QMdiArea::setActivationOrder(QMdiArea::WindowOrder order).

C++ documentation:

This property holds the ordering criteria for subwindow lists

This property specifies the ordering criteria for the list of subwindows returned by subWindowList(). By default, it is the window creation order.

This property was introduced in Qt 4.4.

Access functions:

WindowOrder activationOrder() const
void setActivationOrder(WindowOrder order)

See also subWindowList().

pub unsafe fn set_active_sub_window(
    &mut self,
    window: impl CastInto<MutPtr<QMdiSubWindow>>
)
[src]

Activates the subwindow window. If window is 0, any current active window is deactivated.

Calls C++ function: [slot] void QMdiArea::setActiveSubWindow(QMdiSubWindow* window).

C++ documentation:

Activates the subwindow window. If window is 0, any current active window is deactivated.

See also activeSubWindow().

pub unsafe fn set_background(&mut self, background: impl CastInto<Ref<QBrush>>)[src]

This property holds the background brush for the workspace

Calls C++ function: void QMdiArea::setBackground(const QBrush& background).

C++ documentation:

This property holds the background brush for the workspace

This property sets the background brush for the workspace area itself. By default, it is a gray color, but can be any brush (e.g., colors, gradients or pixmaps).

Access functions:

QBrush background() const
void setBackground(const QBrush &background)

pub unsafe fn set_document_mode(&mut self, enabled: bool)[src]

This property holds whether the tab bar is set to document mode in tabbed view mode.

Calls C++ function: void QMdiArea::setDocumentMode(bool enabled).

C++ documentation:

This property holds whether the tab bar is set to document mode in tabbed view mode.

Document mode is disabled by default.

This property was introduced in Qt 4.5.

Access functions:

bool documentMode() const
void setDocumentMode(bool enabled)

See also QTabBar::documentMode and setViewMode().

pub unsafe fn set_option_2a(&mut self, option: AreaOption, on: bool)[src]

If on is true, option is enabled on the MDI area; otherwise it is disabled. See AreaOption for the effect of each option.

Calls C++ function: void QMdiArea::setOption(QMdiArea::AreaOption option, bool on = …).

C++ documentation:

If on is true, option is enabled on the MDI area; otherwise it is disabled. See AreaOption for the effect of each option.

See also AreaOption and testOption().

pub unsafe fn set_option_1a(&mut self, option: AreaOption)[src]

If on is true, option is enabled on the MDI area; otherwise it is disabled. See AreaOption for the effect of each option.

Calls C++ function: void QMdiArea::setOption(QMdiArea::AreaOption option).

C++ documentation:

If on is true, option is enabled on the MDI area; otherwise it is disabled. See AreaOption for the effect of each option.

See also AreaOption and testOption().

pub unsafe fn set_tab_position(&mut self, position: TabPosition)[src]

This property holds the position of the tabs in tabbed view mode.

Calls C++ function: void QMdiArea::setTabPosition(QTabWidget::TabPosition position).

C++ documentation:

This property holds the position of the tabs in tabbed view mode.

Possible values for this property are described by the QTabWidget::TabPosition enum.

This property was introduced in Qt 4.4.

Access functions:

QTabWidget::TabPosition tabPosition() const
void setTabPosition(QTabWidget::TabPosition position)

See also QTabWidget::TabPosition and setViewMode().

pub unsafe fn set_tab_shape(&mut self, shape: TabShape)[src]

This property holds the shape of the tabs in tabbed view mode.

Calls C++ function: void QMdiArea::setTabShape(QTabWidget::TabShape shape).

C++ documentation:

This property holds the shape of the tabs in tabbed view mode.

Possible values for this property are QTabWidget::Rounded (default) or QTabWidget::Triangular.

This property was introduced in Qt 4.4.

Access functions:

QTabWidget::TabShape tabShape() const
void setTabShape(QTabWidget::TabShape shape)

See also QTabWidget::TabShape and setViewMode().

pub unsafe fn set_tabs_closable(&mut self, closable: bool)[src]

This property holds whether the tab bar should place close buttons on each tab in tabbed view mode.

Calls C++ function: void QMdiArea::setTabsClosable(bool closable).

C++ documentation:

This property holds whether the tab bar should place close buttons on each tab in tabbed view mode.

Tabs are not closable by default.

This property was introduced in Qt 4.8.

Access functions:

bool tabsClosable() const
void setTabsClosable(bool closable)

See also QTabBar::tabsClosable and setViewMode().

pub unsafe fn set_tabs_movable(&mut self, movable: bool)[src]

This property holds whether the user can move the tabs within the tabbar area in tabbed view mode.

Calls C++ function: void QMdiArea::setTabsMovable(bool movable).

C++ documentation:

This property holds whether the user can move the tabs within the tabbar area in tabbed view mode.

Tabs are not movable by default.

This property was introduced in Qt 4.8.

Access functions:

bool tabsMovable() const
void setTabsMovable(bool movable)

See also QTabBar::movable and setViewMode().

pub unsafe fn set_view_mode(&mut self, mode: ViewMode)[src]

This property holds the way sub-windows are displayed in the QMdiArea.

Calls C++ function: void QMdiArea::setViewMode(QMdiArea::ViewMode mode).

C++ documentation:

This property holds the way sub-windows are displayed in the QMdiArea.

By default, the SubWindowView is used to display sub-windows.

This property was introduced in Qt 4.4.

Access functions:

ViewMode viewMode() const
void setViewMode(ViewMode mode)

See also ViewMode, setTabShape(), and setTabPosition().

pub unsafe fn size_hint(&self) -> CppBox<QSize>[src]

Reimplemented from QWidget::sizeHint().

Calls C++ function: virtual QSize QMdiArea::sizeHint() const.

C++ documentation:

Reimplemented from QWidget::sizeHint().

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

pub unsafe fn sub_window_list_1a(
    &self,
    order: WindowOrder
) -> CppBox<QListOfQMdiSubWindow>
[src]

Returns a list of all subwindows in the MDI area. If order is CreationOrder (the default), the windows are sorted in the order in which they were inserted into the workspace. If order is StackingOrder, the windows are listed in their stacking order, with the topmost window as the last item in the list. If order is ActivationHistoryOrder, the windows are listed according to their recent activation history.

Calls C++ function: QList<QMdiSubWindow*> QMdiArea::subWindowList(QMdiArea::WindowOrder order = …) const.

C++ documentation:

Returns a list of all subwindows in the MDI area. If order is CreationOrder (the default), the windows are sorted in the order in which they were inserted into the workspace. If order is StackingOrder, the windows are listed in their stacking order, with the topmost window as the last item in the list. If order is ActivationHistoryOrder, the windows are listed according to their recent activation history.

See also WindowOrder.

pub unsafe fn sub_window_list_0a(&self) -> CppBox<QListOfQMdiSubWindow>[src]

Returns a list of all subwindows in the MDI area. If order is CreationOrder (the default), the windows are sorted in the order in which they were inserted into the workspace. If order is StackingOrder, the windows are listed in their stacking order, with the topmost window as the last item in the list. If order is ActivationHistoryOrder, the windows are listed according to their recent activation history.

Calls C++ function: QList<QMdiSubWindow*> QMdiArea::subWindowList() const.

C++ documentation:

Returns a list of all subwindows in the MDI area. If order is CreationOrder (the default), the windows are sorted in the order in which they were inserted into the workspace. If order is StackingOrder, the windows are listed in their stacking order, with the topmost window as the last item in the list. If order is ActivationHistoryOrder, the windows are listed according to their recent activation history.

See also WindowOrder.

pub unsafe fn tab_position(&self) -> TabPosition[src]

This property holds the position of the tabs in tabbed view mode.

Calls C++ function: QTabWidget::TabPosition QMdiArea::tabPosition() const.

C++ documentation:

This property holds the position of the tabs in tabbed view mode.

Possible values for this property are described by the QTabWidget::TabPosition enum.

This property was introduced in Qt 4.4.

Access functions:

QTabWidget::TabPosition tabPosition() const
void setTabPosition(QTabWidget::TabPosition position)

See also QTabWidget::TabPosition and setViewMode().

pub unsafe fn tab_shape(&self) -> TabShape[src]

This property holds the shape of the tabs in tabbed view mode.

Calls C++ function: QTabWidget::TabShape QMdiArea::tabShape() const.

C++ documentation:

This property holds the shape of the tabs in tabbed view mode.

Possible values for this property are QTabWidget::Rounded (default) or QTabWidget::Triangular.

This property was introduced in Qt 4.4.

Access functions:

QTabWidget::TabShape tabShape() const
void setTabShape(QTabWidget::TabShape shape)

See also QTabWidget::TabShape and setViewMode().

pub unsafe fn tabs_closable(&self) -> bool[src]

This property holds whether the tab bar should place close buttons on each tab in tabbed view mode.

Calls C++ function: bool QMdiArea::tabsClosable() const.

C++ documentation:

This property holds whether the tab bar should place close buttons on each tab in tabbed view mode.

Tabs are not closable by default.

This property was introduced in Qt 4.8.

Access functions:

bool tabsClosable() const
void setTabsClosable(bool closable)

See also QTabBar::tabsClosable and setViewMode().

pub unsafe fn tabs_movable(&self) -> bool[src]

This property holds whether the user can move the tabs within the tabbar area in tabbed view mode.

Calls C++ function: bool QMdiArea::tabsMovable() const.

C++ documentation:

This property holds whether the user can move the tabs within the tabbar area in tabbed view mode.

Tabs are not movable by default.

This property was introduced in Qt 4.8.

Access functions:

bool tabsMovable() const
void setTabsMovable(bool movable)

See also QTabBar::movable and setViewMode().

pub unsafe fn test_option(&self, opton: AreaOption) -> bool[src]

Returns true if option is enabled; otherwise returns false.

Calls C++ function: bool QMdiArea::testOption(QMdiArea::AreaOption opton) const.

C++ documentation:

Returns true if option is enabled; otherwise returns false.

See also AreaOption and setOption().

pub unsafe fn tile_sub_windows(&mut self)[src]

Arranges all child windows in a tile pattern.

Calls C++ function: [slot] void QMdiArea::tileSubWindows().

C++ documentation:

Arranges all child windows in a tile pattern.

See also cascadeSubWindows().

pub unsafe fn tr(
    s: impl CastInto<Ptr<c_char>>,
    c: impl CastInto<Ptr<c_char>>,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QMdiArea::tr(const char* s, const char* c, int n).

pub unsafe fn tr_utf8(
    s: impl CastInto<Ptr<c_char>>,
    c: impl CastInto<Ptr<c_char>>,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QMdiArea::trUtf8(const char* s, const char* c, int n).

pub unsafe fn view_mode(&self) -> ViewMode[src]

This property holds the way sub-windows are displayed in the QMdiArea.

Calls C++ function: QMdiArea::ViewMode QMdiArea::viewMode() const.

C++ documentation:

This property holds the way sub-windows are displayed in the QMdiArea.

By default, the SubWindowView is used to display sub-windows.

This property was introduced in Qt 4.4.

Access functions:

ViewMode viewMode() const
void setViewMode(ViewMode mode)

See also ViewMode, setTabShape(), and setTabPosition().

Methods from Deref<Target = QAbstractScrollArea>

pub unsafe fn add_scroll_bar_widget(
    &mut self,
    widget: impl CastInto<MutPtr<QWidget>>,
    alignment: QFlags<AlignmentFlag>
)
[src]

Adds widget as a scroll bar widget in the location specified by alignment.

Calls C++ function: void QAbstractScrollArea::addScrollBarWidget(QWidget* widget, QFlags<Qt::AlignmentFlag> alignment).

C++ documentation:

Adds widget as a scroll bar widget in the location specified by alignment.

Scroll bar widgets are shown next to the horizontal or vertical scroll bar, and can be placed on either side of it. If you want the scroll bar widgets to be always visible, set the scrollBarPolicy for the corresponding scroll bar to AlwaysOn.

alignment must be one of Qt::Alignleft and Qt::AlignRight, which maps to the horizontal scroll bar, or Qt::AlignTop and Qt::AlignBottom, which maps to the vertical scroll bar.

A scroll bar widget can be removed by either re-parenting the widget or deleting it. It's also possible to hide a widget with QWidget::hide()

The scroll bar widget will be resized to fit the scroll bar geometry for the current style. The following describes the case for scroll bar widgets on the horizontal scroll bar:

The height of the widget will be set to match the height of the scroll bar. To control the width of the widget, use QWidget::setMinimumWidth and QWidget::setMaximumWidth, or implement QWidget::sizeHint() and set a horizontal size policy. If you want a square widget, call QStyle::pixelMetric(QStyle::PM_ScrollBarExtent) and set the width to this value.

This function was introduced in Qt 4.2.

See also scrollBarWidgets().

pub unsafe fn corner_widget(&self) -> MutPtr<QWidget>[src]

Returns the widget in the corner between the two scroll bars.

Calls C++ function: QWidget* QAbstractScrollArea::cornerWidget() const.

C++ documentation:

Returns the widget in the corner between the two scroll bars.

By default, no corner widget is present.

This function was introduced in Qt 4.2.

See also setCornerWidget().

pub unsafe fn horizontal_scroll_bar(&self) -> MutPtr<QScrollBar>[src]

Returns the horizontal scroll bar.

Calls C++ function: QScrollBar* QAbstractScrollArea::horizontalScrollBar() const.

C++ documentation:

Returns the horizontal scroll bar.

See also setHorizontalScrollBar(), horizontalScrollBarPolicy, and verticalScrollBar().

pub unsafe fn horizontal_scroll_bar_policy(&self) -> ScrollBarPolicy[src]

This property holds the policy for the horizontal scroll bar

Calls C++ function: Qt::ScrollBarPolicy QAbstractScrollArea::horizontalScrollBarPolicy() const.

C++ documentation:

This property holds the policy for the horizontal scroll bar

The default policy is Qt::ScrollBarAsNeeded.

Access functions:

Qt::ScrollBarPolicy horizontalScrollBarPolicy() const
void setHorizontalScrollBarPolicy(Qt::ScrollBarPolicy)

See also verticalScrollBarPolicy.

pub unsafe fn maximum_viewport_size(&self) -> CppBox<QSize>[src]

Returns the size of the viewport as if the scroll bars had no valid scrolling range.

Calls C++ function: QSize QAbstractScrollArea::maximumViewportSize() const.

C++ documentation:

Returns the size of the viewport as if the scroll bars had no valid scrolling range.

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* QAbstractScrollArea::metaObject() const.

pub unsafe fn minimum_size_hint(&self) -> CppBox<QSize>[src]

Reimplemented from QWidget::minimumSizeHint().

Calls C++ function: virtual QSize QAbstractScrollArea::minimumSizeHint() const.

C++ documentation:

Reimplemented from QWidget::minimumSizeHint().

pub unsafe fn qt_metacall(
    &mut self,
    arg1: Call,
    arg2: c_int,
    arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]

Calls C++ function: virtual int QAbstractScrollArea::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(
    &mut self,
    arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]

Calls C++ function: virtual void* QAbstractScrollArea::qt_metacast(const char* arg1).

pub unsafe fn scroll_bar_widgets(
    &mut self,
    alignment: QFlags<AlignmentFlag>
) -> CppBox<QListOfQWidget>
[src]

Returns a list of the currently set scroll bar widgets. alignment can be any combination of the four location flags.

Calls C++ function: QList<QWidget*> QAbstractScrollArea::scrollBarWidgets(QFlags<Qt::AlignmentFlag> alignment).

C++ documentation:

Returns a list of the currently set scroll bar widgets. alignment can be any combination of the four location flags.

This function was introduced in Qt 4.2.

See also addScrollBarWidget().

pub unsafe fn set_corner_widget(
    &mut self,
    widget: impl CastInto<MutPtr<QWidget>>
)
[src]

Sets the widget in the corner between the two scroll bars to be widget.

Calls C++ function: void QAbstractScrollArea::setCornerWidget(QWidget* widget).

C++ documentation:

Sets the widget in the corner between the two scroll bars to be widget.

You will probably also want to set at least one of the scroll bar modes to AlwaysOn.

Passing 0 shows no widget in the corner.

Any previous corner widget is hidden.

You may call setCornerWidget() with the same widget at different times.

All widgets set here will be deleted by the scroll area when it is destroyed unless you separately reparent the widget after setting some other corner widget (or 0).

Any newly set widget should have no current parent.

By default, no corner widget is present.

This function was introduced in Qt 4.2.

See also cornerWidget(), horizontalScrollBarPolicy, and horizontalScrollBarPolicy.

pub unsafe fn set_horizontal_scroll_bar(
    &mut self,
    scrollbar: impl CastInto<MutPtr<QScrollBar>>
)
[src]

Replaces the existing horizontal scroll bar with scrollBar, and sets all the former scroll bar's slider properties on the new scroll bar. The former scroll bar is then deleted.

Calls C++ function: void QAbstractScrollArea::setHorizontalScrollBar(QScrollBar* scrollbar).

C++ documentation:

Replaces the existing horizontal scroll bar with scrollBar, and sets all the former scroll bar's slider properties on the new scroll bar. The former scroll bar is then deleted.

QAbstractScrollArea already provides horizontal and vertical scroll bars by default. You can call this function to replace the default horizontal scroll bar with your own custom scroll bar.

This function was introduced in Qt 4.2.

See also horizontalScrollBar() and setVerticalScrollBar().

pub unsafe fn set_horizontal_scroll_bar_policy(&mut self, arg1: ScrollBarPolicy)[src]

This property holds the policy for the horizontal scroll bar

Calls C++ function: void QAbstractScrollArea::setHorizontalScrollBarPolicy(Qt::ScrollBarPolicy arg1).

C++ documentation:

This property holds the policy for the horizontal scroll bar

The default policy is Qt::ScrollBarAsNeeded.

Access functions:

Qt::ScrollBarPolicy horizontalScrollBarPolicy() const
void setHorizontalScrollBarPolicy(Qt::ScrollBarPolicy)

See also verticalScrollBarPolicy.

pub unsafe fn set_size_adjust_policy(&mut self, policy: SizeAdjustPolicy)[src]

This property holds the policy describing how the size of the scroll area changes when the size of the viewport changes.

Calls C++ function: void QAbstractScrollArea::setSizeAdjustPolicy(QAbstractScrollArea::SizeAdjustPolicy policy).

C++ documentation:

This property holds the policy describing how the size of the scroll area changes when the size of the viewport changes.

The default policy is QAbstractScrollArea::AdjustIgnored. Changing this property might actually resize the scrollarea.

This property was introduced in Qt 5.2.

Access functions:

SizeAdjustPolicy sizeAdjustPolicy() const
void setSizeAdjustPolicy(SizeAdjustPolicy policy)

pub unsafe fn set_vertical_scroll_bar(
    &mut self,
    scrollbar: impl CastInto<MutPtr<QScrollBar>>
)
[src]

Replaces the existing vertical scroll bar with scrollBar, and sets all the former scroll bar's slider properties on the new scroll bar. The former scroll bar is then deleted.

Calls C++ function: void QAbstractScrollArea::setVerticalScrollBar(QScrollBar* scrollbar).

C++ documentation:

Replaces the existing vertical scroll bar with scrollBar, and sets all the former scroll bar's slider properties on the new scroll bar. The former scroll bar is then deleted.

QAbstractScrollArea already provides vertical and horizontal scroll bars by default. You can call this function to replace the default vertical scroll bar with your own custom scroll bar.

This function was introduced in Qt 4.2.

See also verticalScrollBar() and setHorizontalScrollBar().

pub unsafe fn set_vertical_scroll_bar_policy(&mut self, arg1: ScrollBarPolicy)[src]

This property holds the policy for the vertical scroll bar

Calls C++ function: void QAbstractScrollArea::setVerticalScrollBarPolicy(Qt::ScrollBarPolicy arg1).

C++ documentation:

This property holds the policy for the vertical scroll bar

The default policy is Qt::ScrollBarAsNeeded.

Access functions:

Qt::ScrollBarPolicy verticalScrollBarPolicy() const
void setVerticalScrollBarPolicy(Qt::ScrollBarPolicy)

See also horizontalScrollBarPolicy.

pub unsafe fn set_viewport(&mut self, widget: impl CastInto<MutPtr<QWidget>>)[src]

Sets the viewport to be the given widget. The QAbstractScrollArea will take ownership of the given widget.

Calls C++ function: void QAbstractScrollArea::setViewport(QWidget* widget).

C++ documentation:

Sets the viewport to be the given widget. The QAbstractScrollArea will take ownership of the given widget.

If widget is 0, QAbstractScrollArea will assign a new QWidget instance for the viewport.

This function was introduced in Qt 4.2.

See also viewport().

pub unsafe fn setup_viewport(
    &mut self,
    viewport: impl CastInto<MutPtr<QWidget>>
)
[src]

This slot is called by QAbstractScrollArea after setViewport(viewport) has been called. Reimplement this function in a subclass of QAbstractScrollArea to initialize the new viewport before it is used.

Calls C++ function: virtual void QAbstractScrollArea::setupViewport(QWidget* viewport).

C++ documentation:

This slot is called by QAbstractScrollArea after setViewport(viewport) has been called. Reimplement this function in a subclass of QAbstractScrollArea to initialize the new viewport before it is used.

See also setViewport().

pub unsafe fn size_adjust_policy(&self) -> SizeAdjustPolicy[src]

This property holds the policy describing how the size of the scroll area changes when the size of the viewport changes.

Calls C++ function: QAbstractScrollArea::SizeAdjustPolicy QAbstractScrollArea::sizeAdjustPolicy() const.

C++ documentation:

This property holds the policy describing how the size of the scroll area changes when the size of the viewport changes.

The default policy is QAbstractScrollArea::AdjustIgnored. Changing this property might actually resize the scrollarea.

This property was introduced in Qt 5.2.

Access functions:

SizeAdjustPolicy sizeAdjustPolicy() const
void setSizeAdjustPolicy(SizeAdjustPolicy policy)

pub unsafe fn size_hint(&self) -> CppBox<QSize>[src]

Reimplemented from QWidget::sizeHint().

Calls C++ function: virtual QSize QAbstractScrollArea::sizeHint() const.

C++ documentation:

Reimplemented from QWidget::sizeHint().

Returns the sizeHint property of the scroll area. The size is determined by using viewportSizeHint() plus some extra space for scroll bars, if needed.

pub unsafe fn vertical_scroll_bar(&self) -> MutPtr<QScrollBar>[src]

Returns the vertical scroll bar.

Calls C++ function: QScrollBar* QAbstractScrollArea::verticalScrollBar() const.

C++ documentation:

Returns the vertical scroll bar.

See also setVerticalScrollBar(), verticalScrollBarPolicy, and horizontalScrollBar().

pub unsafe fn vertical_scroll_bar_policy(&self) -> ScrollBarPolicy[src]

This property holds the policy for the vertical scroll bar

Calls C++ function: Qt::ScrollBarPolicy QAbstractScrollArea::verticalScrollBarPolicy() const.

C++ documentation:

This property holds the policy for the vertical scroll bar

The default policy is Qt::ScrollBarAsNeeded.

Access functions:

Qt::ScrollBarPolicy verticalScrollBarPolicy() const
void setVerticalScrollBarPolicy(Qt::ScrollBarPolicy)

See also horizontalScrollBarPolicy.

pub unsafe fn viewport(&self) -> MutPtr<QWidget>[src]

Returns the viewport widget.

Calls C++ function: QWidget* QAbstractScrollArea::viewport() const.

C++ documentation:

Returns the viewport widget.

Use the QScrollArea::widget() function to retrieve the contents of the viewport widget.

See also setViewport() and QScrollArea::widget().

Trait Implementations

impl Deref for QMdiArea[src]

type Target = QAbstractScrollArea

The resulting type after dereferencing.

fn deref(&self) -> &QAbstractScrollArea[src]

Calls C++ function: QAbstractScrollArea* static_cast<QAbstractScrollArea*>(QMdiArea* ptr).

impl DerefMut for QMdiArea[src]

fn deref_mut(&mut self) -> &mut QAbstractScrollArea[src]

Calls C++ function: QAbstractScrollArea* static_cast<QAbstractScrollArea*>(QMdiArea* ptr).

impl StaticUpcast<QAbstractScrollArea> for QMdiArea[src]

unsafe fn static_upcast(ptr: Ptr<QMdiArea>) -> Ptr<QAbstractScrollArea>[src]

Calls C++ function: QAbstractScrollArea* static_cast<QAbstractScrollArea*>(QMdiArea* ptr).

unsafe fn static_upcast_mut(
    ptr: MutPtr<QMdiArea>
) -> MutPtr<QAbstractScrollArea>
[src]

Calls C++ function: QAbstractScrollArea* static_cast<QAbstractScrollArea*>(QMdiArea* ptr).

impl StaticUpcast<QFrame> for QMdiArea[src]

unsafe fn static_upcast(ptr: Ptr<QMdiArea>) -> Ptr<QFrame>[src]

Calls C++ function: QFrame* static_cast<QFrame*>(QMdiArea* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QMdiArea>) -> MutPtr<QFrame>[src]

Calls C++ function: QFrame* static_cast<QFrame*>(QMdiArea* ptr).

impl StaticUpcast<QWidget> for QMdiArea[src]

unsafe fn static_upcast(ptr: Ptr<QMdiArea>) -> Ptr<QWidget>[src]

Calls C++ function: QWidget* static_cast<QWidget*>(QMdiArea* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QMdiArea>) -> MutPtr<QWidget>[src]

Calls C++ function: QWidget* static_cast<QWidget*>(QMdiArea* ptr).

impl StaticUpcast<QObject> for QMdiArea[src]

unsafe fn static_upcast(ptr: Ptr<QMdiArea>) -> Ptr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(QMdiArea* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QMdiArea>) -> MutPtr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(QMdiArea* ptr).

impl StaticUpcast<QPaintDevice> for QMdiArea[src]

unsafe fn static_upcast(ptr: Ptr<QMdiArea>) -> Ptr<QPaintDevice>[src]

Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QMdiArea* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QMdiArea>) -> MutPtr<QPaintDevice>[src]

Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QMdiArea* ptr).

impl StaticDowncast<QMdiArea> for QAbstractScrollArea[src]

unsafe fn static_downcast(ptr: Ptr<QAbstractScrollArea>) -> Ptr<QMdiArea>[src]

Calls C++ function: QMdiArea* static_cast<QMdiArea*>(QAbstractScrollArea* ptr).

unsafe fn static_downcast_mut(
    ptr: MutPtr<QAbstractScrollArea>
) -> MutPtr<QMdiArea>
[src]

Calls C++ function: QMdiArea* static_cast<QMdiArea*>(QAbstractScrollArea* ptr).

impl StaticDowncast<QMdiArea> for QFrame[src]

unsafe fn static_downcast(ptr: Ptr<QFrame>) -> Ptr<QMdiArea>[src]

Calls C++ function: QMdiArea* static_cast<QMdiArea*>(QFrame* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QFrame>) -> MutPtr<QMdiArea>[src]

Calls C++ function: QMdiArea* static_cast<QMdiArea*>(QFrame* ptr).

impl StaticDowncast<QMdiArea> for QWidget[src]

unsafe fn static_downcast(ptr: Ptr<QWidget>) -> Ptr<QMdiArea>[src]

Calls C++ function: QMdiArea* static_cast<QMdiArea*>(QWidget* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QWidget>) -> MutPtr<QMdiArea>[src]

Calls C++ function: QMdiArea* static_cast<QMdiArea*>(QWidget* ptr).

impl StaticDowncast<QMdiArea> for QObject[src]

unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QMdiArea>[src]

Calls C++ function: QMdiArea* static_cast<QMdiArea*>(QObject* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QObject>) -> MutPtr<QMdiArea>[src]

Calls C++ function: QMdiArea* static_cast<QMdiArea*>(QObject* ptr).

impl StaticDowncast<QMdiArea> for QPaintDevice[src]

unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QMdiArea>[src]

Calls C++ function: QMdiArea* static_cast<QMdiArea*>(QPaintDevice* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QPaintDevice>) -> MutPtr<QMdiArea>[src]

Calls C++ function: QMdiArea* static_cast<QMdiArea*>(QPaintDevice* ptr).

impl DynamicCast<QMdiArea> for QAbstractScrollArea[src]

unsafe fn dynamic_cast(ptr: Ptr<QAbstractScrollArea>) -> Ptr<QMdiArea>[src]

Calls C++ function: QMdiArea* dynamic_cast<QMdiArea*>(QAbstractScrollArea* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QAbstractScrollArea>) -> MutPtr<QMdiArea>[src]

Calls C++ function: QMdiArea* dynamic_cast<QMdiArea*>(QAbstractScrollArea* ptr).

impl DynamicCast<QMdiArea> for QFrame[src]

unsafe fn dynamic_cast(ptr: Ptr<QFrame>) -> Ptr<QMdiArea>[src]

Calls C++ function: QMdiArea* dynamic_cast<QMdiArea*>(QFrame* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QFrame>) -> MutPtr<QMdiArea>[src]

Calls C++ function: QMdiArea* dynamic_cast<QMdiArea*>(QFrame* ptr).

impl DynamicCast<QMdiArea> for QWidget[src]

unsafe fn dynamic_cast(ptr: Ptr<QWidget>) -> Ptr<QMdiArea>[src]

Calls C++ function: QMdiArea* dynamic_cast<QMdiArea*>(QWidget* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QWidget>) -> MutPtr<QMdiArea>[src]

Calls C++ function: QMdiArea* dynamic_cast<QMdiArea*>(QWidget* ptr).

impl DynamicCast<QMdiArea> for QObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QMdiArea>[src]

Calls C++ function: QMdiArea* dynamic_cast<QMdiArea*>(QObject* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QObject>) -> MutPtr<QMdiArea>[src]

Calls C++ function: QMdiArea* dynamic_cast<QMdiArea*>(QObject* ptr).

impl DynamicCast<QMdiArea> for QPaintDevice[src]

unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QMdiArea>[src]

Calls C++ function: QMdiArea* dynamic_cast<QMdiArea*>(QPaintDevice* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QPaintDevice>) -> MutPtr<QMdiArea>[src]

Calls C++ function: QMdiArea* dynamic_cast<QMdiArea*>(QPaintDevice* ptr).

impl CppDeletable for QMdiArea[src]

unsafe fn delete(&mut self)[src]

Destroys the MDI area.

Calls C++ function: virtual [destructor] void QMdiArea::~QMdiArea().

C++ documentation:

Destroys the MDI area.

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]