Vuo  0.4.8
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Enumerations | Functions
VuoMouseButtonAction

Description

A press, release, or click of one of the mouse buttons.

Classes

struct  VuoMouseButtonAction
 A press, release, or click of one of the mouse buttons. More...
 

Enumerations

enum  VuoMouseButton { VuoMouseButton_Left, VuoMouseButton_Middle, VuoMouseButton_Right }
 Type of mouse button.
 
enum  VuoMouseButtonActionType {
  VuoMouseButtonActionType_Press, VuoMouseButtonActionType_Release, VuoMouseButtonActionType_SingleClick, VuoMouseButtonActionType_DoubleClick,
  VuoMouseButtonActionType_TripleClick
}
 Type of action done to a mouse button.
 

Functions

VuoMouseButtonAction VuoMouseButtonAction_valueFromJson (json_object *js)
 Decodes the JSON object js to create a new value.
 
json_object * VuoMouseButtonAction_jsonFromValue (const VuoMouseButtonAction e)
 Encodes value as a JSON object.
 
char * VuoMouseButtonAction_summaryFromValue (const VuoMouseButtonAction e)
 Returns a compact string representation of value.
 
VuoMouseButtonAction VuoMouseButtonAction_valueFromString (const char *str)
 Automatically generated function.
 
char * VuoMouseButtonAction_stringFromValue (const VuoMouseButtonAction value)
 Automatically generated function.
 

Class Documentation

struct VuoMouseButtonAction
Class Members
char blah[42]
Todo:
https://b33p.net/kosada/node/4124
VuoMouseButton button Which button was used.
VuoPoint2d position The position of the pointer when the event occurred (in screen coordinates).
VuoMouseButtonActionType type Which action was done to the button.

Function Documentation

VuoMouseButtonAction VuoMouseButtonAction_valueFromJson ( json_object *  js)

Decodes the JSON object js to create a new value.

Example:
{
"button" : "left",
"type" : "press",
"position" : { "x" : 100, "y" : 100 }
}