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

Description

Theme for the slider widget.

Definition at line 89 of file VuoUiThemeBase.hh.

Public Member Functions

virtual VuoReal minimumTrackLength ()=0
 Returns the minimum length, in local Vuo Coordinates, that the track can be. More...
 
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. More...
 
virtual VuoReal handleMovementLength (VuoReal trackLength)=0
 Returns the length, in local Vuo Coordinates, that the drag handle can move (typically somewhat less than trackLength). More...
 
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. 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

◆ handleMovementLength()

virtual VuoReal VuoUiThemeSlider::handleMovementLength ( VuoReal  trackLength)
pure virtual

Returns the length, in local Vuo Coordinates, that the drag handle can move (typically somewhat less than trackLength).

Implemented in VuoUiThemeSliderRounded.

◆ isPointInsideSliderHandle()

virtual bool VuoUiThemeSlider::isPointInsideSliderHandle ( VuoRenderedLayers  renderedLayers,
VuoReal  trackLength,
VuoReal  normalizedProgress,
VuoPoint2d  position,
VuoAnchor  anchor,
VuoOrientation  orientation,
VuoPoint2d  pointToTest 
)
pure virtual

Returns true if pointToTest is inside the drag handle.

Implemented in VuoUiThemeSliderRounded.

◆ minimumTrackLength()

virtual VuoReal VuoUiThemeSlider::minimumTrackLength ( )
pure virtual

Returns the minimum length, in local Vuo Coordinates, that the track can be.

Implemented in VuoUiThemeSliderRounded.

◆ render()

virtual VuoLayer VuoUiThemeSlider::render ( VuoRenderedLayers  renderedLayers,
VuoText  label,
VuoReal  trackLength,
VuoReal  normalizedProgress,
VuoPoint2d  position,
VuoAnchor  anchor,
VuoOrientation  orientation,
bool  isHovered,
bool  isPressed 
)
pure virtual

Creates a layer for the background of a slider widget.

Implemented in VuoUiThemeSliderRounded.


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