OpenShaderDesigner 0.0.1
Loading...
Searching...
No Matches
OpenShaderDesigner::FileManager Class Reference
Inheritance diagram for OpenShaderDesigner::FileManager:
OpenShaderDesigner::EditorWindow

Classes

class  Asset
 
struct  Folder
 

Public Types

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&)
 

Public Member Functions

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 ()
 
- Public Member Functions inherited from OpenShaderDesigner::EditorWindow
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 Public Member Functions

static Path GetHomeDirectory ()
 
static void Register (const std::filesystem::path &path, const std::vector< std::string > &extension, CreateFunc create, LoadFunc load, ImportFunc import)
 

Public Attributes

friend FileSystem
 
- Public Attributes inherited from OpenShaderDesigner::EditorWindow
const std::string Title
 Title for the EditorWindow.
 

Additional Inherited Members

- Protected Member Functions inherited from OpenShaderDesigner::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.
 

Member Function Documentation

◆ DrawMenu()

void FileManager::DrawMenu ( )
overridevirtual

DrawMenu function for when the EditorWindow Menu is being drawn.

Reimplemented from OpenShaderDesigner::EditorWindow.

◆ DrawWindow()

void FileManager::DrawWindow ( )
overridevirtual

DrawWindow function for when the EditorWindow is being drawn.

Reimplemented from OpenShaderDesigner::EditorWindow.


The documentation for this class was generated from the following files: