Theme for the slider widget.
Definition at line 88 of file VuoUiThemeBase.hh.
Public Member Functions | |
virtual VuoReal | minimumTrackLength ()=0 |
Returns the minimum length, in local Vuo Coordinates, that the track can be. | |
virtual VuoLayer | render (VuoRenderedLayers renderedLayers, VuoText label, VuoReal trackLength, VuoReal normalizedProgress, VuoPoint2d position, VuoAnchor anchor, VuoOrientation orientation, bool isHovered, bool isPressed)=0 |
Creates a layer for the background of a slider widget. | |
virtual VuoReal | handleMovementLength (VuoReal trackLength)=0 |
Returns the length, in local Vuo Coordinates, that the drag handle can move (typically somewhat less than trackLength). | |
virtual bool | isPointInsideSliderHandle (VuoRenderedLayers renderedLayers, VuoReal trackLength, VuoReal normalizedProgress, VuoPoint2d position, VuoAnchor anchor, VuoOrientation orientation, VuoPoint2d pointToTest)=0 |
Returns true if pointToTest is inside the drag handle. | |
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. | |
Returns the length, in local Vuo Coordinates, that the drag handle can move (typically somewhat less than trackLength).
Implemented in VuoUiThemeSliderRounded.
|
pure virtual |
Returns true if pointToTest
is inside the drag handle.
Implemented in VuoUiThemeSliderRounded.
|
pure virtual |
Returns the minimum length, in local Vuo Coordinates, that the track can be.
Implemented in VuoUiThemeSliderRounded.
|
pure virtual |
Creates a layer for the background of a slider widget.
Implemented in VuoUiThemeSliderRounded.