Vuo  2.3.2
Classes | Macros | Functions
VuoDragEvent

Description

Information about an in-progress or completed file drag.

Classes

struct  VuoDragEvent
 Information about an in-progress or completed file drag. More...
 

Functions

VuoDragEvent VuoDragEvent_makeFromJson (struct json_object *js)
 Decodes the JSON object js to create a new value. More...
 
struct json_objectVuoDragEvent_getJson (const VuoDragEvent value)
 Encodes value as a JSON object. More...
 
char * VuoDragEvent_getSummary (const VuoDragEvent value)
 Returns a compact string representation of value. More...
 
VuoDragEvent VuoDragEvent_make (const VuoPoint2d position, const VuoList_VuoUrl urls)
 Creates a new drag event. More...
 
bool VuoDragEvent_areEqual (const VuoDragEvent value1, const VuoDragEvent value2)
 Returns true if the two drag events are equivalent: More...
 
bool VuoDragEvent_isLessThan (const VuoDragEvent value1, const VuoDragEvent value2)
 Returns true if value1 < value2. More...
 
void VuoWindowReference_addDragCallbacks (const VuoWindowReference wr, void(*dragEnteredCallback)(VuoDragEvent e), void(*dragMovedToCallback)(VuoDragEvent e), void(*dragCompletedCallback)(VuoDragEvent e), void(*dragExitedCallback)(VuoDragEvent e))
 Adds callbacks to be invoked when files are dragged from Finder. More...
 
void VuoWindowReference_removeDragCallbacks (const VuoWindowReference wr, void(*dragEnteredCallback)(VuoDragEvent e), void(*dragMovedToCallback)(VuoDragEvent e), void(*dragCompletedCallback)(VuoDragEvent e), void(*dragExitedCallback)(VuoDragEvent e))
 Removes callbacks that would have been invoked when files were dragged from Finder. More...
 
VuoDragEvent VuoDragEvent_makeFromString (const char *str)
 Automatically generated function. More...
 
char * VuoDragEvent_getString (const VuoDragEvent value)
 Automatically generated function. More...
 
void VuoDragEvent_retain (VuoDragEvent value)
 Automatically generated function. More...
 
void VuoDragEvent_release (VuoDragEvent value)
 Automatically generated function. More...
 

Class Documentation

◆ VuoDragEvent

struct VuoDragEvent
Class Members
VuoPoint2d position
VuoList_VuoUrl urls

Function Documentation

◆ VuoDragEvent_areEqual()

bool VuoDragEvent_areEqual ( const VuoDragEvent  value1,
const VuoDragEvent  value2 
)

Returns true if the two drag events are equivalent:

  • The positions must match
  • The URLs must match

Definition at line 87 of file VuoDragEvent.c.

◆ VuoDragEvent_getJson()

struct json_object* VuoDragEvent_getJson ( const VuoDragEvent  value)

Encodes value as a JSON object.

Definition at line 50 of file VuoDragEvent.c.

◆ VuoDragEvent_getString()

char* VuoDragEvent_getString ( const VuoDragEvent  value)

Automatically generated function.

◆ VuoDragEvent_getSummary()

char* VuoDragEvent_getSummary ( const VuoDragEvent  value)

Returns a compact string representation of value.

Definition at line 65 of file VuoDragEvent.c.

◆ VuoDragEvent_isLessThan()

bool VuoDragEvent_isLessThan ( const VuoDragEvent  value1,
const VuoDragEvent  value2 
)

Returns true if value1 < value2.

Definition at line 101 of file VuoDragEvent.c.

◆ VuoDragEvent_make()

VuoDragEvent VuoDragEvent_make ( const VuoPoint2d  position,
const VuoList_VuoUrl  urls 
)

Creates a new drag event.

Definition at line 76 of file VuoDragEvent.c.

◆ VuoDragEvent_makeFromJson()

VuoDragEvent VuoDragEvent_makeFromJson ( json_object js)

Decodes the JSON object js to create a new value.

Example:
{
"position": ["x":0, "y":0],
"urls": ["file:///Users/me/Desktop/test.jpg"]
}

Definition at line 39 of file VuoDragEvent.c.

◆ VuoDragEvent_makeFromString()

VuoDragEvent VuoDragEvent_makeFromString ( const char *  str)

Automatically generated function.

◆ VuoDragEvent_release()

void VuoDragEvent_release ( VuoDragEvent  value)

Automatically generated function.

◆ VuoDragEvent_retain()

void VuoDragEvent_retain ( VuoDragEvent  value)

Automatically generated function.

◆ VuoWindowReference_addDragCallbacks()

void VuoWindowReference_addDragCallbacks ( const VuoWindowReference  wr,
void(*)(VuoDragEvent e)  dragEnteredCallback,
void(*)(VuoDragEvent e)  dragMovedToCallback,
void(*)(VuoDragEvent e)  dragCompletedCallback,
void(*)(VuoDragEvent e)  dragExitedCallback 
)

Adds callbacks to be invoked when files are dragged from Finder.

Definition at line 185 of file VuoWindowReference.m.

◆ VuoWindowReference_removeDragCallbacks()

void VuoWindowReference_removeDragCallbacks ( const VuoWindowReference  wr,
void(*)(VuoDragEvent e)  dragEnteredCallback,
void(*)(VuoDragEvent e)  dragMovedToCallback,
void(*)(VuoDragEvent e)  dragCompletedCallback,
void(*)(VuoDragEvent e)  dragExitedCallback 
)

Removes callbacks that would have been invoked when files were dragged from Finder.

Definition at line 204 of file VuoWindowReference.m.