|
| template<typename TValue > |
| INLINE TValue | get (const GuiSettingsId id) const |
| |
| template<typename TValue > |
| INLINE GuiSettings & | set (const GuiSettingsId id, const TValue &value) |
| |
| template<> |
| INLINE Pixel | get (const GuiSettingsId id) const |
| |
| template<> |
| INLINE Rgba | get (const GuiSettingsId id) const |
| |
| template<> |
| INLINE GuiSettings & | set (const GuiSettingsId id, const Rgba &color) |
| |
| | Settings () |
| | Initialize settings by settings all value to their defaults. More...
|
| |
| | Settings (EmptySettingsTag) |
| | Initialize empty settings object. More...
|
| |
| | Settings (const Settings &other) |
| |
| | Settings (Settings &&other) |
| |
| Settings & | operator= (std::initializer_list< Entry > list) |
| | Assigns a list of settings into the object, erasing all previous entries. More...
|
| |
| Settings & | operator= (const Settings &other) |
| |
| Settings & | operator= (Settings &&other) |
| |
| Settings & | set (const GuiSettingsId idx, TValue &&value, std::enable_if_t<!std::is_enum< std::decay_t< TValue >>::value, int >=0) |
| | Saves a value into the settings. More...
|
| |
| Settings & | set (const GuiSettingsId idx, TValue &&value, std::enable_if_t< std::is_enum< std::decay_t< TValue >>::value, int >=0) |
| | Saves a value into the settings. More...
|
| |
| Settings & | set (const GuiSettingsId idx, const Flags< TValue > flags) |
| | Saves flags into the settings. More...
|
| |
| Settings & | set (const GuiSettingsId idx, EmptyFlags) |
| | Clear flags of given parameter in settings. More...
|
| |
| Settings & | set (const GuiSettingsId idx, const EnumWrapper ew) |
| | Special setter for value of type EnumWrapper. More...
|
| |
| void | addEntries (const Settings &settings) |
| | Adds entries from different Settings object into this one, overriding current entries. More...
|
| |
| void | unset (const GuiSettingsId idx) |
| | Removes given parameter from settings. More...
|
| |
| TValue | get (const GuiSettingsId idx, std::enable_if_t<!std::is_enum< std::decay_t< TValue >>::value, int >=0) const |
| | Returns a value of given type from the settings. More...
|
| |
| TValue | get (const GuiSettingsId idx, std::enable_if_t< std::is_enum< std::decay_t< TValue >>::value, int >=0) const |
| | Returns a value of given type from the settings. More...
|
| |
| Flags< TValue > | getFlags (const GuiSettingsId idx) const |
| | Returns Flags from underlying value stored in settings. More...
|
| |
| bool | has (const GuiSettingsId idx) const |
| | Checks if the given entry is stored in the settings. More...
|
| |
| bool | hasType (const GuiSettingsId idx) const |
| | Checks if the given entry has specified type. More...
|
| |
| Outcome | saveToFile (const Path &path) const |
| | Saves all values stored in settings into file. More...
|
| |
| Outcome | loadFromFile (const Path &path) |
| | Loads the settings from file. More...
|
| |
| bool | tryLoadFileOrSaveCurrent (const Path &path, const Settings &overrides=EMPTY_SETTINGS) |
| | If the specified file exists, loads the settings from it, otherwise creates the file and saves the current values. More...
|
| |
| SettingsIterator< GuiSettingsId > | begin () const |
| | Iterator to the first entry of the settings storage. More...
|
| |
| SettingsIterator< GuiSettingsId > | end () const |
| | Iterator to the one-past-end entry the settings storage. More...
|
| |
| Size | size () const |
| | Returns the number of entries in the settings. More...
|
| |
Definition at line 238 of file Settings.h.