![]() |
NDEVR
API Documentation
|
Stores information about many different icons. More...
Public Member Functions | |
| void | addIcon (const IconDefinition &definition) |
| Adds an icon definition to the manager, indexed by its icon ID. | |
| void | fromJSON (const JSONNode &node) |
| Deserializes icon definitions from a JSON node and adds them to this manager. | |
| void | toJSON (JSONNode &node) const |
| Serializes all stored icon definitions to a JSON node. | |
Protected Attributes | |
| Dictionary< String, IconDefinition > | m_icons |
| Maps icon ID strings to their corresponding IconDefinition objects. | |
|
inline |
Adds an icon definition to the manager, indexed by its icon ID.
| [in] | definition | The icon definition to store. |
Definition at line 95 of file IconManager.h.
References IconDefinition::icon_id, and m_icons.
Referenced by fromJSON().
|
inline |
Deserializes icon definitions from a JSON node and adds them to this manager.
| [in] | node | The JSON node containing icon definition children to read. |
Definition at line 84 of file IconManager.h.
References addIcon(), and JSONNode::children().
|
inline |
Serializes all stored icon definitions to a JSON node.
| [in] | node | The JSON node to write the icon definitions into. |
Definition at line 73 of file IconManager.h.
References m_icons.