|
dl
|
消息框 更多...
#include <dl_ui_msg_box.h>
继承自 dl::UI::Window .
Public 成员函数 | |
| Panel * | GetPanelButton () |
| 返回按钮组 @info 设置整体位置和按钮布局 | |
| virtual void | Update () override |
| 帧函数 @info 子类重载后,需要调用 Window::Update() | |
| void | SetClickClose (bool close) |
| 设置是否点击任意按钮关闭窗口 | |
| size_t | GetClickIndex () |
| 返回点击的按钮下标,不包含关闭按钮 | |
| size_t | GetOverOnceIndex () |
| 返回经过的按钮下标,不包含关闭按钮 | |
| void | Set (std::string_view title, std::string_view info, std::vector< std::string_view > all_btn) |
| 设置内容 | |
| ~MsgBox () | |
Public 成员函数 继承自 dl::UI::Window | |
| void | Render () |
| template<typename T> | |
| T * | Cast () |
| bool | IsPickup () |
| bool | IsClickClose () |
| float | GetOrder () |
| void | SetOrder (float order) |
| 设置绘制顺序 | |
| void | SetSize (const Position &size) |
| 设置大小 | |
| void | Center () |
| void | SetBackground (UI::Background *bg, bool auto_size=true) |
| 设置背景 | |
| UI::Background * | GetBackground () |
| void | SetButtonClose (UI::Button *btn) |
| 设置关闭按钮 | |
| UI::Button * | GetButtonClose () |
| void | SetVisible (bool visible) |
| 设置是否显示 | |
| bool | IsVisible () |
| void | SetWindowCache (bool cache) |
| void | SetWindowModal (bool modal) |
| Panel * | GetPanel () |
| Coor * | GetCoor () |
| void | RenderDebug () |
| void | ExFastSet () |
| 快速初始化到一般的样式,可作为用法参考 | |
| Components * | GetCpt () |
| virtual | ~Window () |
静态 Public 成员函数 | |
| static MsgBox * | Create (UI::Text *title, UI::Text *content, UI::Button *btn) |
| 创建窗口 | |
额外继承的成员函数 | |
Protected 成员函数 继承自 dl::UI::Window | |
| Window () | |
Protected 属性 继承自 dl::UI::Window | |
| Panel * | _panel |
消息框
在文件 dl_ui_msg_box.h 第 24 行定义.
| dl::UI::MsgBox::~MsgBox | ( | ) |
|
static |
创建窗口
| [in] | panel | 元素模板 |
| size_t dl::UI::MsgBox::GetClickIndex | ( | ) |
返回点击的按钮下标,不包含关闭按钮
| size_t dl::UI::MsgBox::GetOverOnceIndex | ( | ) |
返回经过的按钮下标,不包含关闭按钮
|
inline |
返回按钮组 @info 设置整体位置和按钮布局
在文件 dl_ui_msg_box.h 第 38 行定义.
| void dl::UI::MsgBox::Set | ( | std::string_view | title, |
| std::string_view | info, | ||
| std::vector< std::string_view > | all_btn ) |
设置内容
| [in] | title | 标题 |
| [in] | info | 内容 |
| [in] | btns | 按钮内容 |
|
inline |
|
overridevirtual |
帧函数 @info 子类重载后,需要调用 Window::Update()
重载 dl::UI::Window .