2016-06-07 04:17:40 +03:00
|
|
|
namespace ImGui
|
|
|
|
{
|
|
|
|
struct ImFileInfo
|
|
|
|
{
|
|
|
|
ImFileInfo(const char* name, int64_t size);
|
|
|
|
~ImFileInfo();
|
|
|
|
|
2016-06-07 06:13:03 +03:00
|
|
|
ImString Name;
|
2016-06-07 04:17:40 +03:00
|
|
|
int64_t Size;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ImFileList
|
|
|
|
{
|
2016-06-07 06:13:03 +03:00
|
|
|
typedef ImVector<ImFileInfo> FileInfoArray;
|
|
|
|
FileInfoArray FileList;
|
2016-06-07 04:17:40 +03:00
|
|
|
int Pos;
|
|
|
|
|
|
|
|
ImFileList(const char* path = ".")
|
|
|
|
: Pos(0)
|
|
|
|
{
|
|
|
|
ChDir(path);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ChDir(const char* path);
|
|
|
|
void Draw();
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace ImGui
|