GanvModule

GanvModule

Functions

Types and Values

Description

Functions

GanvPortFunc ()

void
(*GanvPortFunc) (GanvPort *port,
                 void *data);

ganv_module_new ()

GanvModule *
ganv_module_new (GanvCanvas *canvas,
                 const char *first_prop_name,
                 ...);

ganv_module_num_ports ()

guint
ganv_module_num_ports (const GanvModule *module);

ganv_module_get_port ()

GanvPort *
ganv_module_get_port (GanvModule *module,
                      guint index);

Get a port by index.

Returns

The port on module at index .

[transfer none]


ganv_module_get_empty_port_breadth ()

double
ganv_module_get_empty_port_breadth (const GanvModule *module);

ganv_module_get_empty_port_depth ()

double
ganv_module_get_empty_port_depth (const GanvModule *module);

ganv_module_embed ()

void
ganv_module_embed (GanvModule *module,
                   GtkWidget *widget);

ganv_module_set_direction ()

void
ganv_module_set_direction (GanvModule *module,
                           GanvDirection direction);

ganv_module_for_each_port ()

void
ganv_module_for_each_port (GanvModule *module,
                           GanvPortFunc f,
                           void *data);

Parameters

module

The module.

 

f

A function to call on every port on module .

[scope call]

data

User data to pass to f .

 

Types and Values

GanvModuleImpl

typedef struct _GanvModuleImpl GanvModuleImpl;