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>.
Loading...
Searching...
No Matches
QWasmWindowStack Class Reference

#include <qwasmwindowstack.h>

+ Collaboration diagram for QWasmWindowStack:

Public Types

enum class  PositionPreference { StayOnBottom , Regular , StayOnTop }
 
using WindowOrderChangedCallbackType = std::function<void()>
 
using StorageType = QList<QWasmWindow *>
 
using iterator = StorageType::reverse_iterator
 
using const_iterator = StorageType::const_reverse_iterator
 
using const_reverse_iterator = StorageType::const_iterator
 

Public Member Functions

 QWasmWindowStack (WindowOrderChangedCallbackType topWindowChangedCallback)
 
 ~QWasmWindowStack ()
 
void pushWindow (QWasmWindow *window, PositionPreference position)
 
void removeWindow (QWasmWindow *window)
 
void raise (QWasmWindow *window)
 
void lower (QWasmWindow *window)
 
void windowPositionPreferenceChanged (QWasmWindow *window, PositionPreference position)
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 
bool empty () const
 
size_t size () const
 
QWasmWindowtopWindow () const
 

Detailed Description

Definition at line 24 of file qwasmwindowstack.h.

Member Typedef Documentation

◆ const_iterator

◆ const_reverse_iterator

using QWasmWindowStack::const_reverse_iterator = StorageType::const_iterator

Definition at line 33 of file qwasmwindowstack.h.

◆ iterator

◆ StorageType

Definition at line 29 of file qwasmwindowstack.h.

◆ WindowOrderChangedCallbackType

Definition at line 27 of file qwasmwindowstack.h.

Member Enumeration Documentation

◆ PositionPreference

Enumerator
StayOnBottom 
Regular 
StayOnTop 

Definition at line 35 of file qwasmwindowstack.h.

Constructor & Destructor Documentation

◆ QWasmWindowStack()

QT_BEGIN_NAMESPACE QWasmWindowStack::QWasmWindowStack ( WindowOrderChangedCallbackType topWindowChangedCallback)
explicit

Definition at line 8 of file qwasmwindowstack.cpp.

◆ ~QWasmWindowStack()

QWasmWindowStack::~QWasmWindowStack ( )
default

Member Function Documentation

◆ begin() [1/2]

QWasmWindowStack::iterator QWasmWindowStack::begin ( )

Definition at line 148 of file qwasmwindowstack.cpp.

References QList< T >::rbegin().

Referenced by windowPositionPreferenceChanged().

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

◆ begin() [2/2]

QWasmWindowStack::const_iterator QWasmWindowStack::begin ( ) const

Definition at line 158 of file qwasmwindowstack.cpp.

References QList< T >::rbegin().

+ Here is the call graph for this function:

◆ empty()

bool QWasmWindowStack::empty ( ) const

Definition at line 178 of file qwasmwindowstack.cpp.

References QList< T >::empty().

+ Here is the call graph for this function:

◆ end() [1/2]

QWasmWindowStack::iterator QWasmWindowStack::end ( )

Definition at line 153 of file qwasmwindowstack.cpp.

References QList< T >::rend().

Referenced by QWasmScreen::topLevelAt().

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

◆ end() [2/2]

QWasmWindowStack::const_iterator QWasmWindowStack::end ( ) const

Definition at line 163 of file qwasmwindowstack.cpp.

References QList< T >::rend().

+ Here is the call graph for this function:

◆ lower()

void QWasmWindowStack::lower ( QWasmWindow * window)

Definition at line 83 of file qwasmwindowstack.cpp.

References QList< T >::begin(), QList< T >::count(), QList< T >::end(), it, position(), Q_ASSERT, Regular, StayOnBottom, StayOnTop, and window().

Referenced by QWasmWindowTreeNode::sendToBottom().

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

◆ pushWindow()

void QWasmWindowStack::pushWindow ( QWasmWindow * window,
PositionPreference position )

Definition at line 17 of file qwasmwindowstack.cpp.

References QList< T >::begin(), QList< T >::count(), QList< T >::insert(), position(), QList< T >::push_back(), Q_ASSERT, Regular, StayOnTop, and window().

+ Here is the call graph for this function:

◆ raise()

void QWasmWindowStack::raise ( QWasmWindow * window)

Definition at line 61 of file qwasmwindowstack.cpp.

References QList< T >::begin(), QList< T >::count(), QList< T >::end(), it, position(), Q_ASSERT, Regular, StayOnBottom, StayOnTop, topWindow(), and window().

+ Here is the call graph for this function:

◆ rbegin()

QWasmWindowStack::const_reverse_iterator QWasmWindowStack::rbegin ( ) const

Definition at line 168 of file qwasmwindowstack.cpp.

References QList< T >::begin().

+ Here is the call graph for this function:

◆ removeWindow()

void QWasmWindowStack::removeWindow ( QWasmWindow * window)

Definition at line 42 of file qwasmwindowstack.cpp.

References QList< T >::begin(), QList< T >::count(), QList< T >::end(), QList< T >::erase(), it, position(), Q_ASSERT, StayOnBottom, StayOnTop, and window().

+ Here is the call graph for this function:

◆ rend()

QWasmWindowStack::const_reverse_iterator QWasmWindowStack::rend ( ) const

Definition at line 173 of file qwasmwindowstack.cpp.

References QList< T >::end().

+ Here is the call graph for this function:

◆ size()

size_t QWasmWindowStack::size ( ) const

Definition at line 183 of file qwasmwindowstack.cpp.

References QList< T >::size().

+ Here is the call graph for this function:

◆ topWindow()

QWasmWindow * QWasmWindowStack::topWindow ( ) const

Definition at line 188 of file qwasmwindowstack.cpp.

References QList< T >::empty(), QList< T >::last(), and nullptr.

Referenced by QWasmWindowTreeNode::onSubtreeChanged(), and raise().

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

◆ windowPositionPreferenceChanged()

void QWasmWindowStack::windowPositionPreferenceChanged ( QWasmWindow * window,
PositionPreference position )

Definition at line 106 of file qwasmwindowstack.cpp.

References QList< T >::begin(), begin(), QList< T >::end(), it, position(), Q_ASSERT, Regular, window(), and zones.

+ Here is the call graph for this function:

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