MeshLib C Docs
Loading...
Searching...
No Matches
MRSystemPath.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/common.h>
4#include <MRCMisc/exports.h>
5
6#include <stddef.h>
7#include <stdint.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13typedef struct MR_std_filesystem_path MR_std_filesystem_path; // Defined in `#include <MRCMisc/std_filesystem_path.h>`.
14typedef struct MR_std_vector_std_array_std_filesystem_path_4 MR_std_vector_std_array_std_filesystem_path_4; // Defined in `#include <MRCMisc/std_vector_std_array_std_filesystem_path_4.h>`.
15
16
20
23enum // MR_SystemPath_Directory
24{
35};
36
37// supported types of system fonts fonts
39enum // MR_SystemPath_SystemFontType
40{
46};
47
51
56
59
62
66
69
72
77
82
86MRC_API void MR_SystemPath_overrideDirectory(MR_SystemPath_Directory dir, const char *path, const char *path_end);
87
92
97
102
107
112
113#ifdef __cplusplus
114} // extern "C"
115#endif
struct MR_std_filesystem_path MR_std_filesystem_path
Definition MRSceneRoot.h:15
MRC_API MR_SystemPath * MR_SystemPath_ConstructFromAnother(MR_PassBy _other_pass_by, MR_SystemPath *_other)
int32_t MR_SystemPath_Directory
directory category
Definition MRSystemPath.h:22
MRC_API MR_std_filesystem_path * MR_SystemPath_getFontsDirectory(void)
MRC_API void MR_SystemPath_DestroyArray(const MR_SystemPath *_this)
Destroys a heap-allocated array of MR_SystemPath. Does nothing if the pointer is null.
struct MR_std_vector_std_array_std_filesystem_path_4 MR_std_vector_std_array_std_filesystem_path_4
Definition MRSystemPath.h:14
MRC_API MR_std_filesystem_path * MR_SystemPath_getPythonModulesDirectory(void)
MRC_API const MR_SystemPath * MR_SystemPath_OffsetPtr(const MR_SystemPath *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
@ MR_SystemPath_Directory_Fonts
fonts (.ttf, .otf)
Definition MRSystemPath.h:28
@ MR_SystemPath_Directory_PythonModules
Python modules (.pyd, .so, .dylib, .pyi)
Definition MRSystemPath.h:32
@ MR_SystemPath_Directory_Resources
resources (.json, .png)
Definition MRSystemPath.h:26
@ MR_SystemPath_Directory_Plugins
plugins (.dll, .so, .dylib)
Definition MRSystemPath.h:30
@ MR_SystemPath_Directory_Count
Python modules (.pyd, .so, .dylib, .pyi)
Definition MRSystemPath.h:34
MRC_API MR_std_filesystem_path * MR_SystemPath_getDirectory(MR_SystemPath_Directory dir)
MRC_API MR_SystemPath * MR_SystemPath_AssignFromAnother(MR_SystemPath *_this, MR_PassBy _other_pass_by, MR_SystemPath *_other)
MRC_API MR_std_filesystem_path * MR_SystemPath_getResourcesDirectory(void)
MRC_API void MR_SystemPath_overrideDirectory(MR_SystemPath_Directory dir, const char *path, const char *path_end)
@ MR_SystemPath_SystemFontType_Count
Definition MRSystemPath.h:45
@ MR_SystemPath_SystemFontType_Italic
Definition MRSystemPath.h:43
@ MR_SystemPath_SystemFontType_Regular
Definition MRSystemPath.h:41
@ MR_SystemPath_SystemFontType_BoldItalic
Definition MRSystemPath.h:44
@ MR_SystemPath_SystemFontType_Bold
Definition MRSystemPath.h:42
MRC_API MR_SystemPath * MR_SystemPath_DefaultConstructArray(size_t num_elems)
int32_t MR_SystemPath_SystemFontType
Definition MRSystemPath.h:38
MRC_API MR_std_filesystem_path * MR_SystemPath_getPluginsDirectory(void)
MRC_API void MR_SystemPath_Destroy(const MR_SystemPath *_this)
Destroys a heap-allocated instance of MR_SystemPath. Does nothing if the pointer is null.
MRC_API MR_SystemPath * MR_SystemPath_OffsetMutablePtr(MR_SystemPath *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API const MR_std_vector_std_array_std_filesystem_path_4 * MR_SystemPath_getSystemFonts(void)
MRC_API MR_SystemPath * MR_SystemPath_DefaultConstruct(void)
struct MR_SystemPath MR_SystemPath
Definition MRSystemPath.h:19
MR_PassBy
Definition common.h:19
#define MRC_API
Definition exports.h:11