A font description: family, style, point size, underline.
|
struct | VuoFont |
| A font description: family, style, point size, underline. More...
|
|
|
VuoFont | VuoFont_makeFromJson (json_object *js) |
|
json_object * | VuoFont_getJson (const VuoFont value) |
|
char * | VuoFont_getSummary (const VuoFont value) |
|
VuoFont | VuoFont_make (VuoText fontName, VuoReal pointSize, VuoBoolean underline, VuoColor color, VuoHorizontalAlignment alignment, VuoReal characterSpacing, VuoReal lineSpacing) |
| Returns a new VuoFont with the specified attributes. More...
|
|
VuoFont | VuoFont_makeDefault () |
| Returns a new VuoFont using default values. More...
|
|
bool | VuoFont_areEqual (const VuoFont a, const VuoFont b) |
| Returns true if both fonts have the same name, size, underline status, color, alignment, and character/line spacing. More...
|
|
bool | VuoFont_isLessThan (const VuoFont a, const VuoFont b) |
| Returns true if a < b. More...
|
|
VuoFont | VuoFont_makeFromString (const char *str) |
| Automatically generated function. More...
|
|
char * | VuoFont_getString (const VuoFont value) |
| Automatically generated function. More...
|
|
void | VuoFont_retain (VuoFont value) |
| Automatically generated function. More...
|
|
void | VuoFont_release (VuoFont value) |
| Automatically generated function. More...
|
|
◆ VuoFont
Class Members |
VuoHorizontalAlignment |
alignment |
|
VuoReal |
characterSpacing |
A value of 1.0 is normal character spacing. Must be >= 0.0. |
VuoColor |
color |
|
VuoText |
fontName |
Unique font machine name. Includes variants such as bold, italic, and oblique. |
VuoReal |
lineSpacing |
A value of 1.0 is normal line spacing. Must be >= 0.0. |
VuoReal |
pointSize |
|
VuoBoolean |
underline |
|
◆ VuoFont_areEqual()
Returns true if both fonts have the same name, size, underline status, color, alignment, and character/line spacing.
Definition at line 116 of file VuoFont.c.
◆ VuoFont_getJson()
Encodes value
as a JSON object.
Definition at line 81 of file VuoFont.c.
◆ VuoFont_getString()
char* VuoFont_getString |
( |
const VuoFont |
value | ) |
|
Automatically generated function.
◆ VuoFont_getSummary()
char * VuoFont_getSummary |
( |
const VuoFont |
value | ) |
|
Returns a compact string representation of value
(comma-separated components).
Definition at line 98 of file VuoFont.c.
◆ VuoFont_isLessThan()
Returns true if a < b.
Definition at line 130 of file VuoFont.c.
◆ VuoFont_make()
Returns a new VuoFont with the specified attributes.
Definition at line 37 of file VuoFont.c.
◆ VuoFont_makeDefault()
◆ VuoFont_makeFromJson()
Decodes the JSON object js
to create a new value.
Definition at line 64 of file VuoFont.c.
◆ VuoFont_makeFromString()
VuoFont VuoFont_makeFromString |
( |
const char * |
str | ) |
|
Automatically generated function.
◆ VuoFont_release()
void VuoFont_release |
( |
VuoFont |
value | ) |
|
Automatically generated function.
◆ VuoFont_retain()
void VuoFont_retain |
( |
VuoFont |
value | ) |
|
Automatically generated function.