QtCanpool 3.3.0
载入中...
搜索中...
未找到
QxApp::QxToastManagerPrivate类 参考

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 行定义.

构造及析构函数说明

◆ QxToastManagerPrivate()

QxApp::QxToastManagerPrivate::QxToastManagerPrivate ( )
default

成员函数说明

◆ adopt()

void QxApp::QxToastManagerPrivate::adopt ( QxToast *  toast)

Wires toast up and appends it to the stack.

在文件 qxtoastmanager.cpp 第 30 行定义.

◆ plateWidth()

int QxApp::QxToastManagerPrivate::plateWidth ( ) const

Width of the plates, the host and the requested maximum taken into account.

在文件 qxtoastmanager.cpp 第 105 行定义.

◆ relayout()

void QxApp::QxToastManagerPrivate::relayout ( )

Places every toast of the stack along the anchored edges of the host.

在文件 qxtoastmanager.cpp 第 69 行定义.

◆ remove()

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 行定义.

类成员变量说明

◆ m_fadeDuration

int QxApp::QxToastManagerPrivate::m_fadeDuration = QxToast::DefaultFadeDuration

在文件 qxtoastmanager_p.h 第 44 行定义.

◆ m_host

QPointer<QWidget> QxApp::QxToastManagerPrivate::m_host

在文件 qxtoastmanager_p.h 第 37 行定义.

◆ m_margin

int QxApp::QxToastManagerPrivate::m_margin = 12

在文件 qxtoastmanager_p.h 第 41 行定义.

◆ m_maxVisible

int QxApp::QxToastManagerPrivate::m_maxVisible = 3

在文件 qxtoastmanager_p.h 第 39 行定义.

◆ m_maxWidth

int QxApp::QxToastManagerPrivate::m_maxWidth = 360

在文件 qxtoastmanager_p.h 第 43 行定义.

◆ m_position

QxToastManager::Position QxApp::QxToastManagerPrivate::m_position = QxToastManager::TopRight

在文件 qxtoastmanager_p.h 第 40 行定义.

◆ m_spacing

int QxApp::QxToastManagerPrivate::m_spacing = 8

在文件 qxtoastmanager_p.h 第 42 行定义.

◆ m_toasts

QList<QxToast *> QxApp::QxToastManagerPrivate::m_toasts

在文件 qxtoastmanager_p.h 第 38 行定义.


该类的文档由以下文件生成: