[][src]Struct qt_gui::QWindow

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

The QWindow class represents a window in the underlying windowing system.

C++ class: QWindow.

C++ documentation:

The QWindow class represents a window in the underlying windowing system.

A window that is supplied a parent becomes a native child window of their parent window.

An application will typically use QWidget or QQuickView for its UI, and not QWindow directly. Still, it is possible to render directly to a QWindow with QBackingStore or QOpenGLContext, when wanting to keep dependencies to a minimum or when wanting to use OpenGL directly. The Raster Window Example and OpenGL Window Example are useful reference examples for how to render to a QWindow using either approach.

Methods

impl QWindow[src]

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

Requests the window to be activated, i.e. receive keyboard focus.

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

C++ documentation:

Requests the window to be activated, i.e. receive keyboard focus.

See also isActive(), QGuiApplication::focusWindow(), and QWindowsWindowFunctions::setWindowActivationBehavior().

pub fn slot_set_visible(&self) -> Receiver<(bool,)>[src]

This property holds whether the window is visible or not

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

C++ documentation:

This property holds whether the window is visible or not

This property controls the visibility of the window in the windowing system.

By default, the window is not visible, you must call setVisible(true), or show() or similar to make it visible.

Access functions:

bool isVisible() const
void setVisible(bool visible)

Notifier signal:

void visibleChanged(bool arg)

See also show().

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

Shows the window.

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

C++ documentation:

Shows the window.

This is equivalent to calling showFullScreen(), showMaximized(), or showNormal(), depending on the platform's default behavior for the window type and flags.

See also showFullScreen(), showMaximized(), showNormal(), hide(), QStyleHints::showIsFullScreen(), and flags().

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

Hides the window.

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

C++ documentation:

Hides the window.

Equivalent to calling setVisible(false).

See also show() and setVisible().

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

Shows the window as minimized.

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

C++ documentation:

Shows the window as minimized.

Equivalent to calling setWindowState(Qt::WindowMinimized) and then setVisible(true).

See also setWindowState() and setVisible().

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

Shows the window as maximized.

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

C++ documentation:

Shows the window as maximized.

Equivalent to calling setWindowState(Qt::WindowMaximized) and then setVisible(true).

See also setWindowState() and setVisible().

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

Shows the window as fullscreen.

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

C++ documentation:

Shows the window as fullscreen.

Equivalent to calling setWindowState(Qt::WindowFullScreen) and then setVisible(true).

See also setWindowState() and setVisible().

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

Shows the window as normal, i.e. neither maximized, minimized, nor fullscreen.

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

C++ documentation:

Shows the window as normal, i.e. neither maximized, minimized, nor fullscreen.

Equivalent to calling setWindowState(Qt::WindowNoState) and then setVisible(true).

See also setWindowState() and setVisible().

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

Close the window.

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

C++ documentation:

Close the window.

This closes the window, effectively calling destroy(), and potentially quitting the application. Returns true on success, false if it has a parent window (in which case the top level window should be closed instead).

See also destroy() and QGuiApplication::quitOnLastWindowClosed().

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

Raise the window in the windowing system.

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

C++ documentation:

Raise the window in the windowing system.

Requests that the window be raised to appear above other windows.

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

Lower the window in the windowing system.

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

C++ documentation:

Lower the window in the windowing system.

Requests that the window be lowered to appear below other windows.

pub fn slot_set_title(&self) -> Receiver<(*const QString,)>[src]

This property holds the window's title in the windowing system

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

C++ documentation:

This property holds the window's title in the windowing system

The window title might appear in the title area of the window decorations, depending on the windowing system and the window flags. It might also be used by the windowing system to identify the window in other contexts, such as in the task switcher.

Access functions:

QString title() const
void setTitle(const QString &)

Notifier signal:

void windowTitleChanged(const QString &title)

See also flags().

pub fn slot_set_x(&self) -> Receiver<(c_int,)>[src]

This property holds the x position of the window's geometry

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

C++ documentation:

This property holds the x position of the window's geometry

Access functions:

int x() const
void setX(int arg)

Notifier signal:

void xChanged(int arg)

pub fn slot_set_y(&self) -> Receiver<(c_int,)>[src]

This property holds the y position of the window's geometry

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

C++ documentation:

This property holds the y position of the window's geometry

Access functions:

int y() const
void setY(int arg)

Notifier signal:

void yChanged(int arg)

pub fn slot_set_width(&self) -> Receiver<(c_int,)>[src]

This property holds the width of the window's geometry

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

C++ documentation:

This property holds the width of the window's geometry

Access functions:

int width() const
void setWidth(int arg)

Notifier signal:

void widthChanged(int arg)

pub fn slot_set_height(&self) -> Receiver<(c_int,)>[src]

This property holds the height of the window's geometry

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

C++ documentation:

This property holds the height of the window's geometry

Access functions:

int height() const
void setHeight(int arg)

Notifier signal:

void heightChanged(int arg)

pub fn slot_set_minimum_width(&self) -> Receiver<(c_int,)>[src]

This property holds the minimum width of the window's geometry

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

C++ documentation:

This property holds the minimum width of the window's geometry

Access functions:

int minimumWidth() const
void setMinimumWidth(int w)

Notifier signal:

void minimumWidthChanged(int arg)

pub fn slot_set_minimum_height(&self) -> Receiver<(c_int,)>[src]

This property holds the minimum height of the window's geometry

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

C++ documentation:

This property holds the minimum height of the window's geometry

Access functions:

int minimumHeight() const
void setMinimumHeight(int h)

Notifier signal:

void minimumHeightChanged(int arg)

pub fn slot_set_maximum_width(&self) -> Receiver<(c_int,)>[src]

This property holds the maximum width of the window's geometry

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

C++ documentation:

This property holds the maximum width of the window's geometry

Access functions:

int maximumWidth() const
void setMaximumWidth(int w)

Notifier signal:

void maximumWidthChanged(int arg)

pub fn slot_set_maximum_height(&self) -> Receiver<(c_int,)>[src]

This property holds the maximum height of the window's geometry

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

C++ documentation:

This property holds the maximum height of the window's geometry

Access functions:

int maximumHeight() const
void setMaximumHeight(int h)

Notifier signal:

void maximumHeightChanged(int arg)

pub fn slot_alert(&self) -> Receiver<(c_int,)>[src]

Causes an alert to be shown for msec miliseconds. If msec is 0 (the default), then the alert is shown indefinitely until the window becomes active again. This function has no effect on an active window.

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

C++ documentation:

Causes an alert to be shown for msec miliseconds. If msec is 0 (the default), then the alert is shown indefinitely until the window becomes active again. This function has no effect on an active window.

In alert state, the window indicates that it demands attention, for example by flashing or bouncing the taskbar entry.

This function was introduced in Qt 5.1.

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

Schedules a QEvent::UpdateRequest event to be delivered to this window.

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

C++ documentation:

Schedules a QEvent::UpdateRequest event to be delivered to this window.

The event is delivered in sync with the display vsync on platforms where this is possible. Otherwise, the event is delivered after a delay of 5 ms. The additional time is there to give the event loop a bit of idle time to gather system events, and can be overridden using the QT_QPA_UPDATE_IDLE_TIME environment variable.

When driving animations, this function should be called once after drawing has completed. Calling this function multiple times will result in a single event being delivered to the window.

Subclasses of QWindow should reimplement event(), intercept the event and call the application's rendering code, then call the base class implementation.

Note: The subclass' reimplementation of event() must invoke the base class implementation, unless it is absolutely sure that the event does not need to be handled by the base class. For example, the default implementation of this function relies on QEvent::Timer events. Filtering them away would therefore break the delivery of the update events.

This function was introduced in Qt 5.5.

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

This signal is emitted when a window's screen changes, either by being set explicitly with setScreen(), or automatically when the window's screen is removed.

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

C++ documentation:

This signal is emitted when a window's screen changes, either by being set explicitly with setScreen(), or automatically when the window's screen is removed.

pub fn modality_changed(&self) -> Signal<(WindowModality,)>[src]

This signal is emitted when the Qwindow::modality property changes to modality.

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

C++ documentation:

This signal is emitted when the Qwindow::modality property changes to modality.

Note: Notifier signal for property modality.

pub fn window_state_changed(&self) -> Signal<(WindowState,)>[src]

This signal is emitted when the windowState changes, either by being set explicitly with setWindowState(), or automatically when the user clicks one of the titlebar buttons or by other means.

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

C++ documentation:

This signal is emitted when the windowState changes, either by being set explicitly with setWindowState(), or automatically when the user clicks one of the titlebar buttons or by other means.

pub fn window_title_changed(&self) -> Signal<(*const QString,)>[src]

This property holds the window's title in the windowing system

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

C++ documentation:

This property holds the window's title in the windowing system

The window title might appear in the title area of the window decorations, depending on the windowing system and the window flags. It might also be used by the windowing system to identify the window in other contexts, such as in the task switcher.

Access functions:

QString title() const
void setTitle(const QString &)

Notifier signal:

void windowTitleChanged(const QString &title)

See also flags().

pub fn x_changed(&self) -> Signal<(c_int,)>[src]

This property holds the x position of the window's geometry

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

C++ documentation:

This property holds the x position of the window's geometry

Access functions:

int x() const
void setX(int arg)

Notifier signal:

void xChanged(int arg)

pub fn y_changed(&self) -> Signal<(c_int,)>[src]

This property holds the y position of the window's geometry

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

C++ documentation:

This property holds the y position of the window's geometry

Access functions:

int y() const
void setY(int arg)

Notifier signal:

void yChanged(int arg)

pub fn width_changed(&self) -> Signal<(c_int,)>[src]

This property holds the width of the window's geometry

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

C++ documentation:

This property holds the width of the window's geometry

Access functions:

int width() const
void setWidth(int arg)

Notifier signal:

void widthChanged(int arg)

pub fn height_changed(&self) -> Signal<(c_int,)>[src]

This property holds the height of the window's geometry

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

C++ documentation:

This property holds the height of the window's geometry

Access functions:

int height() const
void setHeight(int arg)

Notifier signal:

void heightChanged(int arg)

pub fn minimum_width_changed(&self) -> Signal<(c_int,)>[src]

This property holds the minimum width of the window's geometry

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

C++ documentation:

This property holds the minimum width of the window's geometry

Access functions:

int minimumWidth() const
void setMinimumWidth(int w)

Notifier signal:

void minimumWidthChanged(int arg)

pub fn minimum_height_changed(&self) -> Signal<(c_int,)>[src]

This property holds the minimum height of the window's geometry

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

C++ documentation:

This property holds the minimum height of the window's geometry

Access functions:

int minimumHeight() const
void setMinimumHeight(int h)

Notifier signal:

void minimumHeightChanged(int arg)

pub fn maximum_width_changed(&self) -> Signal<(c_int,)>[src]

This property holds the maximum width of the window's geometry

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

C++ documentation:

This property holds the maximum width of the window's geometry

Access functions:

int maximumWidth() const
void setMaximumWidth(int w)

Notifier signal:

void maximumWidthChanged(int arg)

pub fn maximum_height_changed(&self) -> Signal<(c_int,)>[src]

This property holds the maximum height of the window's geometry

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

C++ documentation:

This property holds the maximum height of the window's geometry

Access functions:

int maximumHeight() const
void setMaximumHeight(int h)

Notifier signal:

void maximumHeightChanged(int arg)

pub fn visible_changed(&self) -> Signal<(bool,)>[src]

This property holds whether the window is visible or not

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

C++ documentation:

This property holds whether the window is visible or not

This property controls the visibility of the window in the windowing system.

By default, the window is not visible, you must call setVisible(true), or show() or similar to make it visible.

Access functions:

bool isVisible() const
void setVisible(bool visible)

Notifier signal:

void visibleChanged(bool arg)

See also show().

pub fn visibility_changed(&self) -> Signal<(Visibility,)>[src]

This property holds the screen-occupation state of the window

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

C++ documentation:

This property holds the screen-occupation state of the window

Visibility is whether the window should appear in the windowing system as normal, minimized, maximized, fullscreen or hidden.

To set the visibility to AutomaticVisibility means to give the window a default visible state, which might be fullscreen or windowed depending on the platform. When reading the visibility property you will always get the actual state, never AutomaticVisibility.

This property was introduced in Qt 5.1.

Access functions:

Visibility visibility() const
void setVisibility(Visibility v)

Notifier signal:

void visibilityChanged(QWindow::Visibility visibility)

pub fn active_changed(&self) -> Signal<()>[src]

This property holds the active status of the window

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

C++ documentation:

This property holds the active status of the window

This property was introduced in Qt 5.1.

Access functions:

bool isActive() const

Notifier signal:

void activeChanged()

See also requestActivate().

pub fn content_orientation_changed(&self) -> Signal<(ScreenOrientation,)>[src]

This property holds the orientation of the window's contents

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

C++ documentation:

This property holds the orientation of the window's contents

This is a hint to the window manager in case it needs to display additional content like popups, dialogs, status bars, or similar in relation to the window.

The recommended orientation is QScreen::orientation() but an application doesn't have to support all possible orientations, and thus can opt to ignore the current screen orientation.

The difference between the window and the content orientation determines how much to rotate the content by. QScreen::angleBetween(), QScreen::transformBetween(), and QScreen::mapBetween() can be used to compute the necessary transform.

The default value is Qt::PrimaryOrientation

Access functions:

Qt::ScreenOrientation contentOrientation() const
void reportContentOrientationChange(Qt::ScreenOrientation orientation)

Notifier signal:

void contentOrientationChanged(Qt::ScreenOrientation orientation)

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

This signal is emitted when the final receiver of events tied to focus is changed to object.

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

C++ documentation:

This signal is emitted when the final receiver of events tied to focus is changed to object.

See also focusObject().

pub fn opacity_changed(&self) -> Signal<(c_double,)>[src]

This property holds the opacity of the window in the windowing system.

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

C++ documentation:

This property holds the opacity of the window in the windowing system.

If the windowing system supports window opacity, this can be used to fade the window in and out, or to make it semitransparent.

A value of 1.0 or above is treated as fully opaque, whereas a value of 0.0 or below is treated as fully transparent. Values inbetween represent varying levels of translucency between the two extremes.

The default value is 1.0.

This property was introduced in Qt 5.1.

Access functions:

qreal opacity() const
void setOpacity(qreal level)

Notifier signal:

void opacityChanged(qreal opacity)

pub unsafe fn accessible_root(&self) -> MutPtr<QAccessibleInterface>[src]

Calls C++ function: virtual QAccessibleInterface* QWindow::accessibleRoot() const.

pub unsafe fn alert(&mut self, msec: c_int)[src]

Causes an alert to be shown for msec miliseconds. If msec is 0 (the default), then the alert is shown indefinitely until the window becomes active again. This function has no effect on an active window.

Calls C++ function: [slot] void QWindow::alert(int msec).

C++ documentation:

Causes an alert to be shown for msec miliseconds. If msec is 0 (the default), then the alert is shown indefinitely until the window becomes active again. This function has no effect on an active window.

In alert state, the window indicates that it demands attention, for example by flashing or bouncing the taskbar entry.

This function was introduced in Qt 5.1.

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

Returns the base size of the window.

Calls C++ function: QSize QWindow::baseSize() const.

C++ documentation:

Returns the base size of the window.

See also setBaseSize().

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

Close the window.

Calls C++ function: [slot] bool QWindow::close().

C++ documentation:

Close the window.

This closes the window, effectively calling destroy(), and potentially quitting the application. Returns true on success, false if it has a parent window (in which case the top level window should be closed instead).

See also destroy() and QGuiApplication::quitOnLastWindowClosed().

pub unsafe fn content_orientation(&self) -> ScreenOrientation[src]

This property holds the orientation of the window's contents

Calls C++ function: Qt::ScreenOrientation QWindow::contentOrientation() const.

C++ documentation:

This property holds the orientation of the window's contents

This is a hint to the window manager in case it needs to display additional content like popups, dialogs, status bars, or similar in relation to the window.

The recommended orientation is QScreen::orientation() but an application doesn't have to support all possible orientations, and thus can opt to ignore the current screen orientation.

The difference between the window and the content orientation determines how much to rotate the content by. QScreen::angleBetween(), QScreen::transformBetween(), and QScreen::mapBetween() can be used to compute the necessary transform.

The default value is Qt::PrimaryOrientation

Access functions:

Qt::ScreenOrientation contentOrientation() const
void reportContentOrientationChange(Qt::ScreenOrientation orientation)

Notifier signal:

void contentOrientationChanged(Qt::ScreenOrientation orientation)

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

Allocates the platform resources associated with the window.

Calls C++ function: void QWindow::create().

C++ documentation:

Allocates the platform resources associated with the window.

It is at this point that the surface format set using setFormat() gets resolved into an actual native surface. However, the window remains hidden until setVisible() is called.

Note that it is not usually necessary to call this function directly, as it will be implicitly called by show(), setVisible(), and other functions that require access to the platform resources.

