Theme for the toggle widget.
Definition at line 45 of file VuoUiThemeBase.hh.
Public Member Functions | |
virtual VuoLayer | render (VuoRenderedLayers renderedLayers, VuoText label, VuoPoint2d position, VuoAnchor anchor, bool isHovered, bool isPressed, bool isToggled)=0 |
Creates a layer tree representing a toggle with the specified theme and parameters. | |
Public Member Functions inherited from VuoSerializable | |
virtual json_object * | getJson () |
Serializes this instance's data. | |
std::string | getType () const |
Returns this instance's specialized type. | |
virtual char * | getSummary ()=0 |
Outputs a summary of this instance's data, to be shown in port popovers. | |
virtual bool | operator== (const VuoSerializable &that)=0 |
Returns true if this instance is equivalent to that instance. | |
virtual bool | operator< (const VuoSerializable &that)=0 |
Returns true if this instance sorts before that instance. | |
VuoSerializable () | |
Registers an instance of a VuoSerializable subclass with VuoHeap. | |
virtual | ~VuoSerializable () |
Does nothing. | |
Additional Inherited Members | |
Public Types inherited from VuoSerializable | |
typedef VuoSerializable *(* | Constructor) (json_object *) |
A makeFromJson method. | |
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. | |
static void | destroy (void *t) |
Deletes an instance of a VuoSerializable subclass. | |
static VuoSerializable * | makeFromJson (json_object *js) |
Creates an instance of a VuoSerializable subclass from JSON. | |
Static Public Attributes inherited from VuoSerializable | |
static std::string | type = "" |
The subtype's class name. | |
|
pure virtual |
Creates a layer tree representing a toggle with the specified theme and parameters.
Implemented in VuoUiThemeToggleRounded.