Steppable 0.0.1
A CAS project written from scratch in C++
Loading...
Searching...
No Matches
steppable::gui::__internals Namespace Reference

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.
 

Detailed Description

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.

Note
This namespace is not intended for use by the end user.

Function Documentation

◆ addFontIfExistent()

void steppable::gui::__internals::addFontIfExistent ( const ImGuiIO * io,
const std::filesystem::path & path,
const ImFontConfig * config,
const ImWchar * ranges )
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.

Parameters
ioA pointer to an ImGuiIO object to enable configuration.
pathThe absolute path to the font file.
configA pointer to an ImFontConfig object to enable font configuration.
rangesA pointer to an array of ImWchar objects to enable character range configuration.

◆ isDarkModeEnabled()

bool steppable::gui::__internals::isDarkModeEnabled ( )

Checks if the dark mode is enabled.

Returns
True if the dark mode is enabled, false otherwise.

◆ loadFonts()

void steppable::gui::__internals::loadFonts ( const ImGuiIO * io)
noexcept

Loads the fonts for the application.

This method tries to find the system fonts that can display most character sets.

Parameters
ioA pointer to an ImGuiIO object to enable configuration
Untitled