Vuo  2.3.2
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
VuoUiThemeTextFieldRounded Class Reference

Description

A theme for text/number widgets, with the rounded style.

Definition at line 53 of file VuoUiThemeTextFieldRounded.cc.

Public Member Functions

 VuoUiThemeTextFieldRounded (VuoFont _font, VuoAnchor _textAnchor, VuoPoint2d _textPadding, VuoColor _textColor, VuoColor _textColorHovered, VuoColor _textColorActive, VuoColor _backgroundColor, VuoColor _backgroundColorHovered, VuoColor _backgroundColorActive, VuoColor _borderColor, VuoColor _borderColorHovered, VuoColor _borderColorActive, VuoReal _borderThickness, VuoColor _cursorColor, VuoColor _selectionColor, VuoReal _cornerRoundness)
 Creates a theme for text field widgets, with the rounded style. More...
 
json_objectgetJson ()
 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 (VuoPoint2d screenSize, VuoReal screenBackingScaleFactor, VuoText text, VuoText placeholderText, int numLines, int cursorIndex, int selectionStart, int selectionEnd, VuoPoint2d position, VuoReal width, VuoAnchor anchor, bool isHovered, bool isFocused, VuoImageTextData *imageTextData)
 Creates a layer tree representing a text field 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 VuoSerializablemakeFromJson (json_object *js)
 Creates a rounded text field 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 VuoSerializablemakeFromJson (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...
 

Constructor & Destructor Documentation

◆ VuoUiThemeTextFieldRounded()

VuoUiThemeTextFieldRounded::VuoUiThemeTextFieldRounded ( VuoFont  _font,
VuoAnchor  _textAnchor,
VuoPoint2d  _textPadding,
VuoColor  _textColor,
VuoColor  _textColorHovered,
VuoColor  _textColorActive,
VuoColor  _backgroundColor,
VuoColor  _backgroundColorHovered,
VuoColor  _backgroundColorActive,
VuoColor  _borderColor,
VuoColor  _borderColorHovered,
VuoColor  _borderColorActive,
VuoReal  _borderThickness,
VuoColor  _cursorColor,
VuoColor  _selectionColor,
VuoReal  _cornerRoundness 
)
inline

Creates a theme for text field widgets, with the rounded style.

Definition at line 103 of file VuoUiThemeTextFieldRounded.cc.

Member Function Documentation

◆ getJson()

json_object* VuoUiThemeTextFieldRounded::getJson ( )
inlinevirtual

Encodes the theme as a JSON object.

Reimplemented from VuoSerializable.

Definition at line 147 of file VuoUiThemeTextFieldRounded.cc.

◆ getSummary()

char* VuoUiThemeTextFieldRounded::getSummary ( void  )
inlinevirtual

Returns a compact string representation of the theme.

Implements VuoSerializable.

Definition at line 172 of file VuoUiThemeTextFieldRounded.cc.

◆ makeFromJson()

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

Creates a rounded text field theme from JSON.

Definition at line 79 of file VuoUiThemeTextFieldRounded.cc.

◆ operator<()

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

Returns true if this theme sorts before that theme.

Implements VuoSerializable.

Definition at line 204 of file VuoUiThemeTextFieldRounded.cc.

◆ operator==()

bool VuoUiThemeTextFieldRounded::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 180 of file VuoUiThemeTextFieldRounded.cc.

◆ render()

VuoLayer VuoUiThemeTextFieldRounded::render ( VuoPoint2d  screenSize,
VuoReal  screenBackingScaleFactor,
VuoText  text,
VuoText  placeholderText,
int  numLines,
int  cursorIndex,
int  selectionStart,
int  selectionEnd,
VuoPoint2d  position,
VuoReal  width,
VuoAnchor  anchor,
bool  isHovered,
bool  isFocused,
VuoImageTextData imageTextData 
)
inlinevirtual

Creates a layer tree representing a text field with the specified theme and parameters.

cursorIndex, selectionStart, and selectionEnd are all 0 indexed.

Implements VuoUiThemeTextField.

Definition at line 230 of file VuoUiThemeTextFieldRounded.cc.

Member Data Documentation

◆ type

std::string VuoUiThemeTextFieldRounded::type
static

The subtype's class name.

Definition at line 74 of file VuoUiThemeTextFieldRounded.cc.


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