ui列表框
更多...
#include <dl_ui_list_box.h>
ui列表框
在文件 dl_ui_list_box.h 第 24 行定义.
◆ ~ListBox()
| dl::UI::ListBox::~ListBox |
( |
| ) |
|
◆ Clone()
| ListBox * dl::UI::ListBox::Clone |
( |
| ) |
|
◆ Create()
| static ListBox * dl::UI::ListBox::Create |
( |
Panel * | item, |
|
|
size_t | num ) |
|
static |
创建列表框
- 参数
-
| [in] | panel | 元素模板 |
| [in] | num | 显示数量 |
- 注解
- 背景用于裁剪
◆ GetCoor()
| Coor * dl::UI::ListBox::GetCoor |
( |
| ) |
|
|
inline |
◆ GetCpt()
◆ GetPanel()
| Panel * dl::UI::ListBox::GetPanel |
( |
| ) |
|
|
inline |
◆ GetSelect()
| Value dl::UI::ListBox::GetSelect |
( |
| ) |
|
|
inline |
◆ GetSelectClick()
| Value dl::UI::ListBox::GetSelectClick |
( |
| ) |
|
|
inline |
◆ GetSelectClickDouble()
| Value dl::UI::ListBox::GetSelectClickDouble |
( |
| ) |
|
|
inline |
◆ GetSelectIndex()
| size_t dl::UI::ListBox::GetSelectIndex |
( |
| ) |
|
|
inline |
◆ GetSelectIndexClickDouble()
| size_t dl::UI::ListBox::GetSelectIndexClickDouble |
( |
| ) |
|
|
inline |
◆ IsPickup()
| bool dl::UI::ListBox::IsPickup |
( |
| ) |
|
◆ IsSelectChange()
| bool dl::UI::ListBox::IsSelectChange |
( |
| ) |
|
|
inline |
◆ Render()
| void dl::UI::ListBox::Render |
( |
| ) |
|
|
inline |
◆ SetBlankShow()
| void dl::UI::ListBox::SetBlankShow |
( |
bool | show | ) |
|
|
inline |
设置没有的元素显示逻辑
- 注解
- 例如 最大数量设为10,但只有4个元素。 当此变量设为false时,后面6个元素不会显示,这样避免显示背景。
在文件 dl_ui_list_box.h 第 166 行定义.
◆ SetElementDataAnchor()
| void dl::UI::ListBox::SetElementDataAnchor |
( |
const Position & | anchor | ) |
|
◆ SetElementDataPos()
| void dl::UI::ListBox::SetElementDataPos |
( |
const Position & | offset | ) |
|
◆ SetElementDataRunAble()
| void dl::UI::ListBox::SetElementDataRunAble |
( |
bool | able | ) |
|
|
inline |
◆ SetItemCallback()
| void dl::UI::ListBox::SetItemCallback |
( |
std::function< void(Panel *item, Value v)> | func | ) |
|
|
inline |
◆ SetItemData()
| void dl::UI::ListBox::SetItemData |
( |
std::vector< T > & | vec | ) |
|
|
inline |
◆ SetItemLocator()
| void dl::UI::ListBox::SetItemLocator |
( |
const Locator & | loc | ) |
|
|
inline |
◆ SetOrder()
| void dl::UI::ListBox::SetOrder |
( |
float | order | ) |
|
|
inline |
◆ SetScrollK()
| void dl::UI::ListBox::SetScrollK |
( |
Float | k | ) |
|
|
inline |
◆ Update()
| void dl::UI::ListBox::Update |
( |
| ) |
|
该类的文档由以下文件生成: