yaze 0.2.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::core Namespace Reference

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

Enumeration Type Documentation

◆ Platform

enum class yaze::core::Platform
strong
Enumerator
kUnknown 
kMacOS 
kiOS 
kWindows 
kLinux 

Definition at line 35 of file file_dialog.h.

Function Documentation

◆ CopyImageToClipboard()

void yaze::core::CopyImageToClipboard ( const std::vector< uint8_t > & data)

◆ GetImageFromClipboard()

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().

◆ GetFileExtension()

std::string yaze::core::GetFileExtension ( const std::string & filename)

Definition at line 18 of file file_dialog.cc.

◆ GetFileName()

std::string yaze::core::GetFileName ( const std::string & filename)

Definition at line 26 of file file_dialog.cc.

◆ LoadFile()

std::string yaze::core::LoadFile ( const std::string & filename)

◆ LoadConfigFile()

std::string yaze::core::LoadConfigFile ( const std::string & filename)

Definition at line 49 of file file_dialog.cc.

References GetConfigDirectory(), kLinux, kMacOS, and kWindows.

Here is the call graph for this function:

◆ SaveFile()

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().

Here is the call graph for this function:

◆ 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().

◆ GetBundleResourcePath()

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().

◆ LoadPackageFonts()

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().

◆ ReloadPackageFont()

absl::Status yaze::core::ReloadPackageFont ( const FontConfig & config)

◆ LoadSystemFonts()

void yaze::core::LoadSystemFonts ( )