Vuo  0.4.7
 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_valueFromString (const char *initializer)
 Parses the C string initializer to create a new value.
 
char * VuoMouseButtonAction_stringFromValue (const VuoMouseButtonAction value)
 Serializes value as a C string.
 
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.
 

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

char * VuoMouseButtonAction_stringFromValue ( const VuoMouseButtonAction  value)

Serializes value as a C string.

Todo:
This function body will be generated by vuo-compile (https://b33p.net/kosada/node/5521)
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 }
}
VuoMouseButtonAction VuoMouseButtonAction_valueFromString ( const char *  initializer)

Parses the C string initializer to create a new value.

Todo:
This function body will be generated by vuo-compile (https://b33p.net/kosada/node/5521)