extraNode

extraNode — add further characteristics to the nodes.

Synopsis

void                visu_extra_node_addLabel            (VisuData *data);
const gchar *       visu_extra_node_getLabel            (VisuData *data,
                                                         VisuNode *node);
void                visu_extra_node_setLabel            (VisuData *data,
                                                         guint nodeId,
                                                         const gchar *label);

Description

blabla

Details

visu_extra_node_addLabel ()

void                visu_extra_node_addLabel            (VisuData *data);

Add the possibility to store labels for nodes.

data :

a VisuData object.

visu_extra_node_getLabel ()

const gchar *       visu_extra_node_getLabel            (VisuData *data,
                                                         VisuNode *node);

Retrieve the label of node. If node has no label, NULL is returned.

data :

a VisuData object.

node :

a given node

Returns :

a label, private value, do not freed. [transfer none]

visu_extra_node_setLabel ()

void                visu_extra_node_setLabel            (VisuData *data,
                                                         guint nodeId,
                                                         const gchar *label);

Set a label to the node nodeId.

data :

a VisuData object.

nodeId :

the id of a node.

label :

the label to set (will be copied). [allow-none]