tpProgressBar类
GUIFramework
2025-07-05
继承关系
基础信息
头文件: | include <tpProgressBar.h> |
---|---|
Cmake: | None |
发布版本: | V0.1.0 |
继承类: | tpChildWidget |
派生类: |
Public 成员函数
tpProgressBar(tpChildWidget *parent) | ||
---|---|---|
~tpProgressBar() | ||
setTextVisible(const bool &visible) | ||
setMax(const uint32_t &max) | ||
setMin(const uint32_t &min) | ||
setValue(const uint32_t &value) | ||
setBackgroundColor(const int32_t &color) | ||
setFillColor(const int32_t &color) | ||
setNoBorder(const bool &noBorder=true) | 设置是否无边框线,默认为无边框 | |
setBorderColor(const int32_t &color) | 设置边框颜色 |
Protected成员函数
onPaintEvent(tpObjectPaintEvent *event) override | 绘制事件,禁止在该函数调用 paint和update函数 |
---|
成员函数说明
tpProgressBar::tpProgressBar(tpChildWidget *parent)
暂无注释...
tpProgressBar::~tpProgressBar()
暂无注释...
void tpProgressBar::setTextVisible(const bool &visible)
暂无注释...
void tpProgressBar::setMax(const uint32_t &max)
暂无注释...
void tpProgressBar::setMin(const uint32_t &min)
暂无注释...
void tpProgressBar::setValue(const uint32_t &value)
暂无注释...
void tpProgressBar::setBackgroundColor(const int32_t &color)
暂无注释...
void tpProgressBar::setFillColor(const int32_t &color)
暂无注释...
void tpProgressBar::setNoBorder(const bool &noBorder=true)
点击查看...
设置是否无边框线,默认为无边框
void tpProgressBar::setBorderColor(const int32_t &color)
点击查看...
设置边框颜色
virtual
bool tpProgressBar::onPaintEvent(tpObjectPaintEvent *event) override
点击查看...
绘制事件,禁止在该函数调用 paint和update函数
返回值:
返回true继续执行子控件绘制