Skip to main content

QWindow

Struct QWindow 

Source
pub struct QWindow { /* private fields */ }
Expand description

C++ class: QWindow.

Implementations§

Source§

impl QWindow

Source

pub fn slot_request_activate(&self) -> Receiver<()>

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

Source

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

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

Source

pub fn slot_show(&self) -> Receiver<()>

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

Source

pub fn slot_hide(&self) -> Receiver<()>

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

Source

pub fn slot_show_minimized(&self) -> Receiver<()>

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

Source

pub fn slot_show_maximized(&self) -> Receiver<()>

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

Source

pub fn slot_show_full_screen(&self) -> Receiver<()>

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

Source

pub fn slot_show_normal(&self) -> Receiver<()>

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

Source

pub fn slot_close(&self) -> Receiver<()>

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

Source

pub fn slot_raise(&self) -> Receiver<()>

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

Source

pub fn slot_lower(&self) -> Receiver<()>

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

Source

pub fn slot_start_system_resize(&self) -> Receiver<(c_int,)>

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

Source

pub fn slot_start_system_move(&self) -> Receiver<()>

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

pub fn slot_set_geometry(&self) -> Receiver<(c_int, c_int, c_int, c_int)>

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

Source

pub fn slot_set_geometry2(&self) -> Receiver<(*const QRect,)>

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

pub fn slot_request_update(&self) -> Receiver<()>

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

pub fn active_changed(&self) -> Signal<()>

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

Source

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

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

Source

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

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

Source

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

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

Source

pub fn transient_parent_changed(&self) -> Signal<(*mut QWindow,)>

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

Source

pub unsafe fn accessible_root(&self) -> Ptr<QAccessibleInterface>

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

Source

pub unsafe fn alert(&self, msec: c_int)

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

Source

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

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

Source

pub unsafe fn close(&self) -> bool

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

Source

pub unsafe fn content_orientation(&self) -> ScreenOrientation

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

Source

pub unsafe fn create(&self)

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

Source

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

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

Source

pub unsafe fn destroy(&self)

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

Source

pub unsafe fn device_pixel_ratio(&self) -> c_double

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

Source

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

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

Source

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

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

Source

pub unsafe fn focus_object(&self) -> QPtr<QObject>

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

pub unsafe fn from_win_id(id: c_ulonglong) -> QPtr<QWindow>

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

Source

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

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

Source

pub unsafe fn height(&self) -> c_int

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

Source

pub unsafe fn hide(&self)

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

Source

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

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

Source

pub unsafe fn is_active(&self) -> bool

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

Source

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

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

Source

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

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

Source

pub unsafe fn is_exposed(&self) -> bool

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

Source

pub unsafe fn is_modal(&self) -> bool

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

Source

pub unsafe fn is_top_level(&self) -> bool

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

Source

pub unsafe fn is_visible(&self) -> bool

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

Source

pub unsafe fn lower(&self)

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

Source

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

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

Source

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

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

Source

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

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

Source

pub unsafe fn maximum_height(&self) -> c_int

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

Source

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

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

Source

pub unsafe fn maximum_width(&self) -> c_int

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

Source

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

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

Source

pub unsafe fn minimum_height(&self) -> c_int

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

Source

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

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

Source

pub unsafe fn minimum_width(&self) -> c_int

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

Source

pub unsafe fn modality(&self) -> WindowModality

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

Source

pub unsafe fn from_q_screen( screen: impl CastInto<Ptr<QScreen>>, ) -> QBox<QWindow>

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

Source

pub unsafe fn from_q_window( parent: impl CastInto<Ptr<QWindow>>, ) -> QBox<QWindow>

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

Source

pub unsafe fn new() -> QBox<QWindow>

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

Source

pub unsafe fn opacity(&self) -> c_double

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

Source

pub unsafe fn parent_1a(&self, mode: AncestorMode) -> QPtr<QWindow>

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

Source

pub unsafe fn parent_0a(&self) -> QPtr<QWindow>

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

