Vuo  2.3.2
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
VuoUiThemeGroup Class Reference

Description

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_objectgetJson ()
 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...
 
VuoUiThemeBasefindElement (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 VuoSerializablemakeFromJson (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 VuoSerializablemakeFromJson (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...
 

Constructor & Destructor Documentation

◆ VuoUiThemeGroup()

VuoUiThemeGroup::VuoUiThemeGroup ( VuoList_VuoUiTheme  _elements)
inline

Creates a theme group containing _elements.

Definition at line 48 of file VuoUiThemeGroup.cc.

Member Function Documentation

◆ findElement()

VuoUiThemeBase* VuoUiThemeGroup::findElement ( std::string  typeToFind)
inline

Finds the first item in elements whose type begins with typeToFind.

Definition at line 98 of file VuoUiThemeGroup.cc.

◆ getJson()

json_object* VuoUiThemeGroup::getJson ( )
inlinevirtual

Encodes the theme group as a JSON object.

Reimplemented from VuoSerializable.

Definition at line 61 of file VuoUiThemeGroup.cc.

◆ getSummary()

char* VuoUiThemeGroup::getSummary ( void  )
inlinevirtual

Returns a compact string representation of the theme group.

Implements VuoSerializable.

Definition at line 71 of file VuoUiThemeGroup.cc.

◆ makeFromJson()

static VuoSerializable* VuoUiThemeGroup::makeFromJson ( json_object js)
inlinestatic

Creates a theme group from JSON.

Definition at line 40 of file VuoUiThemeGroup.cc.

◆ operator<()

bool VuoUiThemeGroup::operator< ( const VuoSerializable that)
inlinevirtual

Returns true if this theme group sorts before that theme group.

Implements VuoSerializable.

Definition at line 88 of file VuoUiThemeGroup.cc.

◆ operator==()

bool VuoUiThemeGroup::operator== ( const VuoSerializable that)
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.

Member Data Documentation

◆ type

std::string VuoUiThemeGroup::type
static

The subtype's class name.

Definition at line 35 of file VuoUiThemeGroup.cc.


The documentation for this class was generated from the following file: