A theme for button widgets, with the rounded style.
Definition at line 40 of file VuoUiThemeButtonRounded.cc.
Public Member Functions | |
VuoUiThemeButtonRounded (VuoReal _minimumWidth, VuoReal _minimumHeight, VuoFont _labelFont, VuoAnchor _labelPosition, VuoPoint2d _labelPadding, VuoColor _labelColor, VuoColor _labelColorHovered, VuoColor _labelColorPressed, VuoColor _backgroundColor, VuoColor _backgroundColorHovered, VuoColor _backgroundColorPressed, VuoColor _borderColor, VuoColor _borderColorHovered, VuoColor _borderColorPressed, VuoReal _borderThickness, VuoReal _cornerRoundness) | |
Creates a theme for button widgets, with the rounded style. More... | |
json_object * | getJson () |
Encodes the theme as a JSON object. More... | |
char * | getSummary () |
Returns a compact string representation of the theme. More... | |
bool | operator== (const VuoSerializable &that) |
Returns true if both themes are of the same subtype, and their values are equal. More... | |
bool | operator< (const VuoSerializable &that) |
Returns true if this theme sorts before that theme. More... | |
VuoLayer | render (VuoRenderedLayers renderedLayers, VuoText label, VuoPoint2d position, VuoAnchor anchor, bool isHovered, bool isPressed) |
Creates a layer group representing a button with the specified theme and parameters. 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 rounded button theme 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 for button widgets, with the rounded style.
Definition at line 89 of file VuoUiThemeButtonRounded.cc.
|
inlinevirtual |
Encodes the theme as a JSON object.
Reimplemented from VuoSerializable.
Definition at line 132 of file VuoUiThemeButtonRounded.cc.
|
inlinevirtual |
Returns a compact string representation of the theme.
Implements VuoSerializable.
Definition at line 157 of file VuoUiThemeButtonRounded.cc.
|
inlinestatic |
Creates a rounded button theme from JSON.
Definition at line 66 of file VuoUiThemeButtonRounded.cc.
|
inlinevirtual |
Returns true if this theme sorts before that
theme.
Implements VuoSerializable.
Definition at line 189 of file VuoUiThemeButtonRounded.cc.
|
inlinevirtual |
Returns true if both themes are of the same subtype, and their values are equal.
Implements VuoSerializable.
Definition at line 165 of file VuoUiThemeButtonRounded.cc.
|
inlinevirtual |
Creates a layer group representing a button with the specified theme and parameters.
Implements VuoUiThemeButton.
Definition at line 218 of file VuoUiThemeButtonRounded.cc.
|
static |
The subtype's class name.
Definition at line 61 of file VuoUiThemeButtonRounded.cc.