Namespaces | |
namespace | anonymous_namespace{font_loader.cc} |
Classes | |
class | Controller |
Main controller for the application. More... | |
class | FeatureFlags |
A class to manage experimental feature flags. More... | |
class | FileDialogWrapper |
struct | FlagsMenu |
struct | FontConfig |
class | Renderer |
The Renderer class represents the renderer for the Yaze application. More... | |
struct | SDL_Deleter |
Deleter for SDL_Window and SDL_Renderer. More... | |
struct | SDL_Surface_Deleter |
Deleter for SDL_Surface. More... | |
struct | SDL_Texture_Deleter |
Deleter for SDL_Texture. More... | |
Enumerations | |
enum class | Platform { kUnknown , kMacOS , kiOS , kWindows , kLinux } |
Functions | |
void | CopyImageToClipboard (const std::vector< uint8_t > &data) |
void | GetImageFromClipboard (std::vector< uint8_t > &data, int &width, int &height) |
std::string | GetFileExtension (const std::string &filename) |
std::string | GetFileName (const std::string &filename) |
std::string | LoadFile (const std::string &filename) |
std::string | LoadConfigFile (const std::string &filename) |
void | SaveFile (const std::string &filename, const std::string &contents, Platform platform) |
std::string | GetConfigDirectory (Platform platform) |
std::string | GetBundleResourcePath () |
GetBundleResourcePath returns the path to the bundle resource directory. Specific to MacOS. | |
absl::Status | LoadPackageFonts () |
absl::Status | ReloadPackageFont (const FontConfig &config) |
void | LoadSystemFonts () |
|
strong |
Enumerator | |
---|---|
kUnknown | |
kMacOS | |
kiOS | |
kWindows | |
kLinux |
Definition at line 35 of file file_dialog.h.
void yaze::core::CopyImageToClipboard | ( | const std::vector< uint8_t > & | data | ) |
Definition at line 9 of file clipboard.cc.
Referenced by yaze::editor::GraphicsEditor::DrawGfxEditToolset(), and yaze::editor::OverworldEditor::DrawToolset().
void yaze::core::GetImageFromClipboard | ( | std::vector< uint8_t > & | data, |
int & | width, | ||
int & | height ) |
Definition at line 10 of file clipboard.cc.
Referenced by yaze::editor::GraphicsEditor::DrawGfxEditToolset().
std::string yaze::core::GetFileExtension | ( | const std::string & | filename | ) |
Definition at line 18 of file file_dialog.cc.
std::string yaze::core::GetFileName | ( | const std::string & | filename | ) |
Definition at line 26 of file file_dialog.cc.
std::string yaze::core::LoadFile | ( | const std::string & | filename | ) |
Definition at line 34 of file file_dialog.cc.
Referenced by yaze::cli::anonymous_namespace{tui.cc}::ApplyBpsPatchComponent(), and yaze::gui::LoadTheme().
std::string yaze::core::LoadConfigFile | ( | const std::string & | filename | ) |
Definition at line 49 of file file_dialog.cc.
References GetConfigDirectory(), kLinux, kMacOS, and kWindows.
void yaze::core::SaveFile | ( | const std::string & | filename, |
const std::string & | contents, | ||
Platform | platform ) |
Definition at line 70 of file file_dialog.cc.
References GetConfigDirectory().
std::string yaze::core::GetConfigDirectory | ( | Platform | platform | ) |
Definition at line 80 of file file_dialog.cc.
References kLinux, kMacOS, and kWindows.
Referenced by LoadConfigFile(), yaze::core::Controller::LoadConfigFiles(), and SaveFile().
std::string yaze::core::GetBundleResourcePath | ( | ) |
GetBundleResourcePath returns the path to the bundle resource directory. Specific to MacOS.
Referenced by yaze::gui::zeml::LoadFile(), and yaze::core::anonymous_namespace{font_loader.cc}::SetFontPath().
absl::Status yaze::core::LoadPackageFonts | ( | ) |
Definition at line 98 of file font_loader.cc.
References ICON_MIN_MD, and RETURN_IF_ERROR.
Referenced by yaze::core::Controller::LoadFontFamilies().
absl::Status yaze::core::ReloadPackageFont | ( | const FontConfig & | config | ) |
Definition at line 137 of file font_loader.cc.
References yaze::core::FontConfig::font_path, yaze::core::FontConfig::font_size, and RETURN_IF_ERROR.
void yaze::core::LoadSystemFonts | ( | ) |