Singleton class that manages the application settings.
More...
#include <settings_manager.h>
|
| void | load () |
| | Loads the settings from the configuration file.
|
| |
| void | save () const |
| | Saves the current settings to the configuration file.
|
| |
| void | apply (SDL_Window *window) |
| | Applies the current settings to the given SDL window.
|
| |
| Settings & | get () |
| | Gets a reference to the current settings.
|
| |
| const Settings & | get () const |
| | Gets a const reference to the current settings.
|
| |
| Settings & | getSettings () |
| | Gets a reference to the current settings.
|
| |
Singleton class that manages the application settings.
◆ SettingsManager()
| SettingsManager::SettingsManager |
( |
| ) |
|
|
private |
◆ apply()
| void SettingsManager::apply |
( |
SDL_Window * |
window | ) |
|
Applies the current settings to the given SDL window.
- Parameters
-
| window | Pointer to the SDL_Window to apply settings to. |
◆ get() [1/2]
Gets a reference to the current settings.
- Returns
- Reference to the Settings object.
◆ get() [2/2]
| const Settings & SettingsManager::get |
( |
| ) |
const |
|
inline |
Gets a const reference to the current settings.
- Returns
- Const reference to the Settings object.
◆ getSettings()
| Settings & SettingsManager::getSettings |
( |
| ) |
|
|
inline |
Gets a reference to the current settings.
- Returns
- Reference to the Settings object.
◆ instance()
◆ load()
| void SettingsManager::load |
( |
| ) |
|
Loads the settings from the configuration file.
◆ save()
| void SettingsManager::save |
( |
| ) |
const |
Saves the current settings to the configuration file.
◆ settings_
The documentation for this class was generated from the following files: