QtBase  v6.3.1
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
QWindowPrivate Class Reference

#include <qwindow_p.h>

Inheritance diagram for QWindowPrivate:
Inheritance graph
[legend]
Collaboration diagram for QWindowPrivate:
Collaboration graph
[legend]

Public Types

enum  PositionPolicy { WindowFrameInclusive , WindowFrameExclusive }
 
enum  SiblingPosition { PositionTop , PositionBottom }
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData >
 

Public Member Functions

 QWindowPrivate ()
 
 ~QWindowPrivate () override
 
void init (QScreen *targetScreen=nullptr)
 
void setCursor (const QCursor *c=nullptr)
 
bool applyCursor ()
 
QPoint globalPosition () const
 
QWindowtopLevelWindow (QWindow::AncestorMode mode=QWindow::IncludeTransients) const
 
virtual QWindoweventReceiver ()
 
virtual void setVisible (bool visible)
 
void updateVisibility ()
 
void _q_clearAlert ()
 
void updateSiblingPosition (SiblingPosition)
 
bool windowRecreationRequired (QScreen *newScreen) const
 
void create (bool recursive, WId nativeHandle=0)
 
void destroy ()
 
void setTopLevelScreen (QScreen *newScreen, bool recreate)
 
void connectToScreen (QScreen *topLevelScreen)
 
void disconnectFromScreen ()
 
void emitScreenChangedRecursion (QScreen *newScreen)
 
QScreenscreenForGeometry (const QRect &rect) const
 
void setTransientParent (QWindow *parent)
 
virtual void clearFocusObject ()
 
virtual QRectF closestAcceptableGeometry (const QRectF &rect) const
 
virtual void processSafeAreaMarginsChanged ()
 
virtual bool participatesInLastWindowClosed () const
 
virtual bool treatAsVisible () const
 
bool isPopup () const
 
void setAutomaticPositionAndResizeEnabled (bool a)
 
- Public Member Functions inherited from QObjectPrivate
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData)
 
void _q_reregisterTimers (void *pointer)
 
bool isSender (const QObject *receiver, const char *signal) const
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void ensureConnectionData ()
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Static Public Member Functions

static QWindowPrivateget (QWindow *window)
 
static Qt::WindowState effectiveState (Qt::WindowStates)
 
- Static Public Member Functions inherited from QObjectPrivate
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (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)
 
static bool disconnect (Connection *c)
 

Public Attributes

QWindow::SurfaceType surfaceType = QWindow::RasterSurface
 
Qt::WindowFlags windowFlags = Qt::Window
 
QWindowparentWindow = nullptr
 
QPlatformWindowplatformWindow = nullptr
 
bool visible = false
 
bool visibilityOnDestroy = false
 
bool exposed = false
 
bool inClose = false
 
QSurfaceFormat requestedFormat
 
QString windowTitle
 
QString windowFilePath
 
QIcon windowIcon
 
QRect geometry
 
Qt::WindowStates windowState = Qt::WindowNoState
 
QWindow::Visibility visibility = QWindow::Hidden
 
bool resizeEventPending = true
 
bool receivedExpose = false
 
PositionPolicy positionPolicy = WindowFrameExclusive
 
bool positionAutomatic = true
 
bool resizeAutomatic = true
 
Qt::ScreenOrientation contentOrientation = Qt::PrimaryOrientation
 
qreal opacity = 1
 
QRegion mask
 
QSize minimumSize = {0, 0}
 
QSize maximumSize = {QWINDOWSIZE_MAX, QWINDOWSIZE_MAX}
 
QSize baseSize
 
QSize sizeIncrement
 
Qt::WindowModality modality = Qt::NonModal
 
bool blockedByModalWindow = false
 
bool updateRequestPending = false
 
bool transientParentPropertySet = false
 
QPointer< QWindowtransientParent
 
QPointer< QScreentopLevelScreen
 
QCursor cursor = {Qt::ArrowCursor}
 
bool hasCursor = false
 
bool compositing = false
 
QElapsedTimer lastComposeTime
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union {
   QObject *   currentChildBeingDeleted
 
   QAbstractDeclarativeData *   declarativeData
 
}; 
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint unused: 24
 
int postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Detailed Description

Definition at line 65 of file qwindow_p.h.

Member Enumeration Documentation

◆ PositionPolicy

Enumerator
WindowFrameInclusive 
WindowFrameExclusive 

Definition at line 70 of file qwindow_p.h.

◆ SiblingPosition

Enumerator
PositionTop 
PositionBottom 

Definition at line 100 of file qwindow_p.h.

Constructor & Destructor Documentation

◆ QWindowPrivate()

QWindowPrivate::QWindowPrivate ( )

Definition at line 237 of file qwindow.cpp.

◆ ~QWindowPrivate()

QWindowPrivate::~QWindowPrivate ( )
overridedefault

Member Function Documentation

◆ _q_clearAlert()

void QWindowPrivate::_q_clearAlert ( )

Definition at line 2944 of file qwindow.cpp.

Here is the call graph for this function:

◆ applyCursor()

bool QWindowPrivate::applyCursor ( )

Definition at line 3021 of file qwindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearFocusObject()

void QWindowPrivate::clearFocusObject ( )
virtual

Reimplemented in QWidgetWindowPrivate.

Definition at line 593 of file qwindow.cpp.

◆ closestAcceptableGeometry()

QRectF QWindowPrivate::closestAcceptableGeometry ( const QRectF rect) const
virtual

Reimplemented in QWidgetWindowPrivate.

Definition at line 600 of file qwindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ connectToScreen()

void QWindowPrivate::connectToScreen ( QScreen topLevelScreen)

Definition at line 496 of file qwindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create()

void QWindowPrivate::create ( bool  recursive,
WId  nativeHandle = 0 
)

Definition at line 533 of file qwindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ destroy()

void QWindowPrivate::destroy ( )

Definition at line 1979 of file qwindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ disconnectFromScreen()

void QWindowPrivate::disconnectFromScreen ( )

Definition at line 490 of file qwindow.cpp.

Here is the caller graph for this function:

◆ effectiveState()

Qt::WindowState QWindowPrivate::effectiveState ( Qt::WindowStates  state)
static

Definition at line 1342 of file qwindow.cpp.

Here is the caller graph for this function:

◆ emitScreenChangedRecursion()

void QWindowPrivate::emitScreenChangedRecursion ( QScreen newScreen)

Definition at line 502 of file qwindow.cpp.

Here is the caller graph for this function:

◆ eventReceiver()

virtual QWindow* QWindowPrivate::eventReceiver ( )
inlinevirtual

Reimplemented in QWidgetWindowPrivate.

Definition at line 94 of file qwindow_p.h.

◆ get()

static QWindowPrivate* QWindowPrivate::get ( QWindow window)
inlinestatic

Definition at line 125 of file qwindow_p.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ globalPosition()

QPoint QWindowPrivate::globalPosition ( ) const

Definition at line 2838 of file qwindow.cpp.

Here is the call graph for this function:

◆ init()

void QWindowPrivate::init ( QScreen targetScreen = nullptr)

Definition at line 246 of file qwindow.cpp.

Here is the call graph for this function:

◆ isPopup()

bool QWindowPrivate::isPopup ( ) const
inline

Definition at line 121 of file qwindow_p.h.

◆ participatesInLastWindowClosed()

bool QWindowPrivate::participatesInLastWindowClosed ( ) const
virtual

Reimplemented in QWidgetWindowPrivate.

Definition at line 2286 of file qwindow.cpp.

Here is the caller graph for this function:

◆ processSafeAreaMarginsChanged()

virtual void QWindowPrivate::processSafeAreaMarginsChanged ( )
inlinevirtual

Reimplemented in QWidgetWindowPrivate.

Definition at line 116 of file qwindow_p.h.

Here is the caller graph for this function:

◆ screenForGeometry()

QScreen * QWindowPrivate::screenForGeometry ( const QRect rect) const

Definition at line 1784 of file qwindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setAutomaticPositionAndResizeEnabled()

void QWindowPrivate::setAutomaticPositionAndResizeEnabled ( bool  a)
inline

Definition at line 122 of file qwindow_p.h.

Here is the caller graph for this function:

◆ setCursor()

void QWindowPrivate::setCursor ( const QCursor c = nullptr)

Definition at line 2997 of file qwindow.cpp.

Here is the call graph for this function:

◆ setTopLevelScreen()

void QWindowPrivate::setTopLevelScreen ( QScreen newScreen,
bool  recreate 
)

Definition at line 512 of file qwindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setTransientParent()

void QWindowPrivate::setTransientParent ( QWindow parent)

Definition at line 1479 of file qwindow.cpp.

◆ setVisible()

void QWindowPrivate::setVisible ( bool  visible)
virtual

Reimplemented in QWidgetWindowPrivate.

Definition at line 352 of file qwindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ topLevelWindow()

QWindow * QWindowPrivate::topLevelWindow ( QWindow::AncestorMode  mode = QWindow::IncludeTransients) const

Definition at line 2860 of file qwindow.cpp.

Here is the call graph for this function:

◆ treatAsVisible()

bool QWindowPrivate::treatAsVisible ( ) const
virtual

Reimplemented in QWidgetWindowPrivate.

Definition at line 2307 of file qwindow.cpp.

◆ updateSiblingPosition()

void QWindowPrivate::updateSiblingPosition ( SiblingPosition  position)

Definition at line 458 of file qwindow.cpp.

Here is the call graph for this function:

◆ updateVisibility()

void QWindowPrivate::updateVisibility ( )

Definition at line 437 of file qwindow.cpp.

Here is the caller graph for this function:

◆ windowRecreationRequired()

bool QWindowPrivate::windowRecreationRequired ( QScreen newScreen) const

Definition at line 482 of file qwindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ baseSize

QSize QWindowPrivate::baseSize

