system directory path manager More...
#include <MRSystemPath.h>
Public Types | |
enum class | Directory { Resources , Fonts , Plugins , PythonModules , Count } |
directory category More... | |
enum class | SystemFontType { Regular , Bold , Italic , BoldItalic , Count } |
using | SystemFontPaths = std::array<std::filesystem::path, size_t( SystemFontType::Count )> |
Static Public Member Functions | |
static MRMESH_API Expected< std::filesystem::path > | getExecutablePath () |
get the current executable's file path | |
static MRMESH_API Expected< std::filesystem::path > | getLibraryPath () |
get the MRMesh binary's file path | |
static MRMESH_API Expected< std::filesystem::path > | getExecutableDirectory () |
get the current executable's directory path | |
static MRMESH_API Expected< std::filesystem::path > | getLibraryDirectory () |
get the MRMesh binary's directory path | |
static MRMESH_API std::filesystem::path | getDirectory (Directory dir) |
get the directory path for specified category | |
static MRMESH_API void | overrideDirectory (Directory dir, const std::filesystem::path &path) |
override the directory path for specified category, useful for custom configurations | |
static std::filesystem::path | getResourcesDirectory () |
get the resource files' directory path | |
static std::filesystem::path | getFontsDirectory () |
get the font files' directory path | |
static std::filesystem::path | getPluginsDirectory () |
get the plugin binaries' directory path | |
static std::filesystem::path | getPythonModulesDirectory () |
get the Python modules' binaries' directory path | |
static MRMESH_API const std::vector< SystemFontPaths > & | getSystemFonts () |
get name all system fonts that have italics, bold, bold italics | |
system directory path manager
using MR::SystemPath::SystemFontPaths = std::array<std::filesystem::path, size_t( SystemFontType::Count )> |
|
strong |
|
strong |
|
static |
get the directory path for specified category
|
static |
get the current executable's directory path
|
static |
get the current executable's file path
|
inlinestatic |
get the font files' directory path
|
static |
get the MRMesh binary's directory path
|
static |
get the MRMesh binary's file path
|
inlinestatic |
get the plugin binaries' directory path
|
inlinestatic |
get the Python modules' binaries' directory path
|
inlinestatic |
get the resource files' directory path
|
static |
get name all system fonts that have italics, bold, bold italics
|
static |
override the directory path for specified category, useful for custom configurations