|
using | FileSystem = ocu::filesystem<Asset, FileManager> |
|
using | File = FileSystem::file |
|
using | Path = std::filesystem::path |
|
using | FileID = FileSystem::file_id |
|
using | CreateFunc = Asset* (*)(const Path&) |
|
using | LoadFunc = Asset* (*)(const Path&) |
|
using | ImportFunc = Asset* (*)(const Path&, const Path&) |
|
|
void | DrawMenu () override |
| DrawMenu function for when the EditorWindow Menu is being drawn.
|
|
void | DrawWindow () override |
| DrawWindow function for when the EditorWindow is being drawn.
|
|
FileID | CurrentDirectory () const |
|
void | CurrentDirectory (FileID id) |
|
FileID | Create (const std::string &name) |
|
FileID | Import (const Path &path) |
|
FileID | LoadDirectory (const Path &path) |
|
void | CloseDirectory (FileID dir) |
|
FileID | Get (const Path &path) const |
|
File & | Get (FileID id) |
|
const File & | Get (FileID id) const |
|
FileID | Parent (FileID id) const |
|
bool | AnyDirty () |
|
void | SaveAll () |
|
void | Open () |
| Open the EditorWindow.
|
|
void | Draw () |
| Draw the EditorWindow.
|
|
void | Close () |
| Close the EditorWindow.
|
|
bool | IsOpen () const |
| Check if the EditorWindow is open.
|
|
void | SetFlags (ImGuiWindowFlags flags) |
|
void | ClearFlags (ImGuiWindowFlags flags) |
|
void | ToggleFlags (ImGuiWindowFlags flags) |
|
bool | CheckFlag (ImGuiWindowFlags flag) const |
|
bool | HasMenuBar () const |
|
|
static Path | GetHomeDirectory () |
|
static void | Register (const std::filesystem::path &path, const std::vector< std::string > &extension, CreateFunc create, LoadFunc load, ImportFunc import) |
|
|
friend | FileSystem |
|
const std::string | Title |
| Title for the EditorWindow.
|
|
|
| EditorWindow (const std::string &title, ImGuiWindowFlags flags) |
|
virtual void | OnOpen () |
| OnOpen callback for when the EditorWindow is opened.
|
|
virtual void | OnClose () |
| OnClose callback for when the EditorWindow is closed.
|
|
◆ DrawMenu()
void FileManager::DrawMenu |
( |
| ) |
|
|
overridevirtual |
◆ DrawWindow()
void FileManager::DrawWindow |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files:
- Include/FileSystem/FileManager.h
- Source/FileSystem/FileManager.cpp