Parameter decorations to be used by node classes.
|
#define | VuoInstanceData(type) |
| Use this to decorate parameters referring to a stateful node's instance data structure.
|
|
#define | VuoInputData(type,...) |
| Use this to decorate parameters acting as data input ports.
|
|
#define | VuoInputConductor(conductivity, name) |
| Use this to decorate parameters acting as event input ports.
|
|
#define | VuoOutputData(type) |
| Use this to decorate parameters acting as data output ports.
|
|
#define | VuoOutputConductor(name) __attribute__((annotate("vuoOutputConductor:" #name))) bool * const |
| Use this to decorate parameters acting as event output ports.
|
|
#define | VuoOutputTrigger(name, type) |
| Use this to decorate parameters acting as event triggers.
|
|
#define VuoInputConductor |
( |
|
conductivity, |
|
|
|
name |
|
) |
| |
Use this to decorate parameters acting as event input ports.
Indicates whether this particular input port was pushed. The input port name should use lowerCamelCase
.
- Parameters
-
conductivity | A value of type VuoPortConductivity, indicating the port's type of conductivity. |
name | The identifier of the corresponding data port, or blank if this is intended to be an event-only input port. |
- Example:
-
- Example:
-
#define VuoInputData |
( |
|
type, |
|
|
|
... |
|
) |
| |
Use this to decorate parameters acting as data input ports.
The input port name should use lowerCamelCase
.
- Parameters
-
type | This input port's C type. Must be a typedef from a Vuo type definition. |
... | Optionally, a JSON object specification containing additional details about the input port's data, such as the default value. |
- Example:
-
#define VuoInstanceData |
( |
|
type | ) |
|
Use this to decorate parameters referring to a stateful node's instance data structure.
- Parameters
-
type | The instance data's C type. |
- Example:
-
#define VuoOutputConductor |
( |
|
name | ) |
__attribute__((annotate("vuoOutputConductor:" #name))) bool * const |
Use this to decorate parameters acting as event output ports.
Indicates whether a push should be conducted through this particular output port. The output port name should use lowerCamelCase
.
- Parameters
-
name | The identifier of the corresponding data port, or blank if this is intended to be an event-only output port. |
- Example:
-
- Example:
-
#define VuoOutputData |
( |
|
type | ) |
|
Use this to decorate parameters acting as data output ports.
The output port name should use lowerCamelCase
.
- Parameters
-
type | This output port's C type. Must be a typedef from a Vuo type definition. |
- Example:
-
#define VuoOutputTrigger |
( |
|
name, |
|
|
|
type |
|
) |
| |
Use this to decorate parameters acting as event triggers.
Indicates whether an event should be fired from this particular output port.
- Parameters
-
name | The identifier of the triggers function. Use lowerCamelCase . |
type | The C type of the data passed along when an event is fired. |
- Example:
-
- Example:
-
- Example:
{
char *heapData = (char *)malloc(strlen("hello")+1);
strcpy(heapData, "hello");
ding(heapData);
VuoRelease(heapData);
}
Conductivity options for input ports.
Enumerator |
---|
VuoPortAlwaysConducts |
An event received by this input port is conducted to all output ports.
|
VuoPortMayConduct |
An event received by this input port may be conducted to all, some, or none of the output ports.
|
VuoPortNeverConducts |
An event received by this input port is never conducted to any output port.
|