TpScreen 类
V0.2.1TpGUIScreen
2025-11-14
继承关系
基础信息
| 头文件: | include <TpScreen.h> |
|---|---|
| Cmake: | None |
| 发布版本: | V0.2.1 |
| 继承类: | TpWidget |
| 派生类: | TpDialog TpMainWindow |
Public 成员函数
| TpScreen(const char *type="tinyPiX_WM_Screen", int32_t x=0, int32_t y=0, uint32_t w=0, uint32_t h=0) | ||
|---|---|---|
| ~TpScreen() | ||
| setVisible(bool visible=true) override | 设置窗口显隐 | |
| actived() | ||
| setText(const char *text=nullptr) | ||
| setText(const TpString &text) | ||
| setRect(const TpRect &rect) override | 设置widget矩形区域 | |
| setRect(int32_t x, int32_t y, int32_t w, int32_t h) override | ||
| setSize(const int32_t &width, const int32_t &height) override | 设置窗口宽高 | |
| setWidth(const int32_t &width) override | 设置窗口宽度 | |
| setHeight(const int32_t &height) override | 设置窗口高度 | |
| move(int32_t x, int32_t y) override | 设置窗口坐标,以父窗口左上角顶点为(0,0)坐标 | |
| virtual const TpPoint | pos() override | 获取窗口当前坐标 |
| setBeMoved(bool moved=false) | ||
| moved() | ||
| bringToTop() override | 将当前组件调整为父组件下的最顶级组件 | |
| bringToBottom() override | 将当前组件调整为父组件下的最底层组件 | |
| update(int32_t x, int32_t y, int32_t w, int32_t h, bool onlyBlit=false) override | ||
| update(bool onlyBlit=false) override | ||
| virtual Tp::TpObjectType | objectType() | 获取对象类型,一般禁止重写 |
| virtual Tp::TpObjectSysLayer | objectLayer() | |
| objectSysID() | ||
| objectActive() | 对象 | |
| setParent(TpObject *parent) | 重设当前窗体的父窗体 | |
| virtual TpObject * | parent() | |
| virtual TpObject * | topObject() | |
| deleteLater() override | 删除自己,用于UI组件的删除,不会立即删除在下一个时间循环删除该指针 | |
| returns() | ||
| dispatchEvent(void *event) | 外部禁止调用 |
成员函数说明
TpScreen::TpScreen(const char *type="tinyPiX_WM_Screen", int32_t x=0, int32_t y=0, uint32_t w=0, uint32_t h=0)
暂无注释...
virtual TpScreen::~TpScreen()
暂无注释...
virtual void TpScreen::setVisible(bool visible=true) override
设置窗口显隐...
设置窗口显隐
参数:visible: true显示,false隐藏
virtual bool TpScreen::actived()
暂无注释...
virtual void TpScreen::setText(const char *text=nullptr)
暂无注释...
virtual void TpScreen::setText(const TpString &text)
暂无注释...
virtual void TpScreen::setRect(const TpRect &rect) override
设置widget矩形区域...
设置widget矩形区域
参数:rect: X、Y、W、H
virtual void TpScreen::setRect(int32_t x, int32_t y, int32_t w, int32_t h) override
暂无注释...
virtual void TpScreen::setSize(const int32_t &width, const int32_t &height) override
设置窗口宽高...
设置窗口宽高
参数:width:
参数:height:
virtual void TpScreen::setWidth(const int32_t &width) override
设置窗口宽度...
设置窗口宽度
参数:width: 宽度值,单位px
virtual void TpScreen::setHeight(const int32_t &height) override
设置窗口高度...
设置窗口高度
参数:height: 高度值,单位px
virtual void TpScreen::move(int32_t x, int32_t y) override
设置窗口坐标,以父窗口左上角顶点为(0,0)坐标...
设置窗口坐标,以父窗口左上角顶点为(0,0)坐标
参数:x: X坐标
参数:y: Y坐标
virtual const TpPoint TpScreen::pos() override
获取窗口当前坐标...
获取窗口当前坐标
返回值:返回窗口当前坐标
virtual void TpScreen::setBeMoved(bool moved=false)
暂无注释...
virtual bool TpScreen::moved()
暂无注释...
virtual void TpScreen::bringToTop() override
将当前组件调整为父组件下的最顶级组件...
将当前组件调整为父组件下的最顶级组件
virtual void TpScreen::bringToBottom() override
将当前组件调整为父组件下的最底层组件...
将当前组件调整为父组件下的最底层组件
virtual void TpScreen::update(int32_t x, int32_t y, int32_t w, int32_t h, bool onlyBlit=false) override
暂无注释...
virtual void TpScreen::update(bool onlyBlit=false) override
暂无注释...
virtual Tp::TpObjectType TpScreen::objectType()
获取对象类型,一般禁止重写...
获取对象类型,一般禁止重写
返回值:对象类型
virtual Tp::TpObjectSysLayer TpScreen::objectLayer()
暂无注释...
virtual int32_t TpScreen::objectSysID()
暂无注释...
virtual bool TpScreen::objectActive()
对象...
对象
返回值:
virtual void TpScreen::setParent(TpObject *parent)
重设当前窗体的父窗体...
重设当前窗体的父窗体
参数:parent: 父窗体指针
virtual TpObject * TpScreen::parent()
暂无注释...
virtual TpObject * TpScreen::topObject()
暂无注释...
virtual void TpScreen::deleteLater() override
删除自己,用于UI组件的删除,不会立即删除在下一个时间循环删...
删除自己,用于UI组件的删除,不会立即删除在下一个时间循环删除该指针
virtual bool TpScreen::returns()
暂无注释...
int32_t TpScreen::dispatchEvent(void *event)
外部禁止调用...
外部禁止调用
参数:event:
返回值:
