GanvEdge

GanvEdge

Functions

GanvEdge * ganv_edge_new ()
gboolean ganv_edge_is_within ()
gboolean ganv_edge_get_curved ()
void ganv_edge_set_curved ()
void ganv_edge_set_selected ()
void ganv_edge_set_highlighted ()
void ganv_edge_select ()
void ganv_edge_unselect ()
void ganv_edge_disconnect ()
void ganv_edge_remove ()
GanvNode * ganv_edge_get_tail ()
GanvNode * ganv_edge_get_head ()

Types and Values

Description

Functions

ganv_edge_new ()

GanvEdge *
ganv_edge_new (GanvCanvas *canvas,
               GanvNode *tail,
               GanvNode *head,
               const char *first_prop_name,
               ...);

ganv_edge_is_within ()

gboolean
ganv_edge_is_within (const GanvEdge *edge,
                     double x1,
                     double y1,
                     double x2,
                     double y2);

ganv_edge_get_curved ()

gboolean
ganv_edge_get_curved (const GanvEdge *edge);

ganv_edge_set_curved ()

void
ganv_edge_set_curved (GanvEdge *edge,
                      gboolean curved);

ganv_edge_set_selected ()

void
ganv_edge_set_selected (GanvEdge *edge,
                        gboolean selected);

ganv_edge_set_highlighted ()

void
ganv_edge_set_highlighted (GanvEdge *edge,
                           gboolean highlighted);

ganv_edge_select ()

void
ganv_edge_select (GanvEdge *edge);

ganv_edge_unselect ()

void
ganv_edge_unselect (GanvEdge *edge);

ganv_edge_disconnect ()

void
ganv_edge_disconnect (GanvEdge *edge);

Disconnect the edge. This will disconnect the edge just as if it had been disconnected by the user via the canvas. The canvas disconnect signal will be emitted, allowing the application to control disconnect logic.


ganv_edge_remove ()

void
ganv_edge_remove (GanvEdge *edge);

Remove the edge from the canvas. This will only remove the edge visually, it will not emit the canvas disconnect signal to notify the application.


ganv_edge_get_tail ()

GanvNode *
ganv_edge_get_tail (const GanvEdge *edge);

Returns

The tail of edge.

[transfer none]


ganv_edge_get_head ()

GanvNode *
ganv_edge_get_head (const GanvEdge *edge);

Returns

The head of edge.

[transfer none]

Types and Values

GanvEdgeImpl

typedef struct _GanvEdgeImpl GanvEdgeImpl;