QtCanpool 3.3.0
载入中...
搜索中...
未找到
qxtoastmanager_p.h
浏览该文件的文档.
1
5#pragma once
6
7#include "qxapp_global.h"
8#include "qxtoastmanager.h"
9
10#include <QtCore/QList>
11#include <QtCore/QPointer>
12
14
24{
26public:
29 void adopt(QxToast *toast);
31 void remove(QxToast *toast);
33 void relayout();
35 int plateWidth() const;
36public:
37 QPointer<QWidget> m_host;
38 QList<QxToast *> m_toasts;
39 int m_maxVisible = 3;
40 QxToastManager::Position m_position = QxToastManager::TopRight;
41 int m_margin = 12;
42 int m_spacing = 8;
43 int m_maxWidth = 360;
44 int m_fadeDuration = QxToast::DefaultFadeDuration;
45};
46
The state behind QxToastManager: the host, the stack and the placement rules.
The stack of toasts of one window.
Position
The corner of the host the stack is anchored to.
One short message, shown over the window it belongs to and gone a few seconds later.
Definition qxtoast.h:54
#define QX_APP_END_NAMESPACE
#define QX_DECLARE_PUBLIC(Class)
#define QX_APP_BEGIN_NAMESPACE