A collection of multiple themes (ideally one theme for each type of widget).
Definition at line 29 of file VuoUiThemeGroup.cc.
Public Member Functions | |
VuoUiThemeGroup (VuoList_VuoUiTheme _elements) | |
Creates a theme group containing _elements . More... | |
json_object * | getJson () |
Encodes the theme group as a JSON object. More... | |
char * | getSummary () |
Returns a compact string representation of the theme group. More... | |
bool | operator== (const VuoSerializable &that) |
Returns true if both are theme groups, and if all their elements are equal. More... | |
bool | operator< (const VuoSerializable &that) |
Returns true if this theme group sorts before that theme group. More... | |
VuoUiThemeBase * | findElement (std::string typeToFind) |
Finds the first item in elements whose type begins with typeToFind . More... | |
Public Member Functions inherited from VuoSerializable | |
std::string | getType () const |
Returns this instance's specialized type. More... | |
VuoSerializable () | |
Registers an instance of a VuoSerializable subclass with VuoHeap. More... | |
virtual | ~VuoSerializable () |
Does nothing. More... | |
Static Public Member Functions | |
static VuoSerializable * | makeFromJson (json_object *js) |
Creates a theme group from JSON. More... | |
Static Public Member Functions inherited from VuoSerializable | |
static bool | registerSubclass (std::string type, Constructor makeFromJson) |
Informs this base class of the presence of a subclass, so it can be instantiated from JSON. More... | |
static void | destroy (void *t) |
Deletes an instance of a VuoSerializable subclass. More... | |
static VuoSerializable * | makeFromJson (json_object *js) |
Creates an instance of a VuoSerializable subclass from JSON. More... | |
Static Public Attributes | |
static std::string | type |
The subtype's class name. More... | |
Static Public Attributes inherited from VuoSerializable | |
static std::string | type = "" |
The subtype's class name. More... | |
Additional Inherited Members | |
Public Types inherited from VuoSerializable | |
typedef VuoSerializable *(* | Constructor) (json_object *) |
A makeFromJson method. More... | |
|
inline |
Creates a theme group containing _elements
.
Definition at line 48 of file VuoUiThemeGroup.cc.
|
inline |
Finds the first item in elements
whose type begins with typeToFind
.
Definition at line 98 of file VuoUiThemeGroup.cc.
|
inlinevirtual |
Encodes the theme group as a JSON object.
Reimplemented from VuoSerializable.
Definition at line 61 of file VuoUiThemeGroup.cc.
|
inlinevirtual |
Returns a compact string representation of the theme group.
Implements VuoSerializable.
Definition at line 71 of file VuoUiThemeGroup.cc.
|
inlinestatic |
Creates a theme group from JSON.
Definition at line 40 of file VuoUiThemeGroup.cc.
|
inlinevirtual |
Returns true if this theme group sorts before that
theme group.
Implements VuoSerializable.
Definition at line 88 of file VuoUiThemeGroup.cc.
|
inlinevirtual |
Returns true if both are theme groups, and if all their elements are equal.
Implements VuoSerializable.
Definition at line 79 of file VuoUiThemeGroup.cc.
|
static |
The subtype's class name.
Definition at line 35 of file VuoUiThemeGroup.cc.