Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QWasmWindowStack< Window > Class Template Reference

#include <qwasmwindowstack.h>

Collaboration diagram for QWasmWindowStack< Window >:

Public Types

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

Public Member Functions

 QWasmWindowStack (WindowOrderChangedCallbackType topWindowChangedCallback)
 ~QWasmWindowStack ()
void pushWindow (Window *window, PositionPreference position, bool insertAtRegionBegin=false, bool callCallbacks=true)
void removeWindow (Window *window, bool callCallbacks=true)
void raise (Window *window)
void lower (Window *window)
void windowPositionPreferenceChanged (Window *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
WindowtopWindow () const
PositionPreference getWindowPositionPreference (typename StorageType::const_iterator windowIt, bool testStayAbove=true) const

Detailed Description

template<typename Window = QWasmWindow>
class QWasmWindowStack< Window >

Definition at line 35 of file qwasmwindowstack.h.

Member Typedef Documentation

◆ const_iterator

template<typename Window = QWasmWindow>
using QWasmWindowStack< Window >::const_iterator = typename StorageType::const_reverse_iterator

Definition at line 56 of file qwasmwindowstack.h.

◆ const_reverse_iterator

template<typename Window = QWasmWindow>
using QWasmWindowStack< Window >::const_reverse_iterator = typename StorageType::const_iterator

Definition at line 57 of file qwasmwindowstack.h.

◆ iterator

template<typename Window = QWasmWindow>
using QWasmWindowStack< Window >::iterator = typename StorageType::reverse_iterator

Definition at line 55 of file qwasmwindowstack.h.

◆ StorageType

template<typename Window = QWasmWindow>
using QWasmWindowStack< Window >::StorageType = QList<Window *>

Definition at line 53 of file qwasmwindowstack.h.

◆ WindowOrderChangedCallbackType

template<typename Window = QWasmWindow>
using QWasmWindowStack< Window >::WindowOrderChangedCallbackType = std::function<void()>

Definition at line 52 of file qwasmwindowstack.h.

Member Enumeration Documentation

◆ PositionPreference

template<typename Window = QWasmWindow>
enum class QWasmWindowStack::PositionPreference
strong
Enumerator
StayOnBottom 
Regular 
StayOnTop 
StayAboveTransientParent 

Definition at line 45 of file qwasmwindowstack.h.

Constructor & Destructor Documentation

◆ QWasmWindowStack()

template<typename Window = QWasmWindow>
QWasmWindowStack< Window >::QWasmWindowStack ( WindowOrderChangedCallbackType topWindowChangedCallback)
explicit

◆ ~QWasmWindowStack()

template<typename Window = QWasmWindow>
QWasmWindowStack< Window >::~QWasmWindowStack ( )

Member Function Documentation

◆ begin() [1/2]

template<typename Window = QWasmWindow>
iterator QWasmWindowStack< Window >::begin ( )

◆ begin() [2/2]

template<typename Window = QWasmWindow>
const_iterator QWasmWindowStack< Window >::begin ( ) const

◆ empty()

template<typename Window = QWasmWindow>
bool QWasmWindowStack< Window >::empty ( ) const

◆ end() [1/2]

template<typename Window = QWasmWindow>
iterator QWasmWindowStack< Window >::end ( )

◆ end() [2/2]

template<typename Window = QWasmWindow>
const_iterator QWasmWindowStack< Window >::end ( ) const

◆ getWindowPositionPreference()

template<typename Window = QWasmWindow>
PositionPreference QWasmWindowStack< Window >::getWindowPositionPreference ( typename StorageType::const_iterator windowIt,
bool testStayAbove = true ) const

◆ lower()

template<typename Window = QWasmWindow>
void QWasmWindowStack< Window >::lower ( Window * window)

◆ pushWindow()

template<typename Window = QWasmWindow>
void QWasmWindowStack< Window >::pushWindow ( Window * window,
PositionPreference position,
bool insertAtRegionBegin = false,
bool callCallbacks = true )

◆ raise()

template<typename Window = QWasmWindow>
void QWasmWindowStack< Window >::raise ( Window * window)

◆ rbegin()

template<typename Window = QWasmWindow>
const_reverse_iterator QWasmWindowStack< Window >::rbegin ( ) const

◆ removeWindow()

template<typename Window = QWasmWindow>
void QWasmWindowStack< Window >::removeWindow ( Window * window,
bool callCallbacks = true )

◆ rend()

template<typename Window = QWasmWindow>
const_reverse_iterator QWasmWindowStack< Window >::rend ( ) const

◆ size()

template<typename Window = QWasmWindow>
size_t QWasmWindowStack< Window >::size ( ) const

◆ topWindow()

template<typename Window = QWasmWindow>
Window * QWasmWindowStack< Window >::topWindow ( ) const

◆ windowPositionPreferenceChanged()

template<typename Window = QWasmWindow>
void QWasmWindowStack< Window >::windowPositionPreferenceChanged ( Window * window,
PositionPreference position )

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