Call destroy() to free the platform resources if necessary.

See also destroy().

pub unsafe fn cursor(&self) -> CppBox<QCursor>[src]

the cursor shape for this window

Calls C++ function: QCursor QWindow::cursor() const.

C++ documentation:

the cursor shape for this window

See also setCursor() and unsetCursor().

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

Releases the native platform resources associated with this window.

Calls C++ function: void QWindow::destroy().

C++ documentation:

Releases the native platform resources associated with this window.

See also create().

pub unsafe fn device_pixel_ratio(&self) -> c_double[src]

Returns the ratio between physical pixels and device-independent pixels for the window. This value is dependent on the screen the window is on, and may change when the window is moved.

Calls C++ function: double QWindow::devicePixelRatio() const.

C++ documentation:

Returns the ratio between physical pixels and device-independent pixels for the window. This value is dependent on the screen the window is on, and may change when the window is moved.

Common values are 1.0 on normal displays and 2.0 on Apple "retina" displays.

Note: For windows not backed by a platform window, meaning that create() was not called, the function will fall back to the associated QScreen's device pixel ratio.

See also QScreen::devicePixelRatio().

pub unsafe fn file_path(&self) -> CppBox<QString>[src]

the file name this window is representing.

Calls C++ function: QString QWindow::filePath() const.

C++ documentation:

the file name this window is representing.

See also setFilePath().

pub unsafe fn flags(&self) -> QFlags<WindowType>[src]

This property holds the window flags of the window

Calls C++ function: QFlags<Qt::WindowType> QWindow::flags() const.

C++ documentation:

This property holds the window flags of the window

The window flags control the window's appearance in the windowing system, whether it's a dialog, popup, or a regular window, and whether it should have a title bar, etc.

The actual window flags might differ from the flags set with setFlags() if the requested flags could not be fulfilled.

Access functions:

Qt::WindowFlags flags() const
void setFlags(Qt::WindowFlags flags)

See also setFlag().

pub unsafe fn focus_object(&self) -> MutPtr<QObject>[src]

Returns the QObject that will be the final receiver of events tied focus, such as key events.

Calls C++ function: virtual QObject* QWindow::focusObject() const.

C++ documentation:

Returns the QObject that will be the final receiver of events tied focus, such as key events.

pub unsafe fn format(&self) -> CppBox<QSurfaceFormat>[src]

Reimplemented from QSurface::format().

Calls C++ function: virtual QSurfaceFormat QWindow::format() const.

C++ documentation:

Reimplemented from QSurface::format().

Returns the actual format of this window.

After the window has been created, this function will return the actual surface format of the window. It might differ from the requested format if the requested format could not be fulfilled by the platform. It might also be a superset, for example certain buffer sizes may be larger than requested.

Note: Depending on the platform, certain values in this surface format may still contain the requested values, that is, the values that have been passed to setFormat(). Typical examples are the OpenGL version, profile and options. These may not get updated during create() since these are context specific and a single window may be used together with multiple contexts over its lifetime. Use the QOpenGLContext's format() instead to query such values.

See also setFormat(), create(), requestedFormat(), and QOpenGLContext::format().

pub unsafe fn frame_geometry(&self) -> CppBox<QRect>[src]

Returns the geometry of the window, including its window frame.

Calls C++ function: QRect QWindow::frameGeometry() const.

C++ documentation:

Returns the geometry of the window, including its window frame.

The geometry is in relation to the virtualGeometry() of its screen.

See also geometry() and frameMargins().

pub unsafe fn frame_margins(&self) -> CppBox<QMargins>[src]

Returns the window frame margins surrounding the window.

Calls C++ function: QMargins QWindow::frameMargins() const.

C++ documentation:

Returns the window frame margins surrounding the window.

See also geometry() and frameGeometry().

pub unsafe fn frame_position(&self) -> CppBox<QPoint>[src]

Returns the top left position of the window, including its window frame.

Calls C++ function: QPoint QWindow::framePosition() const.

C++ documentation:

Returns the top left position of the window, including its window frame.

This returns the same value as frameGeometry().topLeft().

See also setFramePosition(), geometry(), and frameGeometry().

pub unsafe fn from_win_id(id: c_ulonglong) -> MutPtr<QWindow>[src]

Creates a local representation of a window created by another process or by using native libraries below Qt.

Calls C++ function: static QWindow* QWindow::fromWinId(unsigned long long id).

C++ documentation:

Creates a local representation of a window created by another process or by using native libraries below Qt.

Given the handle id to a native window, this method creates a QWindow object which can be used to represent the window when invoking methods like setParent() and setTransientParent().

This can be used, on platforms which support it, to embed a QWindow inside a native window, or to embed a native window inside a QWindow.

If foreign windows are not supported or embedding the native window failed in the platform plugin, this function returns 0.

Note: The resulting QWindow should not be used to manipulate the underlying native window (besides re-parenting), or to observe state changes of the native window. Any support for these kind of operations is incidental, highly platform dependent and untested.

See also setParent() and setTransientParent().

pub unsafe fn geometry(&self) -> CppBox<QRect>[src]

Returns the geometry of the window, excluding its window frame.

Calls C++ function: QRect QWindow::geometry() const.

C++ documentation:

Returns the geometry of the window, excluding its window frame.

The geometry is in relation to the virtualGeometry() of its screen.

See also setGeometry(), frameMargins(), and frameGeometry().

pub unsafe fn height(&self) -> c_int[src]

This property holds the height of the window's geometry

Calls C++ function: int QWindow::height() const.

C++ documentation:

This property holds the height of the window's geometry

Access functions:

int height() const
void setHeight(int arg)

Notifier signal:

void heightChanged(int arg)

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

Hides the window.

Calls C++ function: [slot] void QWindow::hide().

C++ documentation:

Hides the window.

Equivalent to calling setVisible(false).

See also show() and setVisible().

pub unsafe fn icon(&self) -> CppBox<QIcon>[src]

Sets the window's icon in the windowing system

Calls C++ function: QIcon QWindow::icon() const.

C++ documentation:

Sets the window's icon in the windowing system

See also setIcon().

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

Returns true if the window should appear active from a style perspective.

Calls C++ function: bool QWindow::isActive() const.

C++ documentation:

Returns true if the window should appear active from a style perspective.

This is the case for the window that has input focus as well as windows that are in the same parent / transient parent chain as the focus window.

To get the window that currently has focus, use QGuiApplication::focusWindow().

Note: Getter function for property active.

pub unsafe fn is_ancestor_of_2a(
    &self,
    child: impl CastInto<Ptr<QWindow>>,
    mode: AncestorMode
) -> bool
[src]

Returns true if the window is an ancestor of the given child. If mode is IncludeTransients, then transient parents are also considered ancestors.

Calls C++ function: bool QWindow::isAncestorOf(const QWindow* child, QWindow::AncestorMode mode = …) const.

C++ documentation:

Returns true if the window is an ancestor of the given child. If mode is IncludeTransients, then transient parents are also considered ancestors.

pub unsafe fn is_ancestor_of_1a(
    &self,
    child: impl CastInto<Ptr<QWindow>>
) -> bool
[src]

Returns true if the window is an ancestor of the given child. If mode is IncludeTransients, then transient parents are also considered ancestors.

Calls C++ function: bool QWindow::isAncestorOf(const QWindow* child) const.

C++ documentation:

Returns true if the window is an ancestor of the given child. If mode is IncludeTransients, then transient parents are also considered ancestors.

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

Returns if this window is exposed in the windowing system.

Calls C++ function: bool QWindow::isExposed() const.

C++ documentation:

Returns if this window is exposed in the windowing system.

When the window is not exposed, it is shown by the application but it is still not showing in the windowing system, so the application should minimize rendering and other graphical activities.

An exposeEvent() is sent every time this value changes.

See also exposeEvent().

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

Returns whether the window is modal.

Calls C++ function: bool QWindow::isModal() const.

C++ documentation:

Returns whether the window is modal.

A modal window prevents other windows from getting any input.

See also QWindow::modality.

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

Returns whether the window is top level, i.e. has no parent window.

Calls C++ function: bool QWindow::isTopLevel() const.

C++ documentation:

Returns whether the window is top level, i.e. has no parent window.

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

This property holds whether the window is visible or not

Calls C++ function: bool QWindow::isVisible() const.

C++ documentation:

This property holds whether the window is visible or not

This property controls the visibility of the window in the windowing system.

By default, the window is not visible, you must call setVisible(true), or show() or similar to make it visible.

Access functions:

bool isVisible() const
void setVisible(bool visible)

Notifier signal:

