![]() |
NDEVR
API Documentation
|
Information for displaying a particular icon. More...
Public Member Functions | |
| IconDefinition (const JSONNode &node) | |
| Constructs an IconDefinition by deserializing from a JSON node. | |
| IconDefinition (const StringView &def) | |
| Constructs an IconDefinition using the same value for both the icon ID and default draw operation. | |
| IconDefinition (const StringView &id, const StringView &def) | |
| Constructs an IconDefinition with separate icon ID and default draw operation. | |
| void | fromJSON (const JSONNode &node) |
| Deserializes this icon definition from a JSON node. | |
| void | toJSON (JSONNode &node) const |
| Serializes this icon definition to a JSON node. | |
Public Attributes | |
| String | default_draw_operation |
| The default draw operation used to render this icon. | |
| String | icon_id |
| The unique identifier string for this icon. | |
|
inline |
Constructs an IconDefinition using the same value for both the icon ID and default draw operation.
| [in] | def | The string used as both the icon identifier and the default draw operation. |
Definition at line 17 of file IconManager.h.
References default_draw_operation, and icon_id.
|
inline |
Constructs an IconDefinition with separate icon ID and default draw operation.
| [in] | id | The unique identifier for the icon. |
| [in] | def | The default draw operation string for rendering the icon. |
Definition at line 27 of file IconManager.h.
References default_draw_operation, and icon_id.
|
inline |
Constructs an IconDefinition by deserializing from a JSON node.
| [in] | node | The JSON node containing the icon definition data. |
Definition at line 36 of file IconManager.h.
References fromJSON().
|
inline |
Deserializes this icon definition from a JSON node.
| [in] | node | The JSON node containing the icon definition data to read. |
Definition at line 53 of file IconManager.h.
References default_draw_operation, JSONNode::getAs(), and icon_id.
Referenced by IconDefinition().
|
inline |
Serializes this icon definition to a JSON node.
| [in] | node | The JSON node to write the icon definition data into. |
Definition at line 44 of file IconManager.h.
References default_draw_operation, and icon_id.