yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::FileEntry Struct Reference

Represents a file or folder in the file browser. More...

#include <file_browser.h>

Public Types

enum class  FileType {
  kDirectory , kAssembly , kSource , kHeader ,
  kText , kConfig , kJson , kImage ,
  kBinary , kUnknown
}
 

Public Attributes

std::string name
 
std::string full_path
 
bool is_directory
 
bool is_expanded = false
 
std::vector< FileEntrychildren
 
FileType file_type = FileType::kUnknown
 

Detailed Description

Represents a file or folder in the file browser.

Definition at line 17 of file file_browser.h.

Member Enumeration Documentation

◆ FileType

Enumerator
kDirectory 
kAssembly 
kSource 
kHeader 
kText 
kConfig 
kJson 
kImage 
kBinary 
kUnknown 

Definition at line 25 of file file_browser.h.

Member Data Documentation

◆ name

std::string yaze::editor::FileEntry::name

◆ full_path

std::string yaze::editor::FileEntry::full_path

◆ is_directory

bool yaze::editor::FileEntry::is_directory

◆ is_expanded

bool yaze::editor::FileEntry::is_expanded = false

Definition at line 21 of file file_browser.h.

Referenced by yaze::editor::FileBrowser::Refresh().

◆ children

std::vector<FileEntry> yaze::editor::FileEntry::children

Definition at line 22 of file file_browser.h.

Referenced by yaze::editor::FileBrowser::DrawEntry().

◆ file_type


The documentation for this struct was generated from the following file: