![]() |
Qt 6.x
The Qt SDK
|
#include <qwindow_p.h>
Public Types | |
enum | PositionPolicy { WindowFrameInclusive , WindowFrameExclusive } |
enum | SiblingPosition { PositionTop , PositionBottom } |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
Static Public Member Functions | |
static QWindowPrivate * | get (QWindow *window) |
static Qt::WindowState | effectiveState (Qt::WindowStates) |
![]() | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Definition at line 31 of file qwindow_p.h.
Enumerator | |
---|---|
WindowFrameInclusive | |
WindowFrameExclusive |
Definition at line 36 of file qwindow_p.h.
Enumerator | |
---|---|
PositionTop | |
PositionBottom |
Definition at line 63 of file qwindow_p.h.
|
default |
|
overridedefault |
void QWindowPrivate::_q_clearAlert | ( | ) |
Definition at line 2946 of file qwindow.cpp.
References QPlatformWindow::isAlertState(), platformWindow, and QPlatformWindow::setAlertState().
bool QWindowPrivate::applyCursor | ( | ) |
Definition at line 3023 of file qwindow.cpp.
References QPlatformScreen::cursor(), cursor, QScreen::handle(), hasCursor, QGuiApplication::overrideCursor(), QPlatformCursor::OverrideCursor, platformWindow, and screen.
Referenced by setCursor(), and setVisible().
|
virtual |
Reimplemented in QWidgetWindowPrivate, and QQuickWindowPrivate.
Definition at line 562 of file qwindow.cpp.
Reimplemented in QWidgetWindowPrivate.
Definition at line 569 of file qwindow.cpp.
References Q_UNUSED, and rect.
Referenced by QPlatformWindow::closestAcceptableGeometry().
Definition at line 463 of file qwindow.cpp.
References disconnectFromScreen(), screen, and topLevelScreen.
Referenced by init(), and setTopLevelScreen().
void QWindowPrivate::create | ( | bool | recursive, |
WId | nativeHandle = 0 |
||
) |
Definition at line 500 of file qwindow.cpp.
References QList< T >::at(), QPlatformIntegration::createForeignWindow(), QPlatformIntegration::createPlatformWindow(), e, geometry, i, QPlatformWindow::initialize(), QGuiApplicationPrivate::platformIntegration(), platformWindow, Q_ASSERT, qWarning, screen, screenForGeometry(), QCoreApplication::sendEvent(), setTopLevelScreen(), QWindow::setVisible(), QList< T >::size(), QPlatformSurfaceEvent::SurfaceCreated, this, updateDevicePixelRatio(), and updateRequestPending.
void QWindowPrivate::destroy | ( | ) |
Definition at line 1993 of file qwindow.cpp.
References QList< T >::at(), at, QGuiApplicationPrivate::currentMousePressWindow, QGuiApplicationPrivate::currentMouseWindow, destroy(), e, exposed, QGuiApplicationPrivate::focus_window, i, platformWindow, qt_window_private(), receivedExpose, resizeEventPending, QCoreApplication::sendEvent(), QPlatformWindow::setVisible(), QList< T >::size(), QPlatformSurfaceEvent::SurfaceAboutToBeDestroyed, QGuiApplicationPrivate::tabletDevicePoints, and visibilityOnDestroy.
Referenced by destroy().
void QWindowPrivate::disconnectFromScreen | ( | ) |
Definition at line 457 of file qwindow.cpp.
References topLevelScreen.
Referenced by connectToScreen().
|
static |
Definition at line 1359 of file qwindow.cpp.
References state, Qt::WindowFullScreen, Qt::WindowMaximized, Qt::WindowMinimized, and Qt::WindowNoState.
Referenced by QCocoaWindow::applyWindowState(), and QGuiApplicationPrivate::processWindowStateChangedEvent().
Definition at line 469 of file qwindow.cpp.
Referenced by setTopLevelScreen().
|
inlinevirtual |
Reimplemented in QWidgetWindowPrivate.
Definition at line 56 of file qwindow_p.h.
|
inlinestatic |
Definition at line 94 of file qwindow_p.h.
References window().
Referenced by QBackingStoreDefaultCompositor::flush(), QQuickPointerHandler::parentContains(), QGuiApplicationPrivate::processScreenLogicalDotsPerInchChange(), QGuiApplicationPrivate::processWindowDevicePixelRatioChangedEvent(), QGuiApplicationPrivate::processWindowScreenChangedEvent(), QOpenGLCompositorBackingStore::rhiFlush(), QOffscreenWindow::setVisible(), shouldApplyDarkFrame(), QCocoaWindow::shouldRefuseKeyWindowAndFirstResponder(), QGuiApplicationPrivate::showModalWindow(), QCocoaWindow::updateTitleBarButtons(), and QApplicationPrivate::windowNeverBlocked().
QPoint QWindowPrivate::globalPosition | ( | ) | const |
Definition at line 2847 of file qwindow.cpp.
References QPlatformWindow::isEmbedded(), QPlatformWindow::isForeignWindow(), and QPlatformWindow::mapToGlobal().
Referenced by QQuickPointerHandler::parentContains().
Definition at line 209 of file qwindow.cpp.
References connectToScreen(), QSurfaceFormat::defaultFormat(), QScreen::devicePixelRatio, devicePixelRatio, QObjectData::isWindow, parentWindow, QList< T >::prepend(), QGuiApplication::primaryScreen, Q_UNLIKELY, qFatal, requestedFormat, topLevelScreen, and QGuiApplicationPrivate::window_list.
|
inline |
Definition at line 88 of file qwindow_p.h.
References Qt::Popup, and Qt::WindowType_Mask.
Referenced by QApplicationPrivate::windowNeverBlocked().
|
virtual |
Reimplemented in QWidgetWindowPrivate.
Definition at line 2300 of file qwindow.cpp.
References Qt::ToolTip.
Referenced by QWidgetWindowPrivate::participatesInLastWindowClosed().
|
inlinevirtual |
Reimplemented in QWidgetWindowPrivate.
Definition at line 83 of file qwindow_p.h.
Referenced by QGuiApplicationPrivate::processSafeAreaMarginsChangedEvent().
Definition at line 1790 of file qwindow.cpp.
References QRect::center(), QRect::contains(), QScreen::geometry, QRect::intersects(), screen, and QScreen::virtualSiblings().
Referenced by create(), and QXcbWindow::initialScreen().
|
inline |
Definition at line 89 of file qwindow_p.h.
Referenced by QOffscreenSurface::create(), and QWidgetPrivate::createTLSysExtra().
Definition at line 2999 of file qwindow.cpp.
References applyCursor(), Qt::ArrowCursor, cursor, QEvent::CursorChange, hasCursor, Qt::LastCursor, QCoreApplication::sendEvent(), and QCursor::shape().
void QWindowPrivate::setMinOrMaxSize | ( | QSize * | oldSizeMember, |
const QSize & | size, | ||
qxp::function_ref< void()> | funcWidthChanged, | ||
qxp::function_ref< void()> | funcHeightChanged | ||
) |
Definition at line 575 of file qwindow.cpp.
References QSize::boundedTo(), QSize::expandedTo(), QSize::height(), maximumSize, minimumSize, platformWindow, QPlatformWindow::propagateSizeHints(), Q_ASSERT, QWINDOWSIZE_MAX, and QSize::width().
Definition at line 479 of file qwindow.cpp.
References connectToScreen(), create(), emitScreenChangedRecursion(), parentWindow, platformWindow, qWarning, topLevelScreen, visibilityOnDestroy, and windowRecreationRequired().
Referenced by create().
Definition at line 1501 of file qwindow.cpp.
References QObjectData::parent, and transientParentPropertySet.
|
virtual |
Reimplemented in QWidgetWindowPrivate, and QQuickWidgetOffscreenWindowPrivate.
Definition at line 319 of file qwindow.cpp.
References applyCursor(), QGuiApplicationPrivate::applyWindowGeometrySpecificationTo(), emit, QGuiApplicationPrivate::firstWindowTitle, QGuiApplicationPrivate::forcedWindowIcon, hasCursor, QGuiApplicationPrivate::hideModalWindow(), QGuiApplicationPrivate::instance(), QString::isEmpty(), QIcon::isNull(), QGuiApplication::modalWindow(), QGuiApplication::overrideCursor(), parentWindow, platformWindow, qApp, QT_CONFIG, QEvent::Quit, QCoreApplication::removePostedEvents(), QCoreApplication::sendEvent(), QPlatformWindow::setVisible(), QGuiApplicationPrivate::showModalWindow(), QGuiApplicationPrivate::updateBlockedStatus(), updateVisibility(), visible, and Qt::Window.
Referenced by QWidgetWindowPrivate::setVisible().
QWindow * QWindowPrivate::topLevelWindow | ( | QWindow::AncestorMode | mode = QWindow::IncludeTransients | ) | const |
Definition at line 2869 of file qwindow.cpp.
References QObjectData::parent, and window().
|
virtual |
Reimplemented in QWidgetWindowPrivate.
Definition at line 2321 of file qwindow.cpp.
void QWindowPrivate::updateDevicePixelRatio | ( | ) |
Definition at line 1341 of file qwindow.cpp.
References QPlatformWindow::devicePixelRatio(), devicePixelRatio, QEvent::DevicePixelRatioChange, QHighDpiScaling::factor(), platformWindow, and QCoreApplication::sendEvent().
Referenced by create(), QGuiApplicationPrivate::processScreenLogicalDotsPerInchChange(), QGuiApplicationPrivate::processWindowDevicePixelRatioChangedEvent(), and QGuiApplicationPrivate::processWindowScreenChangedEvent().
void QWindowPrivate::updateSiblingPosition | ( | SiblingPosition | position | ) |
Definition at line 425 of file qwindow.cpp.
References QListSpecialMethodsBase< T >::indexOf(), QList< T >::move(), position(), PositionTop, Q_ASSERT, and QList< T >::size().
void QWindowPrivate::updateVisibility | ( | ) |
Definition at line 404 of file qwindow.cpp.
References emit, visibility, visible, Qt::WindowFullScreen, Qt::WindowMaximized, Qt::WindowMinimized, and windowState.
Referenced by QGuiApplicationPrivate::processWindowStateChangedEvent(), and setVisible().
|
inlinevirtual |
Reimplemented in QQuickApplicationWindowPrivate.
Definition at line 57 of file qwindow_p.h.
bool QWindowPrivate::windowRecreationRequired | ( | QScreen * | newScreen | ) | const |
Definition at line 449 of file qwindow.cpp.
References QListSpecialMethodsBase< T >::contains(), platformWindow, and QScreen::virtualSiblings().
Referenced by setTopLevelScreen().
QSize QWindowPrivate::baseSize |
Definition at line 129 of file qwindow_p.h.
Referenced by QWidgetPrivate::setConstraints_sys().
bool QWindowPrivate::blockedByModalWindow = false |
Definition at line 133 of file qwindow_p.h.
bool QWindowPrivate::compositing = false |
Definition at line 146 of file qwindow_p.h.
Referenced by QWindowsWindow::aboutToMakeCurrent(), and windowIsAccelerated().
Qt::ScreenOrientation QWindowPrivate::contentOrientation = Qt::PrimaryOrientation |
Definition at line 123 of file qwindow_p.h.
Referenced by QIOSWindow::handleContentOrientationChange().
QCursor QWindowPrivate::cursor = {Qt::ArrowCursor} |
Definition at line 142 of file qwindow_p.h.
Referenced by applyCursor(), and setCursor().
qreal QWindowPrivate::devicePixelRatio = 1.0 |
Definition at line 111 of file qwindow_p.h.
Referenced by init(), QQuickWindowPrivate::renderSceneGraph(), and updateDevicePixelRatio().
bool QWindowPrivate::exposed = false |
Definition at line 104 of file qwindow_p.h.
Referenced by destroy().
QRect QWindowPrivate::geometry |
Definition at line 110 of file qwindow_p.h.
Referenced by create(), QEglFSWindow::setGeometry(), and QVkKhrDisplayWindow::setGeometry().
bool QWindowPrivate::hasCursor = false |
Definition at line 143 of file qwindow_p.h.
Referenced by applyCursor(), setCursor(), and setVisible().
bool QWindowPrivate::inClose = false |
Definition at line 105 of file qwindow_p.h.
QElapsedTimer QWindowPrivate::lastComposeTime |
Definition at line 147 of file qwindow_p.h.
Referenced by QBackingStoreDefaultCompositor::flush(), and QOpenGLCompositorBackingStore::rhiFlush().
QRegion QWindowPrivate::mask |
Definition at line 125 of file qwindow_p.h.
QSize QWindowPrivate::maximumSize = {QWINDOWSIZE_MAX, QWINDOWSIZE_MAX} |
Definition at line 128 of file qwindow_p.h.
Referenced by QWidgetPrivate::setConstraints_sys(), and setMinOrMaxSize().
QSize QWindowPrivate::minimumSize = {0, 0} |
Definition at line 127 of file qwindow_p.h.
Referenced by QWidgetPrivate::setConstraints_sys(), and setMinOrMaxSize().
Qt::WindowModality QWindowPrivate::modality = Qt::NonModal |
Definition at line 132 of file qwindow_p.h.
qreal QWindowPrivate::opacity = 1 |
Definition at line 124 of file qwindow_p.h.
Referenced by QWindowsWindow::QWindowsWindow(), QXcbWindow::create(), and QQuickWindowPrivate::updateDirtyNode().
Definition at line 100 of file qwindow_p.h.
Referenced by init(), setTopLevelScreen(), and setVisible().
QPlatformWindow* QWindowPrivate::platformWindow = nullptr |
Definition at line 101 of file qwindow_p.h.
Referenced by _q_clearAlert(), applyCursor(), create(), destroy(), QWidget::focusNextPrevChild(), QWidgetPrivate::setConstraints_sys(), setMinOrMaxSize(), setTopLevelScreen(), setVisible(), updateDevicePixelRatio(), and windowRecreationRequired().
bool QWindowPrivate::positionAutomatic = true |
Definition at line 117 of file qwindow_p.h.
PositionPolicy QWindowPrivate::positionPolicy = WindowFrameExclusive |
Definition at line 116 of file qwindow_p.h.
Referenced by QWidgetPrivate::create(), QWindowsGeometryHint::positionIncludesFrame(), and QOffscreenWindow::setGeometry().
bool QWindowPrivate::receivedExpose = false |
Definition at line 115 of file qwindow_p.h.
Referenced by destroy().
QSurfaceFormat QWindowPrivate::requestedFormat |
Definition at line 106 of file qwindow_p.h.
Referenced by init().
bool QWindowPrivate::resizeAutomatic = true |
Definition at line 122 of file qwindow_p.h.
bool QWindowPrivate::resizeEventPending = true |
Definition at line 114 of file qwindow_p.h.
Referenced by canMapPosition(), and destroy().
QSize QWindowPrivate::sizeIncrement |
Definition at line 130 of file qwindow_p.h.
Referenced by QWidgetPrivate::setConstraints_sys().
QWindow::SurfaceType QWindowPrivate::surfaceType = QWindow::RasterSurface |
Definition at line 98 of file qwindow_p.h.
Definition at line 139 of file qwindow_p.h.
Referenced by connectToScreen(), disconnectFromScreen(), init(), and setTopLevelScreen().
Definition at line 138 of file qwindow_p.h.
bool QWindowPrivate::transientParentPropertySet = false |
Definition at line 136 of file qwindow_p.h.
Referenced by QQuickWindowQmlImpl::componentComplete(), and setTransientParent().
bool QWindowPrivate::updateRequestPending = false |
Definition at line 135 of file qwindow_p.h.
Referenced by create(), QPlatformWindow::deliverUpdateRequest(), and QPlatformWindow::hasPendingUpdateRequest().
QWindow::Visibility QWindowPrivate::visibility = QWindow::Hidden |
Definition at line 113 of file qwindow_p.h.
Referenced by QQuickWidgetOffscreenWindowPrivate::setVisible(), and updateVisibility().
bool QWindowPrivate::visibilityOnDestroy = false |
Definition at line 103 of file qwindow_p.h.
Referenced by destroy(), and setTopLevelScreen().
bool QWindowPrivate::visible = false |
Definition at line 102 of file qwindow_p.h.
Referenced by setVisible(), QWidgetWindowPrivate::setVisible(), QQuickWidgetOffscreenWindowPrivate::setVisible(), and updateVisibility().
QString QWindowPrivate::windowFilePath |
Definition at line 108 of file qwindow_p.h.
Qt::WindowFlags QWindowPrivate::windowFlags = Qt::Window |
Definition at line 99 of file qwindow_p.h.
QIcon QWindowPrivate::windowIcon |
Definition at line 109 of file qwindow_p.h.
Qt::WindowStates QWindowPrivate::windowState = Qt::WindowNoState |
Definition at line 112 of file qwindow_p.h.
Referenced by QGuiApplicationPrivate::processWindowStateChangedEvent(), QIOSWindow::setWindowState(), and updateVisibility().
QString QWindowPrivate::windowTitle |
Definition at line 107 of file qwindow_p.h.