dl
dl::UI::FileExplorer类 参考

ui文件浏览器 更多...

#include <dl_ui_file_explorer.h>

继承自 dl::UI::Window .

Public 成员函数

void SetOnlyFolder (bool only_folder)
 
void SetPathCurrent (std::string_view path)
 设置当前目录
 
void SetTargetName (std::string_view name)
 
std::string GetPathCurrent ()
 当前显示的目录
 
std::string GetPathSelect ()
 当前选中的目录(没选中则返回GetPathCurrent)
 
void Refresh ()
 
virtual void Update () override
 帧函数 @info 子类重载后,需要调用 Window::Update()
 
 ~FileExplorer ()
 
- 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 FileExplorer * Create (UI::Text *txt_path, UI::ListBox *lst, UI::ListBox *lst_root)
 创建窗口
 

额外继承的成员函数

- Protected 成员函数 继承自 dl::UI::Window
 Window ()
 
- Protected 属性 继承自 dl::UI::Window
Panel * _panel
 

详细描述

ui文件浏览器

在文件 dl_ui_file_explorer.h 第 24 行定义.

构造及析构函数说明

◆ ~FileExplorer()

dl::UI::FileExplorer::~FileExplorer ( )
inline

在文件 dl_ui_file_explorer.h 第 75 行定义.

成员函数说明

◆ Create()

static FileExplorer * dl::UI::FileExplorer::Create ( UI::Text * txt_path,
UI::ListBox * lst,
UI::ListBox * lst_root )
inlinestatic

创建窗口

参数
[in]panel元素模板

在文件 dl_ui_file_explorer.h 第 32 行定义.

◆ GetPathCurrent()

std::string dl::UI::FileExplorer::GetPathCurrent ( )
inline

当前显示的目录

在文件 dl_ui_file_explorer.h 第 58 行定义.

◆ GetPathSelect()

std::string dl::UI::FileExplorer::GetPathSelect ( )
inline

当前选中的目录(没选中则返回GetPathCurrent)

在文件 dl_ui_file_explorer.h 第 61 行定义.

◆ Refresh()

void dl::UI::FileExplorer::Refresh ( )

◆ SetOnlyFolder()

void dl::UI::FileExplorer::SetOnlyFolder ( bool only_folder)
inline

在文件 dl_ui_file_explorer.h 第 42 行定义.

◆ SetPathCurrent()

void dl::UI::FileExplorer::SetPathCurrent ( std::string_view path)
inline

设置当前目录

在文件 dl_ui_file_explorer.h 第 47 行定义.

◆ SetTargetName()

void dl::UI::FileExplorer::SetTargetName ( std::string_view name)
inline

在文件 dl_ui_file_explorer.h 第 52 行定义.

◆ Update()

virtual void dl::UI::FileExplorer::Update ( )
overridevirtual

帧函数 @info 子类重载后,需要调用 Window::Update()

重载 dl::UI::Window .


该类的文档由以下文件生成: