Vuo 2.4.4
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
VuoUiThemeToggleRounded Class Reference

Description

A theme for toggle widgets, with the rounded style.

Definition at line 39 of file VuoUiThemeToggleRounded.cc.

Public Member Functions

 VuoUiThemeToggleRounded (VuoFont _labelFont, VuoColor _labelColor, VuoColor _labelColorHovered, VuoColor _labelColorPressed, VuoColor _labelColorToggled, VuoColor _labelColorToggledAndHovered, VuoColor _checkmarkColor, VuoColor _checkmarkColorHovered, VuoColor _checkmarkColorPressed, VuoColor _checkmarkBorderColor, VuoColor _checkmarkBorderColorHovered, VuoColor _checkmarkBorderColorPressed, VuoColor _checkboxBackgroundColor, VuoColor _checkboxBackgroundColorHovered, VuoColor _checkboxBackgroundColorPressed, VuoColor _checkboxBackgroundColorToggled, VuoColor _checkboxBackgroundColorToggledAndHovered, VuoColor _checkboxBorderColor, VuoColor _checkboxBorderColorHovered, VuoColor _checkboxBorderColorPressed, VuoColor _checkboxBorderColorToggled, VuoColor _checkboxBorderColorToggledAndHovered, VuoReal _checkboxBorderThickness, VuoReal _checkboxCornerRoundness, VuoReal _marginBetweenCheckboxAndLabel)
 Creates a theme for toggle widgets, with the rounded style.
 
json_object * getJson ()
 Encodes the theme as a JSON object.
 
char * getSummary ()
 Returns a compact string representation of the theme.
 
bool operator== (const VuoSerializable &that)
 Returns true if both themes are of the same subtype, and their values are equal.
 
bool operator< (const VuoSerializable &that)
 Returns true if this theme sorts before that theme.
 
VuoLayer render (VuoRenderedLayers renderedLayers, VuoText label, VuoPoint2d position, VuoAnchor anchor, bool isHovered, bool isPressed, bool isToggled)
 Creates a layer group representing a toggle with the specified theme and parameters.
 
- Public Member Functions inherited from VuoSerializable
std::string getType () const
 Returns this instance's specialized type.
 
 VuoSerializable ()
 Registers an instance of a VuoSerializable subclass with VuoHeap.
 
virtual ~VuoSerializable ()
 Does nothing.
 

Static Public Member Functions

static VuoSerializablemakeFromJson (json_object *js)
 Creates a rounded toggle theme from JSON.
 
- 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 VuoSerializablemakeFromJson (json_object *js)
 Creates an instance of a VuoSerializable subclass from JSON.
 

Static Public Attributes

static std::string type
 The subtype's class name.
 
- Static Public Attributes inherited from VuoSerializable
static std::string type = ""
 The subtype's class name.
 

Additional Inherited Members

- Public Types inherited from VuoSerializable
typedef VuoSerializable *(* Constructor) (json_object *)
 A makeFromJson method.
 

Constructor & Destructor Documentation

◆ VuoUiThemeToggleRounded()

VuoUiThemeToggleRounded::VuoUiThemeToggleRounded ( VuoFont  _labelFont,
VuoColor  _labelColor,
VuoColor  _labelColorHovered,
VuoColor  _labelColorPressed,
VuoColor  _labelColorToggled,
VuoColor  _labelColorToggledAndHovered,
VuoColor  _checkmarkColor,
VuoColor  _checkmarkColorHovered,
VuoColor  _checkmarkColorPressed,
VuoColor  _checkmarkBorderColor,
VuoColor  _checkmarkBorderColorHovered,
VuoColor  _checkmarkBorderColorPressed,
VuoColor  _checkboxBackgroundColor,
VuoColor  _checkboxBackgroundColorHovered,
VuoColor  _checkboxBackgroundColorPressed,
VuoColor  _checkboxBackgroundColorToggled,
VuoColor  _checkboxBackgroundColorToggledAndHovered,
VuoColor  _checkboxBorderColor,
VuoColor  _checkboxBorderColorHovered,
VuoColor  _checkboxBorderColorPressed,
VuoColor  _checkboxBorderColorToggled,
VuoColor  _checkboxBorderColorToggledAndHovered,
VuoReal  _checkboxBorderThickness,
VuoReal  _checkboxCornerRoundness,
VuoReal  _marginBetweenCheckboxAndLabel 
)
inline

Creates a theme for toggle widgets, with the rounded style.

Definition at line 118 of file VuoUiThemeToggleRounded.cc.

◆ ~VuoUiThemeToggleRounded()

VuoUiThemeToggleRounded::~VuoUiThemeToggleRounded ( )
inline

Definition at line 183 of file VuoUiThemeToggleRounded.cc.

Member Function Documentation

◆ getJson()

json_object * VuoUiThemeToggleRounded::getJson ( )
inlinevirtual

Encodes the theme as a JSON object.

Reimplemented from VuoSerializable.

Definition at line 191 of file VuoUiThemeToggleRounded.cc.

◆ getSummary()

char * VuoUiThemeToggleRounded::getSummary ( )
inlinevirtual

Returns a compact string representation of the theme.

Implements VuoSerializable.

Definition at line 232 of file VuoUiThemeToggleRounded.cc.

◆ makeFromJson()

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

Creates a rounded toggle theme from JSON.

Definition at line 80 of file VuoUiThemeToggleRounded.cc.

◆ operator<()

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

Returns true if this theme sorts before that theme.

Implements VuoSerializable.

Definition at line 279 of file VuoUiThemeToggleRounded.cc.

◆ operator==()

bool VuoUiThemeToggleRounded::operator== ( const VuoSerializable that)
inlinevirtual

Returns true if both themes are of the same subtype, and their values are equal.

Implements VuoSerializable.

Definition at line 240 of file VuoUiThemeToggleRounded.cc.

◆ render()

VuoLayer VuoUiThemeToggleRounded::render ( VuoRenderedLayers  renderedLayers,
VuoText  label,
VuoPoint2d  position,
VuoAnchor  anchor,
bool  isHovered,
bool  isPressed,
bool  isToggled 
)
inlinevirtual

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

  • borderLayer — the outermost edge of the checkbox
  • backgroundLayer — inset from borderLayer
  • toggleLayer (optional) — checkmark
  • textLayer (optional) — label

Implements VuoUiThemeToggle.

Definition at line 326 of file VuoUiThemeToggleRounded.cc.

Member Data Documentation

◆ type

std::string VuoUiThemeToggleRounded::type
static

The subtype's class name.

Definition at line 75 of file VuoUiThemeToggleRounded.cc.


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