Definition at line 159 of file qwindow_p.h.

◆ blockedByModalWindow

bool QWindowPrivate::blockedByModalWindow = false

Definition at line 163 of file qwindow_p.h.

◆ compositing

bool QWindowPrivate::compositing = false

Definition at line 176 of file qwindow_p.h.

◆ contentOrientation

Qt::ScreenOrientation QWindowPrivate::contentOrientation = Qt::PrimaryOrientation

Definition at line 153 of file qwindow_p.h.

◆ cursor

QCursor QWindowPrivate::cursor = {Qt::ArrowCursor}

Definition at line 172 of file qwindow_p.h.

◆ exposed

bool QWindowPrivate::exposed = false

Definition at line 135 of file qwindow_p.h.

◆ geometry

QRect QWindowPrivate::geometry

Definition at line 141 of file qwindow_p.h.

◆ hasCursor

bool QWindowPrivate::hasCursor = false

Definition at line 173 of file qwindow_p.h.

◆ inClose

bool QWindowPrivate::inClose = false

Definition at line 136 of file qwindow_p.h.

◆ lastComposeTime

QElapsedTimer QWindowPrivate::lastComposeTime

Definition at line 177 of file qwindow_p.h.

◆ mask

QRegion QWindowPrivate::mask

Definition at line 155 of file qwindow_p.h.

◆ maximumSize

QSize QWindowPrivate::maximumSize = {QWINDOWSIZE_MAX, QWINDOWSIZE_MAX}

Definition at line 158 of file qwindow_p.h.

◆ minimumSize

QSize QWindowPrivate::minimumSize = {0, 0}

Definition at line 157 of file qwindow_p.h.

◆ modality

Qt::WindowModality QWindowPrivate::modality = Qt::NonModal

Definition at line 162 of file qwindow_p.h.

◆ opacity

qreal QWindowPrivate::opacity = 1

Definition at line 154 of file qwindow_p.h.

◆ parentWindow

QWindow* QWindowPrivate::parentWindow = nullptr

Definition at line 131 of file qwindow_p.h.

◆ platformWindow

QPlatformWindow* QWindowPrivate::platformWindow = nullptr

Definition at line 132 of file qwindow_p.h.

◆ positionAutomatic

bool QWindowPrivate::positionAutomatic = true

Definition at line 147 of file qwindow_p.h.

◆ positionPolicy

PositionPolicy QWindowPrivate::positionPolicy = WindowFrameExclusive

Definition at line 146 of file qwindow_p.h.

◆ receivedExpose

bool QWindowPrivate::receivedExpose = false

Definition at line 145 of file qwindow_p.h.

◆ requestedFormat

QSurfaceFormat QWindowPrivate::requestedFormat

Definition at line 137 of file qwindow_p.h.

◆ resizeAutomatic

bool QWindowPrivate::resizeAutomatic = true

Definition at line 152 of file qwindow_p.h.

◆ resizeEventPending

bool QWindowPrivate::resizeEventPending = true

Definition at line 144 of file qwindow_p.h.

◆ sizeIncrement

QSize QWindowPrivate::sizeIncrement

Definition at line 160 of file qwindow_p.h.

◆ surfaceType

QWindow::SurfaceType QWindowPrivate::surfaceType = QWindow::RasterSurface

Definition at line 129 of file qwindow_p.h.

◆ topLevelScreen

QPointer<QScreen> QWindowPrivate::topLevelScreen

Definition at line 169 of file qwindow_p.h.

◆ transientParent

QPointer<QWindow> QWindowPrivate::transientParent

Definition at line 168 of file qwindow_p.h.

◆ transientParentPropertySet

bool QWindowPrivate::transientParentPropertySet = false

Definition at line 166 of file qwindow_p.h.

◆ updateRequestPending

bool QWindowPrivate::updateRequestPending = false

Definition at line 165 of file qwindow_p.h.

◆ visibility

QWindow::Visibility QWindowPrivate::visibility = QWindow::Hidden

Definition at line 143 of file qwindow_p.h.

◆ visibilityOnDestroy

bool QWindowPrivate::visibilityOnDestroy = false

Definition at line 134 of file qwindow_p.h.

◆ visible

bool QWindowPrivate::visible = false

Definition at line 133 of file qwindow_p.h.

◆ windowFilePath

QString QWindowPrivate::windowFilePath

Definition at line 139 of file qwindow_p.h.

◆ windowFlags

Qt::WindowFlags QWindowPrivate::windowFlags = Qt::Window

Definition at line 130 of file qwindow_p.h.

◆ windowIcon

QIcon QWindowPrivate::windowIcon

Definition at line 140 of file qwindow_p.h.

◆ windowState

Qt::WindowStates QWindowPrivate::windowState = Qt::WindowNoState

Definition at line 142 of file qwindow_p.h.

◆ windowTitle

QString QWindowPrivate::windowTitle

Definition at line 138 of file qwindow_p.h.


The documentation for this class was generated from the following files: