AG_GraphVertex * AG_GraphVertexNew (AG_Graph *graph, void *userPtr)
AG_GraphVertex * AG_GraphVertexFind (AG_Graph *graph, void *userPtr)
void AG_GraphVertexLabel (AG_GraphVertex *vertex, const char *format, ...)
void AG_GraphVertexLabelS (AG_GraphVertex *vertex, const char *text)
void AG_GraphVertexColorLabel (AG_GraphVertex *vertex, Uint8 r, Uint8 g, Uint8 b)
void AG_GraphVertexColorBG (AG_GraphVertex *vertex, Uint8 r, Uint8 g, Uint8 b)
void AG_GraphVertexSize (AG_GraphVertex *vertex, Uint width, Uint height)
void AG_GraphVertexPosition (AG_GraphVertex *vertex, int x, int y)
void AG_GraphVertexPopupMenu (AG_GraphVertex *vertex, AG_PopupMenu *pm)
|
The
AG_GraphVertexNew() function creates a new vertex in the specified graph.
userPtr is an optional user pointer to associate with the vertex.
AG_GraphVertexFind() returns the vertex matching the specified user pointer, or NULL if no
match exists.
AG_GraphVertexLabel() sets the text label associated with a vertex.
AG_GraphVertexColorLabel() sets the color of the text label.
AG_GraphVertexColorBG() sets the background color for the node item.
AG_GraphVertexSize() changes the default size of the node item.
AG_GraphVertexPosition() moves the node item to the given position in the view.
AG_GraphVertexPopupMenu() arranges for the given popup menu to be displayed when the user right clicks
on the vertex.
|