![]() |
Qt 6.x
The Qt SDK
|
#include <qwasmwindowstack.h>
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 |
QWasmWindow * | topWindow () const |
Definition at line 24 of file qwasmwindowstack.h.
Definition at line 32 of file qwasmwindowstack.h.
using QWasmWindowStack::const_reverse_iterator = StorageType::const_iterator |
Definition at line 33 of file qwasmwindowstack.h.
Definition at line 31 of file qwasmwindowstack.h.
using QWasmWindowStack::StorageType = QList<QWasmWindow *> |
Definition at line 29 of file qwasmwindowstack.h.
using QWasmWindowStack::WindowOrderChangedCallbackType = std::function<void()> |
Definition at line 27 of file qwasmwindowstack.h.
|
strong |
Enumerator | |
---|---|
StayOnBottom | |
Regular | |
StayOnTop |
Definition at line 35 of file qwasmwindowstack.h.
|
explicit |
Definition at line 8 of file qwasmwindowstack.cpp.
|
default |
QWasmWindowStack::iterator QWasmWindowStack::begin | ( | ) |
Definition at line 148 of file qwasmwindowstack.cpp.
References QList< T >::rbegin().
Referenced by windowPositionPreferenceChanged().
QWasmWindowStack::const_iterator QWasmWindowStack::begin | ( | ) | const |
Definition at line 158 of file qwasmwindowstack.cpp.
References QList< T >::rbegin().
bool QWasmWindowStack::empty | ( | ) | const |
Definition at line 178 of file qwasmwindowstack.cpp.
References QList< T >::empty().
QWasmWindowStack::iterator QWasmWindowStack::end | ( | ) |
Definition at line 153 of file qwasmwindowstack.cpp.
References QList< T >::rend().
Referenced by QWasmScreen::topLevelAt().
QWasmWindowStack::const_iterator QWasmWindowStack::end | ( | ) | const |
Definition at line 163 of file qwasmwindowstack.cpp.
References QList< T >::rend().
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().
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().
Referenced by QWasmWindowTreeNode::onParentChanged().
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().
Referenced by QWasmWindowTreeNode::bringToTop().
QWasmWindowStack::const_reverse_iterator QWasmWindowStack::rbegin | ( | ) | const |
Definition at line 168 of file qwasmwindowstack.cpp.
References QList< T >::begin().
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().
Referenced by QWasmWindowTreeNode::onParentChanged().
QWasmWindowStack::const_reverse_iterator QWasmWindowStack::rend | ( | ) | const |
Definition at line 173 of file qwasmwindowstack.cpp.
References QList< T >::end().
size_t QWasmWindowStack::size | ( | ) | const |
Definition at line 183 of file qwasmwindowstack.cpp.
References QList< T >::size().
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().
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.
Referenced by QWasmWindowTreeNode::onPositionPreferenceChanged().