Source

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

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

Source

pub unsafe fn qt_metacall( &self, arg1: Call, arg2: c_int, arg3: *mut *mut c_void, ) -> c_int

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

Source

pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void

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

Source

pub unsafe fn raise(&self)

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

Source

pub unsafe fn report_content_orientation_change( &self, orientation: ScreenOrientation, )

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

Source

pub unsafe fn request_activate(&self)

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

Source

pub unsafe fn request_update(&self)

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

Source

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

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

Source

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

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

Source

pub unsafe fn resize_2a(&self, w: c_int, h: c_int)

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

Source

pub unsafe fn screen(&self) -> QPtr<QScreen>

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

Source

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

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

Source

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

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

Source

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

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

Source

pub unsafe fn set_flag_2a(&self, arg1: WindowType, on: bool)

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

Source

pub unsafe fn set_flag_1a(&self, arg1: WindowType)

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

Source

pub unsafe fn set_flags(&self, flags: QFlags<WindowType>)

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

Source

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

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

Source

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

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

Source

pub unsafe fn set_geometry_4a( &self, posx: c_int, posy: c_int, w: c_int, h: c_int, )

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

Source

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

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

Source

pub unsafe fn set_height(&self, arg: c_int)

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

Source

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

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

Source

pub unsafe fn set_keyboard_grab_enabled(&self, grab: bool) -> bool

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

Source

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

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

Source

pub unsafe fn set_maximum_height(&self, h: c_int)

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

Source

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

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

Source

pub unsafe fn set_maximum_width(&self, w: c_int)

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

Source

pub unsafe fn set_minimum_height(&self, h: c_int)

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

Source

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

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

Source

pub unsafe fn set_minimum_width(&self, w: c_int)

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

Source

pub unsafe fn set_modality(&self, modality: WindowModality)

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

Source

pub unsafe fn set_mouse_grab_enabled(&self, grab: bool) -> bool

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

Source

pub unsafe fn set_opacity(&self, level: c_double)

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

Source

pub unsafe fn set_parent(&self, parent: impl CastInto<Ptr<QWindow>>)

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

Source

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

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

Source

pub unsafe fn set_position_2a(&self, posx: c_int, posy: c_int)

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

Source

pub unsafe fn set_screen(&self, screen: impl CastInto<Ptr<QScreen>>)

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

Source

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

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

Source

pub unsafe fn set_surface_type(&self, surface_type: SurfaceType)

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

Source

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

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

Source

pub unsafe fn set_transient_parent(&self, parent: impl CastInto<Ptr<QWindow>>)

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

Source

pub unsafe fn set_visibility(&self, v: Visibility)

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

Source

pub unsafe fn set_visible(&self, visible: bool)

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

Source

pub unsafe fn set_width(&self, arg: c_int)

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

Source

pub unsafe fn set_window_state(&self, state: WindowState)

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

Source

pub unsafe fn set_window_states(&self, states: QFlags<WindowState>)

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

Source

pub unsafe fn set_x(&self, arg: c_int)

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

Source

pub unsafe fn set_y(&self, arg: c_int)

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

Source

pub unsafe fn show(&self)

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

Source

pub unsafe fn show_full_screen(&self)

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

Source

pub unsafe fn show_maximized(&self)

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

Source

pub unsafe fn show_minimized(&self)

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

Source

pub unsafe fn show_normal(&self)

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

Source

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

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

Source

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

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

Source

pub unsafe fn start_system_move(&self) -> bool

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

Source

pub unsafe fn start_system_resize(&self, edges: QFlags<Edge>) -> bool

Calls C++ function: [slot] bool QWindow::startSystemResize(QFlags<Qt::Edge> edges).

Source

pub unsafe fn static_meta_object() -> Ref<QMetaObject>

Returns a reference to the staticMetaObject field.

Source

pub unsafe fn surface_type(&self) -> SurfaceType

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

Source

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

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

Source

pub unsafe fn tr( s: *const c_char, c: *const c_char, n: c_int, ) -> CppBox<QString>

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

Source

pub unsafe fn tr_utf8( s: *const c_char, c: *const c_char, n: c_int, ) -> CppBox<QString>

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

Source

pub unsafe fn transient_parent(&self) -> QPtr<QWindow>

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

Source

pub unsafe fn type_(&self) -> WindowType

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

Source

pub unsafe fn unset_cursor(&self)

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

Source

pub unsafe fn visibility(&self) -> Visibility

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

Source

pub unsafe fn width(&self) -> c_int

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

Source

pub unsafe fn win_id(&self) -> c_ulonglong

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

Source

pub unsafe fn window_state(&self) -> WindowState

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

Source

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

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

Source

pub unsafe fn x(&self) -> c_int

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

Source

pub unsafe fn y(&self) -> c_int

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

Methods from Deref<Target = QObject>§

Source

pub unsafe fn find_child<T>( &self, name: &str, ) -> Result<QPtr<T>, FindChildError>

Finds a child of self with the specified object name and casts it to type T.

The search is performed recursively. If there is more than one child matching the search, the most direct ancestor is returned. If there are several direct ancestors, it is undefined which one will be returned.

Returns an error if there is no child object with object name name or the found object cannot be cast to T.

Source

pub fn destroyed(&self) -> Signal<(*mut QObject,)>

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

Source

pub fn object_name_changed(&self) -> Signal<(*const QString,)>

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

Source

pub fn slot_delete_later(&self) -> Receiver<()>

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

Source

pub unsafe fn block_signals(&self, b: bool) -> bool

Calls C++ function: bool QObject::blockSignals(bool b).

Source

pub unsafe fn children(&self) -> Ref<QListOfQObject>

Calls C++ function: const QList<QObject*>& QObject::children() const.

Source

pub unsafe fn delete_later(&self)

Calls C++ function: [slot] void QObject::deleteLater().

Source

pub unsafe fn disconnect_char_q_object_char( &self, signal: *const i8, receiver: impl CastInto<Ptr<QObject>>, member: *const i8, ) -> bool

Calls C++ function: bool QObject::disconnect(const char* signal = …, const QObject* receiver = …, const char* member = …) const.

Source

pub unsafe fn disconnect_q_object_char( &self, receiver: impl CastInto<Ptr<QObject>>, member: *const i8, ) -> bool

Calls C++ function: bool QObject::disconnect(const QObject* receiver, const char* member = …) const.

Source

pub unsafe fn disconnect_char_q_object( &self, signal: *const i8, receiver: impl CastInto<Ptr<QObject>>, ) -> bool

Calls C++ function: bool QObject::disconnect(const char* signal = …, const QObject* receiver = …) const.

Source

pub unsafe fn disconnect_char(&self, signal: *const i8) -> bool

Calls C++ function: bool QObject::disconnect(const char* signal = …) const.

Source

pub unsafe fn disconnect(&self) -> bool

Calls C++ function: bool QObject::disconnect() const.

Source

pub unsafe fn disconnect_q_object( &self, receiver: impl CastInto<Ptr<QObject>>, ) -> bool

Calls C++ function: bool QObject::disconnect(const QObject* receiver) const.

Source

pub unsafe fn dump_object_info_mut(&self)

Calls C++ function: void QObject::dumpObjectInfo().

Source

pub unsafe fn dump_object_info(&self)

Calls C++ function: void QObject::dumpObjectInfo() const.

Source

pub unsafe fn dump_object_tree_mut(&self)

Calls C++ function: void QObject::dumpObjectTree().

Source

pub unsafe fn dump_object_tree(&self)

Calls C++ function: void QObject::dumpObjectTree() const.

Source

pub unsafe fn dynamic_property_names(&self) -> CppBox<QListOfQByteArray>

Calls C++ function: QList<QByteArray> QObject::dynamicPropertyNames() const.

Source

pub unsafe fn eq(&self, p: impl CastInto<Ref<QPointerOfQObject>>) -> bool

Calls C++ function: bool operator==(QObject* o, const QPointer<QObject>& p).

Source

pub unsafe fn event(&self, event: impl CastInto<Ptr<QEvent>>) -> bool

Calls C++ function: virtual bool QObject::event(QEvent* event).

Source

pub unsafe fn event_filter( &self, watched: impl CastInto<Ptr<QObject>>, event: impl CastInto<Ptr<QEvent>>, ) -> bool

Calls C++ function: virtual bool QObject::eventFilter(QObject* watched, QEvent* event).

Source

pub unsafe fn find_child_q_object_2a( &self, a_name: impl CastInto<Ref<QString>>, options: QFlags<FindChildOption>, ) -> QPtr<QObject>

Calls C++ function: QObject* QObject::findChild<QObject*>(const QString& aName = …, QFlags<Qt::FindChildOption> options = …) const.

Source

pub unsafe fn find_child_q_object_1a( &self, a_name: impl CastInto<Ref<QString>>, ) -> QPtr<QObject>

Calls C++ function: QObject* QObject::findChild<QObject*>(const QString& aName = …) const.

Source

pub unsafe fn find_child_q_object_0a(&self) -> QPtr<QObject>

Calls C++ function: QObject* QObject::findChild<QObject*>() const.

Source

pub unsafe fn find_children_q_object_q_string_q_flags_find_child_option( &self, a_name: impl CastInto<Ref<QString>>, options: QFlags<FindChildOption>, ) -> CppBox<QListOfQObject>

Calls C++ function: QList<QObject*> QObject::findChildren<QObject*>(const QString& aName = …, QFlags<Qt::FindChildOption> options = …) const.

Source

pub unsafe fn find_children_q_object_q_reg_exp_q_flags_find_child_option( &self, re: impl CastInto<Ref<QRegExp>>, options: QFlags<FindChildOption>, ) -> CppBox<QListOfQObject>

Calls C++ function: QList<QObject*> QObject::findChildren<QObject*>(const QRegExp& re, QFlags<Qt::FindChildOption> options = …) const.

Source

pub unsafe fn find_children_q_object_q_regular_expression_q_flags_find_child_option( &self, re: impl CastInto<Ref<QRegularExpression>>, options: QFlags<FindChildOption>, ) -> CppBox<QListOfQObject>

Calls C++ function: QList<QObject*> QObject::findChildren<QObject*>(const QRegularExpression& re, QFlags<Qt::FindChildOption> options = …) const.

Source

pub unsafe fn find_children_q_object_q_string( &self, a_name: impl CastInto<Ref<QString>>, ) -> CppBox<QListOfQObject>

Calls C++ function: QList<QObject*> QObject::findChildren<QObject*>(const QString& aName = …) const.

Source

pub unsafe fn find_children_q_object(&self) -> CppBox<QListOfQObject>

Calls C++ function: QList<QObject*> QObject::findChildren<QObject*>() const.

Source

pub unsafe fn find_children_q_object_q_reg_exp( &self, re: impl CastInto<Ref<QRegExp>>, ) -> CppBox<QListOfQObject>

Calls C++ function: QList<QObject*> QObject::findChildren<QObject*>(const QRegExp& re) const.

Source

pub unsafe fn find_children_q_object_q_regular_expression( &self, re: impl CastInto<Ref<QRegularExpression>>, ) -> CppBox<QListOfQObject>

Calls C++ function: QList<QObject*> QObject::findChildren<QObject*>(const QRegularExpression& re) const.

Source

pub unsafe fn inherits(&self, classname: *const i8) -> bool

Calls C++ function: bool QObject::inherits(const char* classname) const.

Source

pub unsafe fn install_event_filter( &self, filter_obj: impl CastInto<Ptr<QObject>>, )

Calls C++ function: void QObject::installEventFilter(QObject* filterObj).

Source

pub unsafe fn is_widget_type(&self) -> bool

Calls C++ function: bool QObject::isWidgetType() const.

Source

pub unsafe fn is_window_type(&self) -> bool

Calls C++ function: bool QObject::isWindowType() const.

Source

pub unsafe fn kill_timer(&self, id: i32)

Calls C++ function: void QObject::killTimer(int id).

Source

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

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

Source

pub unsafe fn move_to_thread(&self, thread: impl CastInto<Ptr<QThread>>)

Calls C++ function: void QObject::moveToThread(QThread* thread).

Source

pub unsafe fn object_name(&self) -> CppBox<QString>

Calls C++ function: QString QObject::objectName() const.

Source

pub unsafe fn parent(&self) -> QPtr<QObject>

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

Source

pub unsafe fn property(&self, name: *const i8) -> CppBox<QVariant>

Calls C++ function: QVariant QObject::property(const char* name) const.

Source

pub unsafe fn qt_metacall( &self, arg1: Call, arg2: i32, arg3: *mut *mut c_void, ) -> i32

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

Source

pub unsafe fn qt_metacast(&self, arg1: *const i8) -> *mut c_void

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

Source

pub unsafe fn remove_event_filter(&self, obj: impl CastInto<Ptr<QObject>>)

Calls C++ function: void QObject::removeEventFilter(QObject* obj).

Source

pub unsafe fn set_object_name(&self, name: impl CastInto<Ref<QString>>)

Calls C++ function: void QObject::setObjectName(const QString& name).

Source

pub unsafe fn set_parent(&self, parent: impl CastInto<Ptr<QObject>>)

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

Source

pub unsafe fn set_property( &self, name: *const i8, value: impl CastInto<Ref<QVariant>>, ) -> bool

Calls C++ function: bool QObject::setProperty(const char* name, const QVariant& value).

Source

pub unsafe fn signals_blocked(&self) -> bool

Calls C++ function: bool QObject::signalsBlocked() const.

Source

pub unsafe fn start_timer_2a(&self, interval: i32, timer_type: TimerType) -> i32

Calls C++ function: int QObject::startTimer(int interval, Qt::TimerType timerType = …).

Source

pub unsafe fn start_timer_1a(&self, interval: i32) -> i32

Calls C++ function: int QObject::startTimer(int interval).

Source

pub unsafe fn thread(&self) -> QPtr<QThread>

Calls C++ function: QThread* QObject::thread() const.

Trait Implementations§

Source§

impl CppDeletable for QWindow

Source§

unsafe fn delete(&self)

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

Source§

impl Deref for QWindow

Source§

fn deref(&self) -> &QObject

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

Source§

type Target = QObject

The resulting type after dereferencing.
Source§

impl DynamicCast<QOpenGLWindow> for QWindow

Source§

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

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

Source§

impl DynamicCast<QPaintDeviceWindow> for QWindow

Source§

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

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

Source§

impl DynamicCast<QRasterWindow> for QWindow

Source§

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

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

Source§

impl DynamicCast<QWindow> for QObject

Source§

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

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

Source§

impl DynamicCast<QWindow> for QSurface

Source§

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

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

Source§

impl Size for QWindow

Source§

unsafe fn size(&self) -> usize

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

Source§

impl StaticDowncast<QOpenGLWindow> for QWindow

Source§

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

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

Source§

impl StaticDowncast<QPaintDeviceWindow> for QWindow

Source§

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

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

Source§

impl StaticDowncast<QRasterWindow> for QWindow

Source§

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

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

Source§

impl StaticDowncast<QWindow> for QObject

Source§

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

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

Source§

impl StaticDowncast<QWindow> for QSurface

Source§

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

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

Source§

impl StaticUpcast<QObject> for QWindow

Source§

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

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

Source§

impl StaticUpcast<QSurface> for QWindow

Source§

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

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

Source§

impl StaticUpcast<QWindow> for QOpenGLWindow

Source§

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

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

Source§

impl StaticUpcast<QWindow> for QPaintDeviceWindow

Source§

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

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

Source§

impl StaticUpcast<QWindow> for QRasterWindow

Source§

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

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

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.