Vuo
2.2.0
|
Holds information about an input device's status.
Classes | |
struct | VuoInteraction |
Holds information about an input device's status. More... | |
Functions | |
VuoInteraction | VuoInteraction_makeFromJson (json_object *js) |
Decodes the JSON object js to create a new value. More... | |
json_object * | VuoInteraction_getJson (const VuoInteraction value) |
Encodes value as a JSON object. More... | |
char * | VuoInteraction_getSummary (const VuoInteraction value) |
Returns a compact string representation of value (comma-separated components). More... | |
bool | VuoInteraction_update (const VuoPoint2d position, const VuoBoolean isPressed, VuoInteraction *interaction) VuoWarnUnusedResult |
Update an interaction with new input position and isPressed values. More... | |
static VuoInteraction | VuoInteraction_make () __attribute__((const)) |
Returns a new VuoInteraction. More... | |
bool | VuoInteraction_areEqual (const VuoInteraction a, const VuoInteraction b) |
Returns true if both interactions are identical (value-wise). More... | |
bool | VuoInteraction_isLessThan (const VuoInteraction a, const VuoInteraction b) |
Returns true if a < b. More... | |
VuoInteraction | VuoInteraction_makeFromString (const char *str) |
Automatically generated function. More... | |
char * | VuoInteraction_getString (const VuoInteraction value) |
Automatically generated function. More... | |
void | VuoInteraction_retain (VuoInteraction value) |
Automatically generated function. More... | |
void | VuoInteraction_release (VuoInteraction value) |
Automatically generated function. More... | |
struct VuoInteraction |
Class Members | ||
---|---|---|
VuoInteger | clickCount | |
bool | isPressed | |
VuoPoint2d | origin | |
VuoPoint2d | position | |
double | timestamp | |
VuoInteractionType | type | |
VuoUuid | uuid |
bool VuoInteraction_areEqual | ( | const VuoInteraction | value1, |
const VuoInteraction | value2 | ||
) |
Returns true if both interactions are identical (value-wise).
Interaction uuids may differ.
Definition at line 127 of file VuoInteraction.c.
struct json_object * VuoInteraction_getJson | ( | const VuoInteraction | value | ) |
Encodes value
as a JSON object.
Definition at line 86 of file VuoInteraction.c.
char* VuoInteraction_getString | ( | const VuoInteraction | value | ) |
Automatically generated function.
char * VuoInteraction_getSummary | ( | const VuoInteraction | value | ) |
Returns a compact string representation of value
(comma-separated components).
Definition at line 107 of file VuoInteraction.c.
bool VuoInteraction_isLessThan | ( | const VuoInteraction | a, |
const VuoInteraction | b | ||
) |
|
inlinestatic |
Returns a new VuoInteraction.
Definition at line 58 of file VuoInteraction.h.
VuoInteraction VuoInteraction_makeFromJson | ( | json_object * | js | ) |
Decodes the JSON object js
to create a new value.
Definition at line 50 of file VuoInteraction.c.
VuoInteraction VuoInteraction_makeFromString | ( | const char * | str | ) |
Automatically generated function.
void VuoInteraction_release | ( | VuoInteraction | value | ) |
Automatically generated function.
void VuoInteraction_retain | ( | VuoInteraction | value | ) |
Automatically generated function.
bool VuoInteraction_update | ( | const VuoPoint2d | position, |
const VuoBoolean | isPressed, | ||
VuoInteraction * | interaction | ||
) |
Update an interaction with new input position and isPressed values.
Returns true if the interaction has changed since the last update.
Definition at line 188 of file VuoInteraction.c.