CBlueUI  
C++ 跨平台跨框架的数据可视化工具
载入中...
搜索中...
未找到
BUI::CToastBox类 参考

struct  ToastBoxItem

Public 成员函数

 CToastBox ()
 ~CToastBox ()
void AddColorMap (LPCTSTR image_id, const GColor &col)
 添加等级颜色映射关系
void ClearColorMap ()
 清空等级颜色映射关系
ToastBoxItem GetToastBoxItem (UINT level) const
 获得顶层UI控件对象。可用于开发者的定制控件风格。如颜色,字体大小。 如需更高程序的定制化。可自行封装UI模板
void Clear (BOOL is_free=FALSE)
 清除所有弹窗
void PopupText (uint32_t id, IManageHandler *manager, LPCTSTR image_id, LPCTSTR msg, int len=-1, int hide_delay=1000, BOOL update=FALSE, int anim_time=0, int anim_angle=15)
 弹出自动延时隐藏消息框
void PopupTextA (uint32_t id, IManageHandler *manager, LPCSTR image_id, LPCSTR msg, int len=-1, int hide_delay=1000, BOOL update=FALSE, int anim_time=0, int anim_angle=15)
void PopupTextW (uint32_t id, IManageHandler *manager, LPCWSTR image_id, LPCWSTR msg, int len=-1, int hide_delay=1000, BOOL update=FALSE, int anim_time=0, int anim_angle=15)

构造及析构函数说明

◆ CToastBox()

BUI::CToastBox::CToastBox ( )

◆ ~CToastBox()

BUI::CToastBox::~CToastBox ( )

成员函数说明

◆ AddColorMap()

void BUI::CToastBox::AddColorMap ( LPCTSTR image_id,
const GColor & col )

添加等级颜色映射关系

◆ Clear()

void BUI::CToastBox::Clear ( BOOL is_free = FALSE)

清除所有弹窗

参数
is_free:若为TRUE,释放所有占用内存;若为FALSE,仅关闭所有弹窗。

◆ ClearColorMap()

void BUI::CToastBox::ClearColorMap ( )

清空等级颜色映射关系

◆ GetToastBoxItem()

ToastBoxItem BUI::CToastBox::GetToastBoxItem ( UINT level) const

获得顶层UI控件对象。可用于开发者的定制控件风格。如颜色,字体大小。 如需更高程序的定制化。可自行封装UI模板

◆ PopupText()

void BUI::CToastBox::PopupText ( uint32_t id,
IManageHandler * manager,
LPCTSTR image_id,
LPCTSTR msg,
int len = -1,
int hide_delay = 1000,
BOOL update = FALSE,
int anim_time = 0,
int anim_angle = 15 )

弹出自动延时隐藏消息框

参数
id不同的id,拥有不同的弹窗实体。相同的id会覆盖内容。若(id == 0),则使用msg自动以哈希值为id
manager消息弹出的目标位置。为NULL时,表示在上次的位置弹出
image_id图标id
msg消息内容
len消息内容长度
hide_delay超过指定时长(毫秒)后自动隐藏
anim_time下一帧图标动画等待时长
anim_angle每一帧图标动画旋转角度步长

◆ PopupTextA()

void BUI::CToastBox::PopupTextA ( uint32_t id,
IManageHandler * manager,
LPCSTR image_id,
LPCSTR msg,
int len = -1,
int hide_delay = 1000,
BOOL update = FALSE,
int anim_time = 0,
int anim_angle = 15 )

◆ PopupTextW()

void BUI::CToastBox::PopupTextW ( uint32_t id,
IManageHandler * manager,
LPCWSTR image_id,
LPCWSTR msg,
int len = -1,
int hide_delay = 1000,
BOOL update = FALSE,
int anim_time = 0,
int anim_angle = 15 )
鄂公网安备42018502007752 鄂ICP备2024082886
Copyright © 2026 · CBlueStudio 版权所有