Vuo  2.0.0
Public Member Functions | List of all members
VuoUiThemeToggle Class Referenceabstract

Description

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. More...
 
- Public Member Functions inherited from VuoSerializable
virtual json_objectgetJson ()
 Serializes this instance's data. More...
 
std::string getType () const
 Returns this instance's specialized type. More...
 
virtual char * getSummary ()=0
 Outputs a summary of this instance's data, to be shown in port popovers. More...
 
virtual bool operator== (const VuoSerializable &that)=0
 Returns true if this instance is equivalent to that instance. More...
 
virtual bool operator< (const VuoSerializable &that)=0
 Returns true if this instance sorts before that instance. More...
 
 VuoSerializable ()
 Registers an instance of a VuoSerializable subclass with VuoHeap. More...
 
virtual ~VuoSerializable ()
 Does nothing. More...
 

Additional Inherited Members

- Public Types inherited from VuoSerializable
typedef VuoSerializable *(* Constructor) (json_object *)
 A makeFromJson method. 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 inherited from VuoSerializable
static std::string type = ""
 The subtype's class name. More...
 

Member Function Documentation

◆ render()

virtual VuoLayer VuoUiThemeToggle::render ( VuoRenderedLayers  renderedLayers,
VuoText  label,
VuoPoint2d  position,
VuoAnchor  anchor,
bool  isHovered,
bool  isPressed,
bool  isToggled 
)
pure virtual

Creates a layer tree representing a toggle with the specified theme and parameters.

Implemented in VuoUiThemeToggleRounded.


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