|
dl
|
ui进度条 更多...
#include <dl_ui_progress_bar.h>
Public 成员函数 | |
| ProgressBar * | Clone () |
| 复制一个,注意有些组件属性需要复制 | |
| void | Update () |
| void | Render () |
| bool | IsPickup () |
| void | SetSize (const Position &size) |
| 设置背景大小 | |
| void | SetOrder (float order) |
| 设置绘制顺序 | |
| Coor * | GetCoor () |
| Panel * | GetPanel () |
| 返回自身panel,可继续挂载其它ui | |
| void | SetElementData (const Align::Direction2 &hv, const Position &pos={}) |
| void | SetProgress (float progress) |
| 设置进度 [0, 1] | |
| void | SetProgressK (float progress_k) |
| 设置显示倍数 | |
| float | GetProgress () const |
| 返回当前进度 [0, 1] | |
| void | SetStringFormat (std::string_view fmt) |
| 设置进度文本格式({} 表示百分比整数),传空串则不自动更新文本 | |
| void | SetDir (Align::Dir4 dir) |
| 设置显示方向(进度从哪个方向开始填充) | |
| Align::Dir4 | GetDir () const |
| 返回显示方向 | |
| void | SetMidRect (RectF mid_rect) |
| 设置进度绘制范围 | |
| RectF | GetMidRect () const |
| 返回进度绘制范围 | |
| UI::Background * | GetBackground () |
| 返回背景(可为空) | |
| UI::Background * | GetMid () |
| 返回进度填充图(可为空) | |
| UI::Text * | GetText () |
| 返回进度文本(可为空) | |
| Components * | GetCpt () |
| ~ProgressBar () | |
静态 Public 成员函数 | |
| static ProgressBar * | Create (UI::Background *bg, UI::Background *mid, UI::Text *txt=nullptr) |
| 创建一个进度条 | |
ui进度条
在文件 dl_ui_progress_bar.h 第 34 行定义.
| dl::UI::ProgressBar::~ProgressBar | ( | ) |
| ProgressBar * dl::UI::ProgressBar::Clone | ( | ) |
复制一个,注意有些组件属性需要复制
|
static |
创建一个进度条
| bg | 背景 |
| mid | 进度填充图(按进度改变宽度) |
| txt | 进度文本(可为空) |
|
inline |
返回背景(可为空)
在文件 dl_ui_progress_bar.h 第 138 行定义.
|
inline |
在文件 dl_ui_progress_bar.h 第 82 行定义.
|
inline |
在文件 dl_ui_progress_bar.h 第 144 行定义.
|
inline |
返回显示方向
在文件 dl_ui_progress_bar.h 第 126 行定义.
|
inline |
返回进度填充图(可为空)
在文件 dl_ui_progress_bar.h 第 140 行定义.
|
inline |
返回进度绘制范围
在文件 dl_ui_progress_bar.h 第 135 行定义.
|
inline |
返回自身panel,可继续挂载其它ui
在文件 dl_ui_progress_bar.h 第 84 行定义.
|
inline |
返回当前进度 [0, 1]
在文件 dl_ui_progress_bar.h 第 114 行定义.
|
inline |
返回进度文本(可为空)
在文件 dl_ui_progress_bar.h 第 142 行定义.
|
inline |
在文件 dl_ui_progress_bar.h 第 61 行定义.
|
inline |
在文件 dl_ui_progress_bar.h 第 57 行定义.
| void dl::UI::ProgressBar::SetDir | ( | Align::Dir4 | dir | ) |
设置显示方向(进度从哪个方向开始填充)
|
inline |
在文件 dl_ui_progress_bar.h 第 86 行定义.
|
inline |
设置进度绘制范围
在文件 dl_ui_progress_bar.h 第 129 行定义.
|
inline |
设置绘制顺序
在文件 dl_ui_progress_bar.h 第 73 行定义.
|
inline |
设置进度 [0, 1]
在文件 dl_ui_progress_bar.h 第 99 行定义.
|
inline |
设置显示倍数
在文件 dl_ui_progress_bar.h 第 107 行定义.
|
inline |
设置背景大小
在文件 dl_ui_progress_bar.h 第 66 行定义.
|
inline |
设置进度文本格式({} 表示百分比整数),传空串则不自动更新文本
在文件 dl_ui_progress_bar.h 第 117 行定义.
|
inline |
在文件 dl_ui_progress_bar.h 第 53 行定义.