Vuo
2.4.0
|
Combination vertical + horizontal alignment.
Typedefs | |
typedef int64_t | VuoAnchor |
Combination vertical + horizontal alignment. More... | |
Functions | |
VuoAnchor | VuoAnchor_makeFromJson (json_object *js) |
Decodes the JSON object js to create a new value. More... | |
json_object * | VuoAnchor_getJson (const VuoAnchor value) |
Encodes value as a JSON object. More... | |
char * | VuoAnchor_getSummary (const VuoAnchor value) |
Returns a compact string representation of value . More... | |
VuoList_VuoAnchor | VuoAnchor_getAllowedValues (void) |
Returns a list of values that instances of this type can have. More... | |
static VuoAnchor | VuoAnchor_make (VuoHorizontalAlignment horizontal, VuoVerticalAlignment vertical) __attribute__((const)) |
Returns a VuoAnchor with horizontal and vertical alignments. More... | |
static VuoHorizontalAlignment | VuoAnchor_getHorizontal (VuoAnchor anchor) __attribute__((const)) |
Returns the horizontal component of a VuoAnchor. More... | |
static VuoVerticalAlignment | VuoAnchor_getVertical (VuoAnchor anchor) __attribute__((const)) |
Returns the horizontal component of a VuoAnchor. More... | |
static VuoAnchor | VuoAnchor_makeCentered (void) __attribute__((const)) |
Returns a VuoAnchor with both horizontal and vertical alignments centered. More... | |
VuoPoint2d | VuoAnchor_getOffset (VuoAnchor anchor) |
Returns an offset (-.5, 0, or .5) for each axis of the anchor. More... | |
bool | VuoAnchor_areEqual (const VuoAnchor value1, const VuoAnchor value2) |
Returns true if the two values are equal. More... | |
bool | VuoAnchor_isLessThan (const VuoAnchor value1, const VuoAnchor value2) |
Returns true if the value1 is less than value2. More... | |
VuoAnchor | VuoAnchor_makeFromString (const char *str) |
Automatically generated function. More... | |
char * | VuoAnchor_getString (const VuoAnchor value) |
Automatically generated function. More... | |
void | VuoAnchor_retain (VuoAnchor value) |
Automatically generated function. More... | |
void | VuoAnchor_release (VuoAnchor value) |
Automatically generated function. More... | |
#define VuoAnchor_SUPPORTS_COMPARISON |
Definition at line 79 of file VuoAnchor.h.
typedef int64_t VuoAnchor |
Combination vertical + horizontal alignment.
(VuoVerticalAlignment << 2) + VuoHorizontalAlignment
Definition at line 34 of file VuoAnchor.h.
Returns true if the two values are equal.
Definition at line 142 of file VuoAnchor.c.
VuoList_VuoAnchor VuoAnchor_getAllowedValues | ( | void | ) |
Returns a list of values that instances of this type can have.
Definition at line 110 of file VuoAnchor.c.
|
inlinestatic |
Returns the horizontal component of a VuoAnchor.
Definition at line 54 of file VuoAnchor.h.
struct json_object * VuoAnchor_getJson | ( | const VuoAnchor | value | ) |
Encodes value
as a JSON object.
Definition at line 74 of file VuoAnchor.c.
VuoPoint2d VuoAnchor_getOffset | ( | VuoAnchor | anchor | ) |
Returns an offset (-.5, 0, or .5) for each axis of the anchor.
Definition at line 129 of file VuoAnchor.c.
char * VuoAnchor_getString | ( | const VuoAnchor | value | ) |
Automatically generated function.
char * VuoAnchor_getSummary | ( | const VuoAnchor | value | ) |
Returns a compact string representation of value
.
Definition at line 90 of file VuoAnchor.c.
|
inlinestatic |
Returns the horizontal component of a VuoAnchor.
Definition at line 63 of file VuoAnchor.h.
Returns true if the value1 is less than value2.
Definition at line 151 of file VuoAnchor.c.
|
inlinestatic |
Returns a VuoAnchor with horizontal and vertical alignments.
Definition at line 45 of file VuoAnchor.h.
|
inlinestatic |
Returns a VuoAnchor with both horizontal and vertical alignments centered.
Definition at line 72 of file VuoAnchor.h.
VuoAnchor VuoAnchor_makeFromJson | ( | json_object * | js | ) |
Decodes the JSON object js
to create a new value.
Definition at line 46 of file VuoAnchor.c.
VuoAnchor VuoAnchor_makeFromString | ( | const char * | str | ) |
Automatically generated function.
void VuoAnchor_release | ( | VuoAnchor | value | ) |
Automatically generated function.
void VuoAnchor_retain | ( | VuoAnchor | value | ) |
Automatically generated function.