Steppable 0.0.1
A CAS project written from scratch in C++
|
The namespace for the internal components of the GUI module of the Steppable library. More...
Functions | |
bool | isDarkModeEnabled () |
Checks if the dark mode is enabled. | |
void | addFontIfExistent (const ImGuiIO *io, const std::filesystem::path &path, const ImFontConfig *config, const ImWchar *ranges) noexcept |
void | loadFonts (const ImGuiIO *io) noexcept |
Loads the fonts for the application. | |
The namespace for the internal components of the GUI module of the Steppable library.
This namespace contains the internal components of the GUI module of the Steppable library. For example, methods that gets the system fonts, checks if the dark mode is enabled, and loads the fonts.
|
noexcept |
Attempts to add a font to the application if it exists in the system.
This method checks if a specified font is available on the system. If the font is found, it is added to the application's font resources, making it available for use within the application. If the font does not exist, the method will not perform any action or may log an error or warning, depending on implementation details.
io | A pointer to an ImGuiIO object to enable configuration. |
path | The absolute path to the font file. |
config | A pointer to an ImFontConfig object to enable font configuration. |
ranges | A pointer to an array of ImWchar objects to enable character range configuration. |
bool steppable::gui::__internals::isDarkModeEnabled | ( | ) |
Checks if the dark mode is enabled.