Vuo 2.4.4
|
Holds information about an input device's status.
Classes | |
struct | VuoInteraction |
Holds information about an input device's status. More... | |
Macros | |
#define | VuoInteraction_SUPPORTS_COMPARISON |
Instances of this type can be compared and sorted. | |
Functions | |
VuoInteraction | VuoInteraction_makeFromJson (json_object *js) |
Decodes the JSON object js to create a new value. | |
json_object * | VuoInteraction_getJson (const VuoInteraction value) |
Encodes value as a JSON object. | |
char * | VuoInteraction_getSummary (const VuoInteraction value) |
Returns a compact string representation of value (comma-separated components). | |
bool | VuoInteraction_update (const VuoPoint2d position, const VuoBoolean isPressed, VuoInteraction *interaction) VuoWarnUnusedResult |
Update an interaction with new input position and isPressed values. | |
static VuoInteraction | VuoInteraction_make (void) __attribute__((const)) |
Returns a new VuoInteraction. | |
bool | VuoInteraction_areEqual (const VuoInteraction a, const VuoInteraction b) |
Returns true if both interactions are identical (value-wise). | |
bool | VuoInteraction_isLessThan (const VuoInteraction a, const VuoInteraction b) |
Returns true if a < b. | |
char * | VuoInteraction_getString (const VuoInteraction value) |
Automatically generated function. | |
void | VuoInteraction_retain (VuoInteraction value) |
Automatically generated function. | |
void | VuoInteraction_release (VuoInteraction value) |
Automatically generated function. | |
struct VuoInteraction |
Class Members | ||
---|---|---|
VuoInteger | clickCount | |
bool | isPressed | |
VuoPoint2d | origin | |
VuoPoint2d | position | |
double | timestamp | |
VuoInteractionType | type | |
VuoUuid | uuid |
#define VuoInteraction_SUPPORTS_COMPARISON |
Instances of this type can be compared and sorted.
Definition at line 48 of file VuoInteraction.h.
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 61 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.
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.