Vuo  1.2.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
VuoFont.c File Reference

Description

VuoFont implementation.

Functions

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.
 
static const char * getStringForAlignment (VuoHorizontalAlignment a)
 Returns a string key for the specified horizontal alignment.
 
static VuoHorizontalAlignment getAlignmentForString (const char *s)
 Returns the horizontal alignment for the specified string key.
 
VuoFont VuoFont_makeFromJson (json_object *js)
 Decodes the JSON object js to create a new value.
 
json_objectVuoFont_getJson (const VuoFont value)
 Encodes value as a JSON object.
 
char * VuoFont_getSummary (const VuoFont value)
 Returns a compact string representation of value (comma-separated components).
 
bool VuoFont_areEqual (const VuoFont value1, const VuoFont value2)
 Returns true if both fonts have the same name, size, underline status, color, alignment, and character/line spacing.
 
bool VuoFont_isLessThan (const VuoFont a, const VuoFont b)
 Returns true if a < b.
 

Function Documentation

static VuoHorizontalAlignment getAlignmentForString ( const char *  s)
static

Returns the horizontal alignment for the specified string key.

static const char* getStringForAlignment ( VuoHorizontalAlignment  a)
static

Returns a string key for the specified horizontal alignment.