void visibleChanged(bool arg)

See also show().

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

Lower the window in the windowing system.

Calls C++ function: [slot] void QWindow::lower().

C++ documentation:

Lower the window in the windowing system.

Requests that the window be lowered to appear below other windows.

pub unsafe fn map_from_global(
    &self,
    pos: impl CastInto<Ref<QPoint>>
) -> CppBox<QPoint>
[src]

Translates the global screen coordinate pos to window coordinates.

Calls C++ function: QPoint QWindow::mapFromGlobal(const QPoint& pos) const.

C++ documentation:

Translates the global screen coordinate pos to window coordinates.

See also mapToGlobal().

pub unsafe fn map_to_global(
    &self,
    pos: impl CastInto<Ref<QPoint>>
) -> CppBox<QPoint>
[src]

Translates the window coordinate pos to global screen coordinates. For example, mapToGlobal(QPoint(0,0)) would give the global coordinates of the top-left pixel of the window.

Calls C++ function: QPoint QWindow::mapToGlobal(const QPoint& pos) const.

C++ documentation:

Translates the window coordinate pos to global screen coordinates. For example, mapToGlobal(QPoint(0,0)) would give the global coordinates of the top-left pixel of the window.

See also mapFromGlobal().

pub unsafe fn mask(&self) -> CppBox<QRegion>[src]

Returns the mask set on the window.

Calls C++ function: QRegion QWindow::mask() const.

C++ documentation:

Returns the mask set on the window.

The mask is a hint to the windowing system that the application does not want to receive mouse or touch input outside the given region.

See also setMask().

pub unsafe fn maximum_height(&self) -> c_int[src]

This property holds the maximum height of the window's geometry

Calls C++ function: int QWindow::maximumHeight() const.

C++ documentation:

This property holds the maximum height of the window's geometry

Access functions:

int maximumHeight() const
void setMaximumHeight(int h)

Notifier signal:

void maximumHeightChanged(int arg)

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

Returns the maximum size of the window.

Calls C++ function: QSize QWindow::maximumSize() const.

C++ documentation:

Returns the maximum size of the window.

See also setMaximumSize().

pub unsafe fn maximum_width(&self) -> c_int[src]

This property holds the maximum width of the window's geometry

Calls C++ function: int QWindow::maximumWidth() const.

C++ documentation:

This property holds the maximum width of the window's geometry

Access functions:

int maximumWidth() const
void setMaximumWidth(int w)

Notifier signal:

void maximumWidthChanged(int arg)

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

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

pub unsafe fn minimum_height(&self) -> c_int[src]

This property holds the minimum height of the window's geometry

Calls C++ function: int QWindow::minimumHeight() const.

C++ documentation:

This property holds the minimum height of the window's geometry

Access functions:

int minimumHeight() const
void setMinimumHeight(int h)

Notifier signal:

void minimumHeightChanged(int arg)

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

Returns the minimum size of the window.

Calls C++ function: QSize QWindow::minimumSize() const.

C++ documentation:

Returns the minimum size of the window.

See also setMinimumSize().

pub unsafe fn minimum_width(&self) -> c_int[src]

This property holds the minimum width of the window's geometry

Calls C++ function: int QWindow::minimumWidth() const.

C++ documentation:

This property holds the minimum width of the window's geometry

Access functions:

int minimumWidth() const
void setMinimumWidth(int w)

Notifier signal:

void minimumWidthChanged(int arg)

pub unsafe fn modality(&self) -> WindowModality[src]

This property holds the modality of the window

Calls C++ function: Qt::WindowModality QWindow::modality() const.

C++ documentation:

This property holds the modality of the window

A modal window prevents other windows from receiving input events. Qt supports two types of modality: Qt::WindowModal and Qt::ApplicationModal.

By default, this property is Qt::NonModal

Access functions:

Qt::WindowModality modality() const
void setModality(Qt::WindowModality modality)

Notifier signal:

void modalityChanged(Qt::WindowModality modality)

See also Qt::WindowModality.

pub unsafe fn from_q_screen(
    screen: impl CastInto<MutPtr<QScreen>>
) -> CppBox<QWindow>
[src]

Creates a window as a top level on the targetScreen.

Calls C++ function: [constructor] void QWindow::QWindow(QScreen* screen = …).

C++ documentation:

Creates a window as a top level on the targetScreen.

The window is not shown until setVisible(true), show(), or similar is called.

See also setScreen().

pub unsafe fn from_q_window(
    parent: impl CastInto<MutPtr<QWindow>>
) -> CppBox<QWindow>
[src]

Creates a window as a child of the given parent window.

Calls C++ function: [constructor] void QWindow::QWindow(QWindow* parent).

C++ documentation:

Creates a window as a child of the given parent window.

The window will be embedded inside the parent window, its coordinates relative to the parent.

The screen is inherited from the parent.

See also setParent().

pub unsafe fn new() -> CppBox<QWindow>[src]

The QWindow class represents a window in the underlying windowing system.

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

C++ documentation:

The QWindow class represents a window in the underlying windowing system.

A window that is supplied a parent becomes a native child window of their parent window.

An application will typically use QWidget or QQuickView for its UI, and not QWindow directly. Still, it is possible to render directly to a QWindow with QBackingStore or QOpenGLContext, when wanting to keep dependencies to a minimum or when wanting to use OpenGL directly. The Raster Window Example and OpenGL Window Example are useful reference examples for how to render to a QWindow using either approach.

pub unsafe fn opacity(&self) -> c_double[src]

This property holds the opacity of the window in the windowing system.

Calls C++ function: double QWindow::opacity() const.

C++ documentation:

This property holds the opacity of the window in the windowing system.

If the windowing system supports window opacity, this can be used to fade the window in and out, or to make it semitransparent.

A value of 1.0 or above is treated as fully opaque, whereas a value of 0.0 or below is treated as fully transparent. Values inbetween represent varying levels of translucency between the two extremes.

The default value is 1.0.

This property was introduced in Qt 5.1.

Access functions:

qreal opacity() const
void setOpacity(qreal level)

Notifier signal:

void opacityChanged(qreal opacity)

pub unsafe fn parent_1a(&self, mode: AncestorMode) -> MutPtr<QWindow>[src]

Returns the parent window, if any.

Calls C++ function: QWindow* QWindow::parent(QWindow::AncestorMode mode) const.

C++ documentation:

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.

This function was introduced in Qt 5.9.

See also setParent().

pub unsafe fn parent_0a(&self) -> MutPtr<QWindow>[src]

Returns the parent window, if any.

Calls C++ function: QWindow* QWindow::parent() const.

C++ documentation:

Returns the parent window, if any.

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

pub unsafe fn position(&self) -> CppBox<QPoint>[src]

Returns the position of the window on the desktop excluding any window frame

Calls C++ function: QPoint QWindow::position() const.

C++ documentation:

Returns the position of the window on the desktop excluding any window frame

See also setPosition().

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 QWindow::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* QWindow::qt_metacast(const char* arg1).

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

Raise the window in the windowing system.

Calls C++ function: [slot] void QWindow::raise().

C++ documentation:

Raise the window in the windowing system.

Requests that the window be raised to appear above other windows.

pub unsafe fn report_content_orientation_change(
    &mut self,
    orientation: ScreenOrientation
)
[src]

This property holds the orientation of the window's contents

Calls C++ function: void QWindow::reportContentOrientationChange(Qt::ScreenOrientation orientation).

C++ documentation:

This property holds the orientation of the window's contents

This is a hint to the window manager in case it needs to display additional content like popups, dialogs, status bars, or similar in relation to the window.

The recommended orientation is QScreen::orientation() but an application doesn't have to support all possible orientations, and thus can opt to ignore the current screen orientation.

The difference between the window and the content orientation determines how much to rotate the content by. QScreen::angleBetween(), QScreen::transformBetween(), and QScreen::mapBetween() can be used to compute the necessary transform.

The default value is Qt::PrimaryOrientation

Access functions:

Qt::ScreenOrientation contentOrientation() const
void reportContentOrientationChange(Qt::ScreenOrientation orientation)

Notifier signal:

void contentOrientationChanged(Qt::ScreenOrientation orientation)

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

Requests the window to be activated, i.e. receive keyboard focus.

Calls C++ function: [slot] void QWindow::requestActivate().

C++ documentation:

Requests the window to be activated, i.e. receive keyboard focus.

See also isActive(), QGuiApplication::focusWindow(), and QWindowsWindowFunctions::setWindowActivationBehavior().

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

Schedules a QEvent::UpdateRequest event to be delivered to this window.

