|
QtCanpool 3.3.0
|
The state behind QxToastManager: the host, the stack and the placement rules. 更多...
#include <qxapp/qxtoastmanager_p.h>
Public 成员函数 | |
| QxToastManagerPrivate () | |
| void | adopt (QxToast *toast) |
| Wires toast up and appends it to the stack. | |
| void | remove (QxToast *toast) |
| Takes toast out of the stack and lets it fade out. | |
| void | relayout () |
| Places every toast of the stack along the anchored edges of the host. | |
| int | plateWidth () const |
| Width of the plates, the host and the requested maximum taken into account. | |
Public 属性 | |
| QPointer< QWidget > | m_host |
| QList< QxToast * > | m_toasts |
| int | m_maxVisible = 3 |
| QxToastManager::Position | m_position = QxToastManager::TopRight |
| int | m_margin = 12 |
| int | m_spacing = 8 |
| int | m_maxWidth = 360 |
| int | m_fadeDuration = QxToast::DefaultFadeDuration |
The state behind QxToastManager: the host, the stack and the placement rules.
The stack is a plain list of live toasts, oldest first - the order they are stacked in, and the order eviction takes them out in. It is the only thing that decides what is on screen, which is why every other part of the class is built around keeping it exactly in step with the widgets.
在文件 qxtoastmanager_p.h 第 23 行定义.
|
default |
| void QxApp::QxToastManagerPrivate::adopt | ( | QxToast * | toast | ) |
Wires toast up and appends it to the stack.
在文件 qxtoastmanager.cpp 第 30 行定义.
| int QxApp::QxToastManagerPrivate::plateWidth | ( | ) | const |
Width of the plates, the host and the requested maximum taken into account.
在文件 qxtoastmanager.cpp 第 105 行定义.
| void QxApp::QxToastManagerPrivate::relayout | ( | ) |
Places every toast of the stack along the anchored edges of the host.
在文件 qxtoastmanager.cpp 第 69 行定义.
| void QxApp::QxToastManagerPrivate::remove | ( | QxToast * | toast | ) |
Takes toast out of the stack and lets it fade out.
Does nothing when it is not in it.
在文件 qxtoastmanager.cpp 第 49 行定义.
| int QxApp::QxToastManagerPrivate::m_fadeDuration = QxToast::DefaultFadeDuration |
在文件 qxtoastmanager_p.h 第 44 行定义.
| QPointer<QWidget> QxApp::QxToastManagerPrivate::m_host |
在文件 qxtoastmanager_p.h 第 37 行定义.
| int QxApp::QxToastManagerPrivate::m_margin = 12 |
在文件 qxtoastmanager_p.h 第 41 行定义.
| int QxApp::QxToastManagerPrivate::m_maxVisible = 3 |
在文件 qxtoastmanager_p.h 第 39 行定义.
| int QxApp::QxToastManagerPrivate::m_maxWidth = 360 |
在文件 qxtoastmanager_p.h 第 43 行定义.
| QxToastManager::Position QxApp::QxToastManagerPrivate::m_position = QxToastManager::TopRight |
在文件 qxtoastmanager_p.h 第 40 行定义.
| int QxApp::QxToastManagerPrivate::m_spacing = 8 |
在文件 qxtoastmanager_p.h 第 42 行定义.
| QList<QxToast *> QxApp::QxToastManagerPrivate::m_toasts |
在文件 qxtoastmanager_p.h 第 38 行定义.