A theme for slider widgets, with the rounded style.
Definition at line 47 of file VuoUiThemeSliderRounded.cc.
Public Member Functions | |
VuoUiThemeSliderRounded (VuoFont _labelFont, VuoColor _labelColor, VuoColor _labelColorHovered, VuoReal _handleWidth, VuoReal _handleHeight, VuoReal _handleBorderThickness, VuoReal _handleCornerRoundness, VuoColor _handleColor, VuoColor _handleColorHovered, VuoColor _handleColorPressed, VuoColor _handleBorderColor, VuoColor _handleBorderColorHovered, VuoColor _handleBorderColorPressed, VuoReal _trackDepth, VuoReal _trackBorderThickness, VuoReal _trackCornerRoundness, VuoColor _activeTrackColor, VuoColor _activeTrackColorHovered, VuoColor _activeTrackBorderColor, VuoColor _activeTrackBorderColorHovered, VuoColor _inactiveTrackColor, VuoColor _inactiveTrackColorHovered, VuoColor _inactiveTrackBorderColor, VuoColor _inactiveTrackBorderColorHovered, VuoReal _marginBetweenTrackAndLabel) | |
Creates a theme for slider 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 | makeRoundedRectangleTrack (VuoText name, VuoColor background, VuoColor active, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal height, VuoReal sharpness, VuoReal roundness, VuoOrientation orientation, VuoReal value) |
Create a rounded rectangle layer with a progress bar. | |
VuoLayer | render (VuoRenderedLayers renderedLayers, VuoText label, VuoReal trackLength, VuoReal normalizedProgress, VuoPoint2d position, VuoAnchor anchor, VuoOrientation orientation, bool isHovered, bool isPressed) |
Creates a layer tree representing a slider track with the specified theme and parameters. | |
bool | isPointInsideSliderHandle (VuoRenderedLayers renderedLayers, VuoReal trackLength, VuoReal normalizedProgress, VuoPoint2d position, VuoAnchor anchor, VuoOrientation orientation, VuoPoint2d pointToTest) |
Returns true if pointToTest is inside the drag handle. | |
VuoReal | minimumTrackLength () |
Returns the minimum length, in local Vuo Coordinates, that the track can be. | |
VuoReal | handleMovementLength (VuoReal trackLength) |
Returns the length, in local Vuo Coordinates, that the drag handle can move. | |
![]() | |
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 VuoSerializable * | makeFromJson (json_object *js) |
Creates a rounded slider theme from JSON. | |
![]() | |
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 | |
static std::string | type |
The subtype's class name. | |
![]() | |
static std::string | type = "" |
The subtype's class name. | |
Additional Inherited Members | |
![]() | |
typedef VuoSerializable *(* | Constructor) (json_object *) |
A makeFromJson method. | |
|
inline |
Creates a theme for slider widgets, with the rounded style.
Definition at line 133 of file VuoUiThemeSliderRounded.cc.
|
inline |
Definition at line 207 of file VuoUiThemeSliderRounded.cc.
|
inlinevirtual |
Encodes the theme as a JSON object.
Reimplemented from VuoSerializable.
Definition at line 215 of file VuoUiThemeSliderRounded.cc.
|
inlinevirtual |
Returns a compact string representation of the theme.
Implements VuoSerializable.
Definition at line 260 of file VuoUiThemeSliderRounded.cc.
Returns the length, in local Vuo Coordinates, that the drag handle can move.
For the Rounded theme, the drag handle can move as far as the center point of the track's rounded corner arcs.
Implements VuoUiThemeSlider.
Definition at line 577 of file VuoUiThemeSliderRounded.cc.
|
inlinevirtual |
Returns true if pointToTest
is inside the drag handle.
Implements VuoUiThemeSlider.
Definition at line 540 of file VuoUiThemeSliderRounded.cc.
|
inlinestatic |
Creates a rounded slider theme from JSON.
Definition at line 91 of file VuoUiThemeSliderRounded.cc.
|
inline |
Create a rounded rectangle layer with a progress bar.
Definition at line 356 of file VuoUiThemeSliderRounded.cc.
|
inlinevirtual |
Returns the minimum length, in local Vuo Coordinates, that the track can be.
Implements VuoUiThemeSlider.
Definition at line 568 of file VuoUiThemeSliderRounded.cc.
|
inlinevirtual |
Returns true if this theme sorts before that
theme.
Implements VuoSerializable.
Definition at line 311 of file VuoUiThemeSliderRounded.cc.
|
inlinevirtual |
Returns true if both themes are of the same subtype, and their values are equal.
Implements VuoSerializable.
Definition at line 268 of file VuoUiThemeSliderRounded.cc.
|
inlinevirtual |
Creates a layer tree representing a slider track with the specified theme and parameters.
Implements VuoUiThemeSlider.
Definition at line 391 of file VuoUiThemeSliderRounded.cc.
|
static |
The subtype's class name.
Definition at line 86 of file VuoUiThemeSliderRounded.cc.