Calls C++ function: [slot] void QWindow::requestUpdate().

C++ documentation:

Schedules a QEvent::UpdateRequest event to be delivered to this window.

The event is delivered in sync with the display vsync on platforms where this is possible. Otherwise, the event is delivered after a delay of 5 ms. The additional time is there to give the event loop a bit of idle time to gather system events, and can be overridden using the QT_QPA_UPDATE_IDLE_TIME environment variable.

When driving animations, this function should be called once after drawing has completed. Calling this function multiple times will result in a single event being delivered to the window.

Subclasses of QWindow should reimplement event(), intercept the event and call the application's rendering code, then call the base class implementation.

Note: The subclass' reimplementation of event() must invoke the base class implementation, unless it is absolutely sure that the event does not need to be handled by the base class. For example, the default implementation of this function relies on QEvent::Timer events. Filtering them away would therefore break the delivery of the update events.

This function was introduced in Qt 5.5.

pub unsafe fn requested_format(&self) -> CppBox<QSurfaceFormat>[src]

Returns the requested surface format of this window.

Calls C++ function: QSurfaceFormat QWindow::requestedFormat() const.

C++ documentation:

Returns the requested surface format of this window.

If the requested format was not supported by the platform implementation, the requestedFormat will differ from the actual window format.

This is the value set with setFormat().

See also setFormat() and format().

pub unsafe fn resize_1a(&mut self, new_size: impl CastInto<Ref<QSize>>)[src]

set the size of the window, excluding any window frame, to newSize

Calls C++ function: void QWindow::resize(const QSize& newSize).

C++ documentation:

set the size of the window, excluding any window frame, to newSize

See also size() and geometry().

pub unsafe fn resize_2a(&mut self, w: c_int, h: c_int)[src]

set the size of the window, excluding any window frame, to a QSize constructed from width w and height h

Calls C++ function: void QWindow::resize(int w, int h).

C++ documentation:

set the size of the window, excluding any window frame, to a QSize constructed from width w and height h

See also size() and geometry().

pub unsafe fn screen(&self) -> MutPtr<QScreen>[src]

Returns the screen on which the window is shown, or null if there is none.

Calls C++ function: QScreen* QWindow::screen() const.

C++ documentation:

Returns the screen on which the window is shown, or null if there is none.

For child windows, this returns the screen of the corresponding top level window.

See also setScreen() and QScreen::virtualSiblings().

pub unsafe fn set_base_size(&mut self, size: impl CastInto<Ref<QSize>>)[src]

Sets the base size of the window.

Calls C++ function: void QWindow::setBaseSize(const QSize& size).

C++ documentation:

Sets the base size of the window.

The base size is used to calculate a proper window size if the window defines sizeIncrement().

See also setMinimumSize(), setMaximumSize(), setSizeIncrement(), and baseSize().

pub unsafe fn set_cursor(&mut self, arg1: impl CastInto<Ref<QCursor>>)[src]

set the cursor shape for this window

Calls C++ function: void QWindow::setCursor(const QCursor& arg1).

C++ documentation:

set the cursor shape for this window

The mouse cursor will assume this shape when it is over this window, unless an override cursor is set. See the list of predefined cursor objects for a range of useful shapes.

If no cursor has been set, or after a call to unsetCursor(), the parent window's cursor is used.

By default, the cursor has the Qt::ArrowCursor shape.

Some underlying window implementations will reset the cursor if it leaves a window even if the mouse is grabbed. If you want to have a cursor set for all windows, even when outside the window, consider QGuiApplication::setOverrideCursor().

See also cursor() and QGuiApplication::setOverrideCursor().

pub unsafe fn set_file_path(&mut self, file_path: impl CastInto<Ref<QString>>)[src]

set the file name this window is representing.

Calls C++ function: void QWindow::setFilePath(const QString& filePath).

C++ documentation:

set the file name this window is representing.

The windowing system might use filePath to display the path of the document this window is representing in the tile bar.

See also filePath().

pub unsafe fn set_flag_2a(&mut self, arg1: WindowType, on: bool)[src]

Sets the window flag flag on this window if on is true; otherwise clears the flag.

Calls C++ function: void QWindow::setFlag(Qt::WindowType arg1, bool on = …).

C++ documentation:

Sets the window flag flag on this window if on is true; otherwise clears the flag.

This function was introduced in Qt 5.9.

See also setFlags(), flags(), and type().

pub unsafe fn set_flag_1a(&mut self, arg1: WindowType)[src]

Sets the window flag flag on this window if on is true; otherwise clears the flag.

Calls C++ function: void QWindow::setFlag(Qt::WindowType arg1).

C++ documentation:

Sets the window flag flag on this window if on is true; otherwise clears the flag.

This function was introduced in Qt 5.9.

See also setFlags(), flags(), and type().

pub unsafe fn set_flags(&mut self, flags: QFlags<WindowType>)[src]

This property holds the window flags of the window

Calls C++ function: void QWindow::setFlags(QFlags<Qt::WindowType> flags).

C++ documentation:

This property holds the window flags of the window

The window flags control the window's appearance in the windowing system, whether it's a dialog, popup, or a regular window, and whether it should have a title bar, etc.

The actual window flags might differ from the flags set with setFlags() if the requested flags could not be fulfilled.

Access functions:

Qt::WindowFlags flags() const
void setFlags(Qt::WindowFlags flags)

See also setFlag().

pub unsafe fn set_format(&mut self, format: impl CastInto<Ref<QSurfaceFormat>>)[src]

Sets the window's surface format.

Calls C++ function: void QWindow::setFormat(const QSurfaceFormat& format).

C++ documentation:

Sets the window's surface format.

The format determines properties such as color depth, alpha, depth and stencil buffer size, etc. For example, to give a window a transparent background (provided that the window system supports compositing, and provided that other content in the window does not make it opaque again):

QSurfaceFormat format; format.setAlphaBufferSize(8); window.setFormat(format);

The surface format will be resolved in the create() function. Calling this function after create() has been called will not re-resolve the surface format of the native surface.

When the format is not explicitly set via this function, the format returned by QSurfaceFormat::defaultFormat() will be used. This means that when having multiple windows, individual calls to this function can be replaced by one single call to QSurfaceFormat::setDefaultFormat() before creating the first window.

See also format(), create(), destroy(), and QSurfaceFormat::setDefaultFormat().

pub unsafe fn set_frame_position(&mut self, point: impl CastInto<Ref<QPoint>>)[src]

Sets the upper left position of the window (point) including its window frame.

Calls C++ function: void QWindow::setFramePosition(const QPoint& point).

C++ documentation:

Sets the upper left position of the window (point) including its window frame.

The position is in relation to the virtualGeometry() of its screen.

See also framePosition(), setGeometry(), and frameGeometry().

pub unsafe fn set_geometry_4a(
    &mut self,
    posx: c_int,
    posy: c_int,
    w: c_int,
    h: c_int
)
[src]

Sets the geometry of the window, excluding its window frame, to a rectangle constructed from posx, posy, w and h.

Calls C++ function: void QWindow::setGeometry(int posx, int posy, int w, int h).

C++ documentation:

Sets the geometry of the window, excluding its window frame, to a rectangle constructed from posx, posy, w and h.

The geometry is in relation to the virtualGeometry() of its screen.

See also geometry().

pub unsafe fn set_geometry_1a(&mut self, rect: impl CastInto<Ref<QRect>>)[src]

Sets the geometry of the window, excluding its window frame, to rect.

Calls C++ function: void QWindow::setGeometry(const QRect& rect).

C++ documentation:

Sets the geometry of the window, excluding its window frame, to rect.

The geometry is in relation to the virtualGeometry() of its screen.

See also geometry().

pub unsafe fn set_height(&mut self, arg: c_int)[src]

This property holds the height of the window's geometry

Calls C++ function: [slot] void QWindow::setHeight(int arg).

C++ documentation:

This property holds the height of the window's geometry

Access functions:

int height() const
void setHeight(int arg)

Notifier signal:

void heightChanged(int arg)

pub unsafe fn set_icon(&mut self, icon: impl CastInto<Ref<QIcon>>)[src]

Sets the window's icon in the windowing system

Calls C++ function: void QWindow::setIcon(const QIcon& icon).

C++ documentation:

Sets the window's icon in the windowing system

The window icon might be used by the windowing system for example to decorate the window, and/or in the task switcher.

See also icon().

pub unsafe fn set_keyboard_grab_enabled(&mut self, grab: bool) -> bool[src]

Sets whether keyboard grab should be enabled or not (grab).

Calls C++ function: bool QWindow::setKeyboardGrabEnabled(bool grab).

C++ documentation:

Sets whether keyboard grab should be enabled or not (grab).

If the return value is true, the window receives all key events until setKeyboardGrabEnabled(false) is called; other windows get no key events at all. Mouse events are not affected. Use setMouseGrabEnabled() if you want to grab that.

See also setMouseGrabEnabled().

pub unsafe fn set_mask(&mut self, region: impl CastInto<Ref<QRegion>>)[src]

Sets the mask of the window.

Calls C++ function: void QWindow::setMask(const QRegion& region).

C++ documentation:

Sets the mask of the window.

The mask is a hint to the windowing system that the application does not want to receive mouse or touch input outside the given region.

The window manager may or may not choose to display any areas of the window not included in the mask, thus it is the application's responsibility to clear to transparent the areas that are not part of the mask.

Setting the mask before the window has been created has no effect.

See also mask().

pub unsafe fn set_maximum_height(&mut self, h: c_int)[src]

This property holds the maximum height of the window's geometry

Calls C++ function: [slot] void QWindow::setMaximumHeight(int h).

C++ documentation:

This property holds the maximum height of the window's geometry

Access functions:

int maximumHeight() const
void setMaximumHeight(int h)

Notifier signal:

void maximumHeightChanged(int arg)

pub unsafe fn set_maximum_size(&mut self, size: impl CastInto<Ref<QSize>>)[src]

Sets the maximum size of the window.

Calls C++ function: void QWindow::setMaximumSize(const QSize& size).

C++ documentation:

Sets the maximum size of the window.

This is a hint to the window manager to prevent resizing above the specified size.

See also setMinimumSize() and maximumSize().

pub unsafe fn set_maximum_width(&mut self, w: c_int)[src]

This property holds the maximum width of the window's geometry

Calls C++ function: [slot] void QWindow::setMaximumWidth(int w).

C++ documentation:

This property holds the maximum width of the window's geometry

Access functions:

int maximumWidth() const
void setMaximumWidth(int w)

Notifier signal:

void maximumWidthChanged(int arg)

pub unsafe fn set_minimum_height(&mut self, h: c_int)[src]

This property holds the minimum height of the window's geometry

Calls C++ function: [slot] void QWindow::setMinimumHeight(int h).

C++ documentation:

This property holds the minimum height of the window's geometry

Access functions:

int minimumHeight() const
void setMinimumHeight(int h)

Notifier signal:

void minimumHeightChanged(int arg)

pub unsafe fn set_minimum_size(&mut self, size: impl CastInto<Ref<QSize>>)[src]

Sets the minimum size of the window.

Calls C++ function: void QWindow::setMinimumSize(const QSize& size).

C++ documentation:

Sets the minimum size of the window.

This is a hint to the window manager to prevent resizing below the specified size.

See also setMaximumSize() and minimumSize().

pub unsafe fn set_minimum_width(&mut self, w: c_int)[src]

This property holds the minimum width of the window's geometry

Calls C++ function: [slot] void QWindow::setMinimumWidth(int w).

C++ documentation:

This property holds the minimum width of the window's geometry

Access functions:

int minimumWidth() const
void setMinimumWidth(int w)

Notifier signal:

void minimumWidthChanged(int arg)

pub unsafe fn set_modality(&mut self, modality: WindowModality)[src]

This property holds the modality of the window

Calls C++ function: void QWindow::setModality(Qt::WindowModality modality).

C++ documentation:

This property holds the modality of the window

A modal window prevents other windows from receiving input events. Qt supports two types of modality: Qt::WindowModal and Qt::ApplicationModal.

By default, this property is Qt::NonModal

Access functions:

Qt::WindowModality modality() const
void setModality(Qt::WindowModality modality)

Notifier signal:

void modalityChanged(Qt::WindowModality modality)

See also Qt::WindowModality.

pub unsafe fn set_mouse_grab_enabled(&mut self, grab: bool) -> bool[src]

Sets whether mouse grab should be enabled or not (grab).

Calls C++ function: bool QWindow::setMouseGrabEnabled(bool grab).

C++ documentation:

Sets whether mouse grab should be enabled or not (grab).

If the return value is true, the window receives all mouse events until setMouseGrabEnabled(false) is called; other windows get no mouse events at all. Keyboard events are not affected. Use setKeyboardGrabEnabled() if you want to grab that.

See also setKeyboardGrabEnabled().

pub unsafe fn set_opacity(&mut self, level: c_double)[src]

This property holds the opacity of the window in the windowing system.

Calls C++ function: void QWindow::setOpacity(double level).

C++ documentation:

This property holds the opacity of the window in the windowing system.

If the windowing system supports window opacity, this can be used to fade the window in and out, or to make it semitransparent.

A value of 1.0 or above is treated as fully opaque, whereas a value of 0.0 or below is treated as fully transparent. Values inbetween represent varying levels of translucency between the two extremes.

The default value is 1.0.

This property was introduced in Qt 5.1.

Access functions:

qreal opacity() const
void setOpacity(qreal level)

Notifier signal:

void opacityChanged(qreal opacity)

pub unsafe fn set_parent(&mut self, parent: impl CastInto<MutPtr<QWindow>>)[src]

Sets the parent Window. This will lead to the windowing system managing the clip of the window, so it will be clipped to the parent window.

Calls C++ function: void QWindow::setParent(QWindow* parent).

C++ documentation:

Sets the parent Window. This will lead to the windowing system managing the clip of the window, so it will be clipped to the parent window.

Setting parent to be 0 will make the window become a top level window.

If parent is a window created by fromWinId(), then the current window will be embedded inside parent, if the platform supports it.

See also parent().

pub unsafe fn set_position_1a(&mut self, pt: impl CastInto<Ref<QPoint>>)[src]

set the position of the window on the desktop to pt

Calls C++ function: void QWindow::setPosition(const QPoint& pt).

C++ documentation:

set the position of the window on the desktop to pt

The position is in relation to the virtualGeometry() of its screen.

See also position().

pub unsafe fn set_position_2a(&mut self, posx: c_int, posy: c_int)[src]

set the position of the window on the desktop to posx, posy

Calls C++ function: void QWindow::setPosition(int posx, int posy).

C++ documentation:

set the position of the window on the desktop to posx, posy

The position is in relation to the virtualGeometry() of its screen.

See also position().

pub unsafe fn set_screen(&mut self, screen: impl CastInto<MutPtr<QScreen>>)[src]

Sets the screen on which the window should be shown.

Calls C++ function: void QWindow::setScreen(QScreen* screen).

C++ documentation:

Sets the screen on which the window should be shown.

If the window has been created, it will be recreated on the newScreen.

Note: If the screen is part of a virtual desktop of multiple screens, the window will not move automatically to newScreen. To place the window relative to the screen, use the screen's topLeft() position.

This function only works for top level windows.

See also screen() and QScreen::virtualSiblings().

pub unsafe fn set_size_increment(&mut self, size: impl CastInto<Ref<QSize>>)[src]

Sets the size increment (size) of the window.

Calls C++ function: void QWindow::setSizeIncrement(const QSize& size).

C++ documentation:

Sets the size increment (size) of the window.

When the user resizes the window, the size will move in steps of sizeIncrement().width() pixels horizontally and sizeIncrement().height() pixels vertically, with baseSize() as the basis.

By default, this property contains a size with zero width and height.

The windowing system might not support size increments.

See also sizeIncrement(), setBaseSize(), setMinimumSize(), and setMaximumSize().

pub unsafe fn set_surface_type(&mut self, surface_type: SurfaceType)[src]

Sets the surfaceType of the window.

Calls C++ function: void QWindow::setSurfaceType(QSurface::SurfaceType surfaceType).

C++ documentation:

Sets the surfaceType of the window.

Specifies whether the window is meant for raster rendering with QBackingStore, or OpenGL rendering with QOpenGLContext.

The surfaceType will be used when the native surface is created in the create() function. Calling this function after the native surface has been created requires calling destroy() and create() to release the old native surface and create a new one.

See also surfaceType(), QBackingStore, QOpenGLContext, create(), and destroy().

pub unsafe fn set_title(&mut self, arg1: impl CastInto<Ref<QString>>)[src]

This property holds the window's title in the windowing system

Calls C++ function: [slot] void QWindow::setTitle(const QString& arg1).

C++ documentation:

This property holds the window's title in the windowing system

The window title might appear in the title area of the window decorations, depending on the windowing system and the window flags. It might also be used by the windowing system to identify the window in other contexts, such as in the task switcher.

Access functions:

QString title() const
void setTitle(const QString &)

Notifier signal:

void windowTitleChanged(const QString &title)

See also flags().

pub unsafe fn set_transient_parent(
    &mut self,
    parent: impl CastInto<MutPtr<QWindow>>
)
[src]

Sets the transient parent

Calls C++ function: void QWindow::setTransientParent(QWindow* parent).

C++ documentation:

Sets the transient parent

This is a hint to the window manager that this window is a dialog or pop-up on behalf of the given window.

In order to cause the window to be centered above its transient parent by default, depending on the window manager, it may also be necessary to call setFlags() with a suitable Qt::WindowType (such as Qt::Dialog).

See also transientParent() and parent().

pub unsafe fn set_visibility(&mut self, v: Visibility)[src]

This property holds the screen-occupation state of the window

Calls C++ function: void QWindow::setVisibility(QWindow::Visibility v).

C++ documentation:

This property holds the screen-occupation state of the window

Visibility is whether the window should appear in the windowing system as normal, minimized, maximized, fullscreen or hidden.

To set the visibility to AutomaticVisibility means to give the window a default visible state, which might be fullscreen or windowed depending on the platform. When reading the visibility property you will always get the actual state, never AutomaticVisibility.

This property was introduced in Qt 5.1.

Access functions:

Visibility visibility() const
void setVisibility(Visibility v)

Notifier signal:

void visibilityChanged(QWindow::Visibility visibility)

pub unsafe fn set_visible(&mut self, visible: bool)[src]

This property holds whether the window is visible or not

Calls C++ function: [slot] void QWindow::setVisible(bool visible).

C++ documentation:

This property holds whether the window is visible or not

This property controls the visibility of the window in the windowing system.

By default, the window is not visible, you must call setVisible(true), or show() or similar to make it visible.

Access functions:

bool isVisible() const
void setVisible(bool visible)

Notifier signal:

void visibleChanged(bool arg)

See also show().

pub unsafe fn set_width(&mut self, arg: c_int)[src]

This property holds the width of the window's geometry

Calls C++ function: [slot] void QWindow::setWidth(int arg).

C++ documentation:

This property holds the width of the window's geometry

Access functions:

int width() const
void setWidth(int arg)

Notifier signal:

void widthChanged(int arg)

pub unsafe fn set_window_state(&mut self, state: WindowState)[src]

set the screen-occupation state of the window

Calls C++ function: void QWindow::setWindowState(Qt::WindowState state).

C++ documentation:

set the screen-occupation state of the window

The window state represents whether the window appears in the windowing system as maximized, minimized, fullscreen, or normal.

The enum value Qt::WindowActive is not an accepted parameter.

See also windowState(), showNormal(), showFullScreen(), showMinimized(), and showMaximized().

pub unsafe fn set_window_states(&mut self, states: QFlags<WindowState>)[src]

set the screen-occupation state of the window

Calls C++ function: void QWindow::setWindowStates(QFlags<Qt::WindowState> states).

C++ documentation:

set the screen-occupation state of the window

The window state represents whether the window appears in the windowing system as maximized, minimized and/or fullscreen.

The window can be in a combination of several states. For example, if the window is both minimized and maximized, the window will appear minimized, but clicking on the task bar entry will restore it to the maximized state.

The enum value Qt::WindowActive should not be set.

This function was introduced in Qt 5.10.

See also windowStates(), showNormal(), showFullScreen(), showMinimized(), and showMaximized().

This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0").

pub unsafe fn set_x(&mut self, arg: c_int)[src]

This property holds the x position of the window's geometry

Calls C++ function: [slot] void QWindow::setX(int arg).

C++ documentation:

This property holds the x position of the window's geometry

Access functions:

int x() const
void setX(int arg)

Notifier signal:

void xChanged(int arg)

pub unsafe fn set_y(&mut self, arg: c_int)[src]

This property holds the y position of the window's geometry

Calls C++ function: [slot] void QWindow::setY(int arg).

C++ documentation:

This property holds the y position of the window's geometry

Access functions:

int y() const
void setY(int arg)

Notifier signal:

void yChanged(int arg)

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

Shows the window.

Calls C++ function: [slot] void QWindow::show().

C++ documentation:

Shows the window.

This is equivalent to calling showFullScreen(), showMaximized(), or showNormal(), depending on the platform's default behavior for the window type and flags.

See also showFullScreen(), showMaximized(), showNormal(), hide(), QStyleHints::showIsFullScreen(), and flags().

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

Shows the window as fullscreen.

Calls C++ function: [slot] void QWindow::showFullScreen().

C++ documentation:

Shows the window as fullscreen.

Equivalent to calling setWindowState(Qt::WindowFullScreen) and then setVisible(true).

See also setWindowState() and setVisible().

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

Shows the window as maximized.

Calls C++ function: [slot] void QWindow::showMaximized().

C++ documentation:

Shows the window as maximized.

Equivalent to calling setWindowState(Qt::WindowMaximized) and then setVisible(true).

See also setWindowState() and setVisible().

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

Shows the window as minimized.

Calls C++ function: [slot] void QWindow::showMinimized().

C++ documentation:

Shows the window as minimized.

Equivalent to calling setWindowState(Qt::WindowMinimized) and then setVisible(true).

See also setWindowState() and setVisible().

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

Shows the window as normal, i.e. neither maximized, minimized, nor fullscreen.

Calls C++ function: [slot] void QWindow::showNormal().

C++ documentation:

Shows the window as normal, i.e. neither maximized, minimized, nor fullscreen.

Equivalent to calling setWindowState(Qt::WindowNoState) and then setVisible(true).

See also setWindowState() and setVisible().

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

Reimplemented from QSurface::size().

Calls C++ function: virtual QSize QWindow::size() const.

C++ documentation:

Reimplemented from QSurface::size().

Returns the size of the window excluding any window frame

See also resize().

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

Returns the size increment of the window.

Calls C++ function: QSize QWindow::sizeIncrement() const.

C++ documentation:

Returns the size increment of the window.

See also setSizeIncrement().

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

Returns a reference to the staticMetaObject field.

pub unsafe fn surface_type(&self) -> SurfaceType[src]

Reimplemented from QSurface::surfaceType().

Calls C++ function: virtual QSurface::SurfaceType QWindow::surfaceType() const.

C++ documentation:

Reimplemented from QSurface::surfaceType().

Returns the surface type of the window.

See also setSurfaceType().

pub unsafe fn title(&self) -> CppBox<QString>[src]

This property holds the window's title in the windowing system

Calls C++ function: QString QWindow::title() const.

C++ documentation:

This property holds the window's title in the windowing system

The window title might appear in the title area of the window decorations, depending on the windowing system and the window flags. It might also be used by the windowing system to identify the window in other contexts, such as in the task switcher.

Access functions:

QString title() const
void setTitle(const QString &)

Notifier signal:

void windowTitleChanged(const QString &title)

See also flags().

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 QWindow::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 QWindow::trUtf8(const char* s, const char* c, int n).

pub unsafe fn transient_parent(&self) -> MutPtr<QWindow>[src]

Returns the transient parent of the window.

Calls C++ function: QWindow* QWindow::transientParent() const.

C++ documentation:

Returns the transient parent of the window.

See also setTransientParent() and parent().

pub unsafe fn transient_parent_changed(
    &mut self,
    transient_parent: impl CastInto<MutPtr<QWindow>>
)
[src]

Calls C++ function: void QWindow::transientParentChanged(QWindow* transientParent).

This item is available if cpp_lib_version="5.13.0".

pub unsafe fn type_(&self) -> WindowType[src]

Returns the type of the window.

Calls C++ function: Qt::WindowType QWindow::type() const.

C++ documentation:

Returns the type of the window.

This returns the part of the window flags that represents whether the window is a dialog, tooltip, popup, regular window, etc.

See also flags() and setFlags().

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

Restores the default arrow cursor for this window.

Calls C++ function: void QWindow::unsetCursor().

C++ documentation:

Restores the default arrow cursor for this window.

pub unsafe fn visibility(&self) -> Visibility[src]

This property holds the screen-occupation state of the window

Calls C++ function: QWindow::Visibility QWindow::visibility() const.

C++ documentation:

This property holds the screen-occupation state of the window

Visibility is whether the window should appear in the windowing system as normal, minimized, maximized, fullscreen or hidden.

To set the visibility to AutomaticVisibility means to give the window a default visible state, which might be fullscreen or windowed depending on the platform. When reading the visibility property you will always get the actual state, never AutomaticVisibility.

This property was introduced in Qt 5.1.

Access functions:

Visibility visibility() const
void setVisibility(Visibility v)

Notifier signal:

