Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qwindow_p.h>
Public Types | |
enum | PositionPolicy { WindowFrameInclusive , WindowFrameExclusive } |
enum | SiblingPosition { PositionTop , PositionBottom } |
enum class | FocusTarget { First , Last , Current , Next , Prev } |
Public Types inherited from QObjectPrivate | |
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 Public Member Functions inherited from QObjectPrivate | |
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 33 of file qwindow_p.h.
|
strong |
Enumerator | |
---|---|
First | |
Last | |
Current | |
Next | |
Prev |
Definition at line 80 of file qwindow_p.h.
Enumerator | |
---|---|
WindowFrameInclusive | |
WindowFrameExclusive |
Definition at line 38 of file qwindow_p.h.
Enumerator | |
---|---|
PositionTop | |
PositionBottom |
Definition at line 65 of file qwindow_p.h.
|
default |
|
overridedefault |
void QWindowPrivate::_q_clearAlert | ( | ) |
Definition at line 3038 of file qwindow.cpp.
References QPlatformWindow::isAlertState(), platformWindow, and QPlatformWindow::setAlertState().
bool QWindowPrivate::applyCursor | ( | ) |
Definition at line 3115 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 597 of file qwindow.cpp.
Reimplemented in QWidgetWindowPrivate.
Definition at line 604 of file qwindow.cpp.
Definition at line 487 of file qwindow.cpp.
References disconnectFromScreen(), screen, and topLevelScreen.
Referenced by init(), and setTopLevelScreen().
void QWindowPrivate::create | ( | bool | recursive | ) |
Definition at line 526 of file qwindow.cpp.
References QList< T >::at(), geometry, i, QPlatformWindow::initialize(), kForeignWindowId, QGuiApplicationPrivate::platformIntegration(), platformWindow, Q_ASSERT, qWarning, screen, screenForGeometry(), QCoreApplication::sendEvent(), setTopLevelScreen(), QList< T >::size(), QPlatformSurfaceEvent::SurfaceCreated, this, updateDevicePixelRatio(), and updateRequestPending.
void QWindowPrivate::destroy | ( | ) |
Definition at line 2055 of file qwindow.cpp.
References at, QGuiApplicationPrivate::currentMousePressWindow, QGuiApplicationPrivate::currentMouseWindow, exposed, QGuiApplicationPrivate::focus_window, i, platformWindow, qt_window_private(), receivedExpose, resizeEventPending, QCoreApplication::sendEvent(), QPlatformWindow::setParent(), QPlatformWindow::setVisible(), QPlatformSurfaceEvent::SurfaceAboutToBeDestroyed, QGuiApplicationPrivate::tabletDevicePoints, and visibilityOnDestroy.
void QWindowPrivate::disconnectFromScreen | ( | ) |
Definition at line 481 of file qwindow.cpp.
References topLevelScreen.
Referenced by connectToScreen().
|
static |
Definition at line 1419 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 493 of file qwindow.cpp.
Referenced by setTopLevelScreen().
|
inlinevirtual |
Reimplemented in QWidgetWindowPrivate.
Definition at line 58 of file qwindow_p.h.
|
inlinestatic |
Definition at line 106 of file qwindow_p.h.
References window().
Referenced by QBackingStoreDefaultCompositor::flush(), QQuickPointerHandler::parentContains(), QGuiApplicationPrivate::processExposeEvent(), QGuiApplicationPrivate::processScreenLogicalDotsPerInchChange(), QGuiApplicationPrivate::processWindowDevicePixelRatioChangedEvent(), QOpenGLCompositorBackingStore::rhiFlush(), QOffscreenWindow::setVisible(), shouldApplyDarkFrame(), QGuiApplicationPrivate::showModalWindow(), QCocoaWindow::updateTitleBarButtons(), and QApplicationPrivate::windowNeverBlocked().
QPoint QWindowPrivate::globalPosition | ( | ) | const |
Definition at line 2935 of file qwindow.cpp.
References QPlatformWindow::mapToGlobal().
Definition at line 211 of file qwindow.cpp.
References QEvent::ChildWindowAdded, QObject::connect(), connectToScreen(), QSurfaceFormat::defaultFormat(), devicePixelRatio, QObjectData::isWindow, QObjectData::parent, parentWindow, QGuiApplication::primaryScreen, Q_UNLIKELY, Q_UNUSED, qFatal, requestedFormat, QWindow::screenChanged(), QCoreApplication::sendEvent(), topLevelScreen, updateDevicePixelRatio(), and QGuiApplicationPrivate::window_list.
|
inline |
Definition at line 100 of file qwindow_p.h.
References Qt::Popup, and Qt::WindowType_Mask.
|
virtual |
Reimplemented in QWidgetWindowPrivate.
Definition at line 2378 of file qwindow.cpp.
References Qt::ToolTip.
Referenced by QWidgetWindowPrivate::participatesInLastWindowClosed().
|
inlinevirtual |
Reimplemented in QWidgetWindowPrivate.
Definition at line 95 of file qwindow_p.h.
Definition at line 1848 of file qwindow.cpp.
References QRect::center(), QRect::contains(), QScreen::geometry, QRect::intersects(), and screen.
Referenced by create().
|
inline |
Definition at line 101 of file qwindow_p.h.
Definition at line 3091 of file qwindow.cpp.
References applyCursor(), Qt::ArrowCursor, cursor, QEvent::CursorChange, hasCursor, Qt::LastCursor, QCoreApplication::sendEvent(), and QCursor::shape().
|
inlinevirtual |
Reimplemented in QWidgetWindowPrivate, and QQuickWindowPrivate.
Definition at line 87 of file qwindow_p.h.
void QWindowPrivate::setMinOrMaxSize | ( | QSize * | oldSizeMember, |
const QSize & | size, | ||
qxp::function_ref< void()> | funcWidthChanged, | ||
qxp::function_ref< void()> | funcHeightChanged ) |
Definition at line 610 of file qwindow.cpp.
References QSize::expandedTo(), QSize::height(), maximumSize, minimumSize, platformWindow, QPlatformWindow::propagateSizeHints(), Q_ASSERT, QWINDOWSIZE_MAX, and QSize::width().
Definition at line 503 of file qwindow.cpp.
References connectToScreen(), create(), emitScreenChangedRecursion(), parentWindow, platformWindow, qWarning, topLevelScreen, visibilityOnDestroy, and windowRecreationRequired().
Referenced by create().
Definition at line 1561 of file qwindow.cpp.
References QObjectData::parent, and transientParentPropertySet.
|
virtual |
Reimplemented in QWidgetWindowPrivate, and QQuickWidgetOffscreenWindowPrivate.
Definition at line 343 of file qwindow.cpp.
References applyCursor(), QGuiApplicationPrivate::applyWindowGeometrySpecificationTo(), emit, hasCursor, QGuiApplicationPrivate::hideModalWindow(), QGuiApplicationPrivate::instance(), QString::isEmpty(), 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 2957 of file qwindow.cpp.
References QObjectData::parent, and window().
|
virtual |
Reimplemented in QWidgetWindowPrivate.
Definition at line 2399 of file qwindow.cpp.
bool QWindowPrivate::updateDevicePixelRatio | ( | ) |
Definition at line 1400 of file qwindow.cpp.
References QPlatformWindow::devicePixelRatio(), devicePixelRatio, QEvent::DevicePixelRatioChange, QHighDpiScaling::factor(), platformWindow, and QCoreApplication::sendEvent().
Referenced by create(), QPlatformWindow::deliverUpdateRequest(), and init().
void QWindowPrivate::updateSiblingPosition | ( | SiblingPosition | position | ) |
Definition at line 449 of file qwindow.cpp.
References position(), PositionTop, Q_ASSERT, and QList< T >::size().
void QWindowPrivate::updateVisibility | ( | ) |
Definition at line 428 of file qwindow.cpp.
References emit, visibility, visible, Qt::WindowFullScreen, Qt::WindowMaximized, Qt::WindowMinimized, and windowState.
Referenced by setVisible().
|
inlinevirtual |
Reimplemented in QQuickApplicationWindowPrivate.
Definition at line 59 of file qwindow_p.h.
bool QWindowPrivate::windowRecreationRequired | ( | QScreen * | newScreen | ) | const |
Definition at line 473 of file qwindow.cpp.
References platformWindow.
Referenced by setTopLevelScreen().
QSize QWindowPrivate::baseSize |
Definition at line 141 of file qwindow_p.h.
bool QWindowPrivate::blockedByModalWindow = false |
Definition at line 145 of file qwindow_p.h.
Qt::ScreenOrientation QWindowPrivate::contentOrientation = Qt::PrimaryOrientation |
Definition at line 135 of file qwindow_p.h.
QCursor QWindowPrivate::cursor = {Qt::ArrowCursor} |
Definition at line 154 of file qwindow_p.h.
Referenced by applyCursor(), and setCursor().
qreal QWindowPrivate::devicePixelRatio = 1.0 |
Definition at line 123 of file qwindow_p.h.
Referenced by init(), and updateDevicePixelRatio().
bool QWindowPrivate::exposed = false |
Definition at line 116 of file qwindow_p.h.
Referenced by destroy().
QRect QWindowPrivate::geometry |
Definition at line 122 of file qwindow_p.h.
Referenced by create().
bool QWindowPrivate::hasCursor = false |
Definition at line 155 of file qwindow_p.h.
Referenced by applyCursor(), setCursor(), and setVisible().
bool QWindowPrivate::inClose = false |
Definition at line 117 of file qwindow_p.h.
QElapsedTimer QWindowPrivate::lastComposeTime |
Definition at line 158 of file qwindow_p.h.
QRegion QWindowPrivate::mask |
Definition at line 137 of file qwindow_p.h.
QSize QWindowPrivate::maximumSize = {QWINDOWSIZE_MAX, QWINDOWSIZE_MAX} |
Definition at line 140 of file qwindow_p.h.
Referenced by setMinOrMaxSize().
QSize QWindowPrivate::minimumSize = {0, 0} |
Definition at line 139 of file qwindow_p.h.
Referenced by setMinOrMaxSize().
Qt::WindowModality QWindowPrivate::modality = Qt::NonModal |
Definition at line 144 of file qwindow_p.h.
qreal QWindowPrivate::opacity = 1 |
Definition at line 136 of file qwindow_p.h.
Referenced by QQuickWindowPrivate::updateDirtyNode().
Definition at line 112 of file qwindow_p.h.
Referenced by init(), setTopLevelScreen(), and setVisible().
QPlatformWindow* QWindowPrivate::platformWindow = nullptr |
Definition at line 113 of file qwindow_p.h.
Referenced by _q_clearAlert(), applyCursor(), create(), destroy(), setMinOrMaxSize(), setTopLevelScreen(), setVisible(), updateDevicePixelRatio(), and windowRecreationRequired().
bool QWindowPrivate::positionAutomatic = true |
Definition at line 129 of file qwindow_p.h.
PositionPolicy QWindowPrivate::positionPolicy = WindowFrameExclusive |
Definition at line 128 of file qwindow_p.h.
bool QWindowPrivate::receivedExpose = false |
Definition at line 127 of file qwindow_p.h.
Referenced by destroy().
QSurfaceFormat QWindowPrivate::requestedFormat |
Definition at line 118 of file qwindow_p.h.
Referenced by init().
bool QWindowPrivate::resizeAutomatic = true |
Definition at line 134 of file qwindow_p.h.
bool QWindowPrivate::resizeEventPending = true |
Definition at line 126 of file qwindow_p.h.
Referenced by destroy().
QSize QWindowPrivate::sizeIncrement |
Definition at line 142 of file qwindow_p.h.
QWindow::SurfaceType QWindowPrivate::surfaceType = QWindow::RasterSurface |
Definition at line 110 of file qwindow_p.h.
Definition at line 151 of file qwindow_p.h.
Referenced by connectToScreen(), disconnectFromScreen(), init(), and setTopLevelScreen().
Definition at line 150 of file qwindow_p.h.
bool QWindowPrivate::transientParentPropertySet = false |
Definition at line 148 of file qwindow_p.h.
Referenced by setTransientParent().
bool QWindowPrivate::updateRequestPending = false |
Definition at line 147 of file qwindow_p.h.
Referenced by create(), and QPlatformWindow::deliverUpdateRequest().
QWindow::Visibility QWindowPrivate::visibility = QWindow::Hidden |
Definition at line 125 of file qwindow_p.h.
Referenced by QQuickWidgetOffscreenWindowPrivate::setVisible(), and updateVisibility().
bool QWindowPrivate::visibilityOnDestroy = false |
Definition at line 115 of file qwindow_p.h.
Referenced by destroy(), and setTopLevelScreen().
bool QWindowPrivate::visible = false |
Definition at line 114 of file qwindow_p.h.
Referenced by setVisible(), QWidgetWindowPrivate::setVisible(), QQuickWidgetOffscreenWindowPrivate::setVisible(), and updateVisibility().
QString QWindowPrivate::windowFilePath |
Definition at line 120 of file qwindow_p.h.
Qt::WindowFlags QWindowPrivate::windowFlags = Qt::Window |
Definition at line 111 of file qwindow_p.h.
QIcon QWindowPrivate::windowIcon |
Definition at line 121 of file qwindow_p.h.
Qt::WindowStates QWindowPrivate::windowState = Qt::WindowNoState |
Definition at line 124 of file qwindow_p.h.
Referenced by updateVisibility().
QString QWindowPrivate::windowTitle |
Definition at line 119 of file qwindow_p.h.