TpNotificationItem 类
V0.2.1TpGUIWidgets
2025-11-14
继承关系
基础信息
| 头文件: | include <TpNotificationItem.h> |
|---|---|
| Cmake: | None |
| 发布版本: | V0.2.1 |
| 继承类: | TpWidget |
| 派生类: |
Public 类型
struct TpNotificationItem::NotificationItemData
| 类型 | 名称 | 描述 |
|---|---|---|
| TpString | messageId | |
| TpString | appId | |
| TpString | appName | |
| TpString | timeStr | |
| TpString | titleText | |
| TpString | contentText |
Public 成员函数
| TpNotificationItem(TpWidget *parent=nullptr) | ||
|---|---|---|
| ~TpNotificationItem() | ||
| setItemData(const NotificationItemData &data) | ||
| const NotificationItemData & | itemData() | |
| onPaintEvent(TpPaintEvent *event) override | 绘制事件,禁止在该函数调用 paint和update函数 | |
| onMousePressEvent(TpMouseEvent *event) override | ||
| onMouseRleaseEvent(TpMouseEvent *event) override | ||
| onResizeEvent(TpResizeEvent *event) override |
成员函数说明
TpNotificationItem::TpNotificationItem(TpWidget *parent=nullptr)
暂无注释...
TpNotificationItem::~TpNotificationItem()
暂无注释...
void TpNotificationItem::setItemData(const NotificationItemData &data)
暂无注释...
const NotificationItemData & TpNotificationItem::itemData()
暂无注释...
virtual bool TpNotificationItem::onPaintEvent(TpPaintEvent *event) override
绘制事件,禁止在该函数调用 paint和update函数...
绘制事件,禁止在该函数调用 paint和update函数
参数:event: 绘制事件指针
返回值:返回true继续执行子控件绘制