void visibilityChanged(QWindow::Visibility visibility)

pub unsafe fn width(&self) -> c_int[src]

This property holds the width of the window's geometry

Calls C++ function: int QWindow::width() const.

C++ documentation:

This property holds the width of the window's geometry

Access functions:

int width() const
void setWidth(int arg)

Notifier signal:

void widthChanged(int arg)

pub unsafe fn win_id(&self) -> c_ulonglong[src]

Returns the window's platform id.

Calls C++ function: unsigned long long QWindow::winId() const.

C++ documentation:

Returns the window's platform id.

For platforms where this id might be useful, the value returned will uniquely represent the window inside the corresponding screen.

See also screen().

pub unsafe fn window_state(&self) -> WindowState[src]

the screen-occupation state of the window

Calls C++ function: Qt::WindowState QWindow::windowState() const.

C++ documentation:

the screen-occupation state of the window

See also setWindowState().

pub unsafe fn window_states(&self) -> QFlags<WindowState>[src]

the screen-occupation state of the window

Calls C++ function: QFlags<Qt::WindowState> QWindow::windowStates() const.

C++ documentation:

the screen-occupation state of the window

The window can be in a combination of several states. For example, if the window is both minimized and maximized, the window will appear minimized, but clicking on the task bar entry will restore it to the maximized state.

This function was introduced in Qt 5.10.

See also setWindowStates().

This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0").

pub unsafe fn x(&self) -> c_int[src]

This property holds the x position of the window's geometry

Calls C++ function: int QWindow::x() const.

C++ documentation:

This property holds the x position of the window's geometry

Access functions:

int x() const
void setX(int arg)

Notifier signal:

void xChanged(int arg)

pub unsafe fn y(&self) -> c_int[src]

This property holds the y position of the window's geometry

Calls C++ function: int QWindow::y() const.

C++ documentation:

This property holds the y position of the window's geometry

Access functions:

int y() const
void setY(int arg)

Notifier signal:

void yChanged(int arg)

Trait Implementations

impl CppDeletable for QWindow[src]

unsafe fn delete(&mut self)[src]

Destroys the window.

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

C++ documentation:

Destroys the window.

impl Deref for QWindow[src]

type Target = QObject

The resulting type after dereferencing.

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

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

impl DerefMut for QWindow[src]

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

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

impl DynamicCast<QOpenGLWindow> for QWindow[src]

unsafe fn dynamic_cast(ptr: Ptr<QWindow>) -> Ptr<QOpenGLWindow>[src]

Calls C++ function: QOpenGLWindow* dynamic_cast<QOpenGLWindow*>(QWindow* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QWindow>) -> MutPtr<QOpenGLWindow>[src]

Calls C++ function: QOpenGLWindow* dynamic_cast<QOpenGLWindow*>(QWindow* ptr).

impl DynamicCast<QPaintDeviceWindow> for QWindow[src]

unsafe fn dynamic_cast(ptr: Ptr<QWindow>) -> Ptr<QPaintDeviceWindow>[src]

Calls C++ function: QPaintDeviceWindow* dynamic_cast<QPaintDeviceWindow*>(QWindow* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QWindow>) -> MutPtr<QPaintDeviceWindow>[src]

Calls C++ function: QPaintDeviceWindow* dynamic_cast<QPaintDeviceWindow*>(QWindow* ptr).

impl DynamicCast<QRasterWindow> for QWindow[src]

unsafe fn dynamic_cast(ptr: Ptr<QWindow>) -> Ptr<QRasterWindow>[src]

Calls C++ function: QRasterWindow* dynamic_cast<QRasterWindow*>(QWindow* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QWindow>) -> MutPtr<QRasterWindow>[src]

Calls C++ function: QRasterWindow* dynamic_cast<QRasterWindow*>(QWindow* ptr).

impl DynamicCast<QWindow> for QObject[src]

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

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

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

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

impl DynamicCast<QWindow> for QSurface[src]

unsafe fn dynamic_cast(ptr: Ptr<QSurface>) -> Ptr<QWindow>[src]

Calls C++ function: QWindow* dynamic_cast<QWindow*>(QSurface* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QSurface>) -> MutPtr<QWindow>[src]

Calls C++ function: QWindow* dynamic_cast<QWindow*>(QSurface* ptr).

impl Size for QWindow[src]

unsafe fn size(&self) -> usize[src]

Reimplemented from QSurface::size().

Calls C++ function: virtual QSize QWindow::size() const.

C++ documentation:

Reimplemented from QSurface::size().

Returns the size of the window excluding any window frame

See also resize().

impl StaticDowncast<QOpenGLWindow> for QWindow[src]

unsafe fn static_downcast(ptr: Ptr<QWindow>) -> Ptr<QOpenGLWindow>[src]

Calls C++ function: QOpenGLWindow* static_cast<QOpenGLWindow*>(QWindow* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QWindow>) -> MutPtr<QOpenGLWindow>[src]

Calls C++ function: QOpenGLWindow* static_cast<QOpenGLWindow*>(QWindow* ptr).

impl StaticDowncast<QPaintDeviceWindow> for QWindow[src]

unsafe fn static_downcast(ptr: Ptr<QWindow>) -> Ptr<QPaintDeviceWindow>[src]

Calls C++ function: QPaintDeviceWindow* static_cast<QPaintDeviceWindow*>(QWindow* ptr).

unsafe fn static_downcast_mut(
    ptr: MutPtr<QWindow>
) -> MutPtr<QPaintDeviceWindow>
[src]

Calls C++ function: QPaintDeviceWindow* static_cast<QPaintDeviceWindow*>(QWindow* ptr).

impl StaticDowncast<QRasterWindow> for QWindow[src]

unsafe fn static_downcast(ptr: Ptr<QWindow>) -> Ptr<QRasterWindow>[src]

Calls C++ function: QRasterWindow* static_cast<QRasterWindow*>(QWindow* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QWindow>) -> MutPtr<QRasterWindow>[src]

Calls C++ function: QRasterWindow* static_cast<QRasterWindow*>(QWindow* ptr).

impl StaticDowncast<QWindow> for QObject[src]

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

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

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

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

impl StaticDowncast<QWindow> for QSurface[src]

unsafe fn static_downcast(ptr: Ptr<QSurface>) -> Ptr<QWindow>[src]

Calls C++ function: QWindow* static_cast<QWindow*>(QSurface* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QSurface>) -> MutPtr<QWindow>[src]

Calls C++ function: QWindow* static_cast<QWindow*>(QSurface* ptr).

impl StaticUpcast<QObject> for QWindow[src]

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

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

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

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

impl StaticUpcast<QSurface> for QWindow[src]

unsafe fn static_upcast(ptr: Ptr<QWindow>) -> Ptr<QSurface>[src]

Calls C++ function: QSurface* static_cast<QSurface*>(QWindow* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QWindow>) -> MutPtr<QSurface>[src]

Calls C++ function: QSurface* static_cast<QSurface*>(QWindow* ptr).

impl StaticUpcast<QWindow> for QPaintDeviceWindow[src]

unsafe fn static_upcast(ptr: Ptr<QPaintDeviceWindow>) -> Ptr<QWindow>[src]

Calls C++ function: QWindow* static_cast<QWindow*>(QPaintDeviceWindow* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QPaintDeviceWindow>) -> MutPtr<QWindow>[src]

Calls C++ function: QWindow* static_cast<QWindow*>(QPaintDeviceWindow* ptr).

impl StaticUpcast<QWindow> for QOpenGLWindow[src]

unsafe fn static_upcast(ptr: Ptr<QOpenGLWindow>) -> Ptr<QWindow>[src]

Calls C++ function: QWindow* static_cast<QWindow*>(QOpenGLWindow* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QOpenGLWindow>) -> MutPtr<QWindow>[src]

Calls C++ function: QWindow* static_cast<QWindow*>(QOpenGLWindow* ptr).

impl StaticUpcast<QWindow> for QRasterWindow[src]

unsafe fn static_upcast(ptr: Ptr<QRasterWindow>) -> Ptr<QWindow>[src]

Calls C++ function: QWindow* static_cast<QWindow*>(QRasterWindow* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QRasterWindow>) -> MutPtr<QWindow>[src]

Calls C++ function: QWindow* static_cast<QWindow*>(QRasterWindow* ptr).

Auto Trait Implementations

impl RefUnwindSafe for QWindow

impl Send for QWindow

impl Sync for QWindow

impl Unpin for QWindow

impl UnwindSafe for QWindow

Blanket Implementations

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

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

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

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

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

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

impl<T> StaticUpcast<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.