tpScreen类
SingleGUI
2025-07-05
继承关系
基础信息
头文件: | include <tpScreen.h> |
---|---|
Cmake: | None |
发布版本: | V0.1.0 |
继承类: | tpChildWidget |
派生类: | tpDialog tpFixScreen |
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) | ||
setRotateEnable(bool enabled=false) | ||
rotateEnable() | ||
setRotate(ItpRotateType type) | ||
rotate() | ||
setRect(const int32_t &x, const int32_t &y, const uint32_t &w, const uint32_t &h) override | ||
setSize(const uint32_t &width, const uint32_t &height) override | 设置窗口宽高 | |
setWidth(const uint32_t &width) override | 设置窗口宽度 | |
setHeight(const uint32_t &height) override | 设置窗口高度 | |
move(int32_t x, int32_t y) override | 设置窗口坐标,以父窗口左上角顶点为(0,0)坐标 | |
setBeMoved(bool moved=false) | ||
moved() | ||
setAlpha(const uint8_t &alpha=0xff) override | 设置窗体透明度,窗体及内部组件均会被影响 | |
setColorKey(bool enable=false, uint32_t colorKey=0) | ||
setColorKeyEnable(bool enable=false) | ||
bringToTop() | ||
bringToBottom() | ||
update(tpRect &rect, bool clip=true, bool onlyBlit=false, bool sync=false) | ||
update(ItpRect &rect, bool clip=true, bool onlyBlit=false, bool sync=false) | ||
update(ItpRect *rect, bool clip=true, bool onlyBlit=false, bool sync=false) | ||
update(int32_t x, int32_t y, int32_t w, int32_t h, bool clip=true, bool onlyBlit=false, bool sync=false) | ||
update(bool clip=true, bool onlyBlit=false, bool sync=false) | ||
syncUpdate(bool clip=true, bool onlyBlit=false) | ||
virtual tpList< tpObject * > & | objectList() | |
objectSets() | 获取object类内部数据 | |
objectType() | 获取对象类型,一般禁止重写 | |
objectLayer() | ||
objectSysID() | ||
objectActive() | 对象 | |
setParent(tpObject *parent) | ||
virtual tpObject * | parent() | |
virtual tpObject * | topObject() | |
deleteLater() override | 删除自己,用于UI组件的删除,不会立即删除在下一个时间循环删除该指针 | |
returns() | ||
screenSize() | 获取widget所在屏幕的屏幕尺寸 | |
screenWidth() | ||
screenHeight() | ||
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
点击查看...
设置窗口显隐
virtual
bool tpScreen::actived()
暂无注释...
virtual
void tpScreen::setText(const char *text=nullptr)
暂无注释...
virtual
void tpScreen::setText(const tpString &text)
暂无注释...
virtual
void tpScreen::setRotateEnable(bool enabled=false)
暂无注释...
virtual
bool tpScreen::rotateEnable()
暂无注释...
virtual
void tpScreen::setRotate(ItpRotateType type)
暂无注释...
virtual
ItpRotateType tpScreen::rotate()
暂无注释...
virtual
void tpScreen::setRect(const int32_t &x, const int32_t &y, const uint32_t &w, const uint32_t &h) override
暂无注释...
virtual
void tpScreen::setSize(const uint32_t &width, const uint32_t &height) override
点击查看...
设置窗口宽高
virtual
void tpScreen::setWidth(const uint32_t &width) override
点击查看...
设置窗口宽度
virtual
void tpScreen::setHeight(const uint32_t &height) override
点击查看...
设置窗口高度
virtual
void tpScreen::move(int32_t x, int32_t y) override
点击查看...
设置窗口坐标,以父窗口左上角顶点为(0,0)坐标
virtual
void tpScreen::setBeMoved(bool moved=false)
暂无注释...
virtual
bool tpScreen::moved()
暂无注释...
virtual
void tpScreen::setAlpha(const uint8_t &alpha=0xff) override
点击查看...
设置窗体透明度,窗体及内部组件均会被影响
virtual
void tpScreen::setColorKey(bool enable=false, uint32_t colorKey=0)
暂无注释...
virtual
void tpScreen::setColorKeyEnable(bool enable=false)
暂无注释...
virtual
void tpScreen::bringToTop()
暂无注释...
virtual
void tpScreen::bringToBottom()
暂无注释...
virtual
void tpScreen::update(tpRect &rect, bool clip=true, bool onlyBlit=false, bool sync=false)
暂无注释...
virtual
void tpScreen::update(ItpRect &rect, bool clip=true, bool onlyBlit=false, bool sync=false)
暂无注释...
virtual
void tpScreen::update(ItpRect *rect, bool clip=true, bool onlyBlit=false, bool sync=false)
暂无注释...
virtual
void tpScreen::update(int32_t x, int32_t y, int32_t w, int32_t h, bool clip=true, bool onlyBlit=false, bool sync=false)
暂无注释...
virtual
void tpScreen::update(bool clip=true, bool onlyBlit=false, bool sync=false)
暂无注释...
virtual
void tpScreen::syncUpdate(bool clip=true, bool onlyBlit=false)
暂无注释...
virtual
tpList< tpObject * > & tpScreen::objectList()
暂无注释...
virtual
IPitpObject * tpScreen::objectSets()
点击查看...
获取object类内部数据
返回值:
数据指针
virtual
ItpObjectType tpScreen::objectType()
点击查看...
获取对象类型,一般禁止重写
返回值:
对象类型
virtual
ItpObjectSysLayer tpScreen::objectLayer()
暂无注释...
virtual
int32_t tpScreen::objectSysID()
暂无注释...
virtual
bool tpScreen::objectActive()
点击查看...
对象
virtual
void tpScreen::setParent(tpObject *parent)
暂无注释...
virtual
tpObject * tpScreen::parent()
暂无注释...
virtual
tpObject * tpScreen::topObject()
暂无注释...
virtual
void tpScreen::deleteLater() override
点击查看...
删除自己,用于UI组件的删除,不会立即删除在下一个时间循环删除该指针
virtual
bool tpScreen::returns()
暂无注释...
virtual
ItpSize tpScreen::screenSize()
点击查看...
获取widget所在屏幕的屏幕尺寸
返回值:
屏幕尺寸
virtual
int32_t tpScreen::screenWidth()
暂无注释...
virtual
int32_t tpScreen::screenHeight()
暂无注释...
int32_t tpScreen::dispatchEvent(void *event)
点击查看...
外部禁止调用