Graphviz
2.41.20171026.1811
|
Go to the source code of this file.
Functions | |
void | make_simple_label (GVC_t *gvc, textlabel_t *lp) |
textlabel_t * | make_label (void *obj, char *str, int kind, double fontsize, char *fontname, char *fontcolor) |
void | free_textspan (textspan_t *tl, int cnt) |
void | free_label (textlabel_t *p) |
void | emit_label (GVJ_t *job, emit_state_t emit_state, textlabel_t *lp) |
char * | strdup_and_subst_obj (char *str, void *obj) |
char * | xml_string (char *s) |
char * | xml_string0 (char *s, boolean raw) |
char * | xml_url_string (char *s) |
void emit_label | ( | GVJ_t * | job, |
emit_state_t | emit_state, | ||
textlabel_t * | lp | ||
) |
Definition at line 222 of file labels.c.
References textlabel_t::dimen, emit_html_label(), obj_state_s::emit_state, textlabel_t::fontcolor, textlabel_t::fontsize, gvrender_begin_label(), gvrender_end_label(), gvrender_set_pencolor(), gvrender_textspan(), textlabel_t::html, LABEL_PLAIN, obj_state_s::labeledgealigned, GVJ_s::obj, textlabel_t::pos, textlabel_t::space, textlabel_t::txt, textlabel_t::u, textlabel_t::valign, pointf_s::x, and pointf_s::y.
Referenced by emit_clusters().
void free_label | ( | textlabel_t * | p | ) |
Definition at line 209 of file labels.c.
References free_html_label(), free_textspan(), textlabel_t::html, textlabel_t::text, textlabel_t::txt, and textlabel_t::u.
Referenced by graph_cleanup(), gv_cleanup_edge(), and gv_cleanup_node().
void free_textspan | ( | textspan_t * | tl, |
int | cnt | ||
) |
Definition at line 193 of file labels.c.
References textspan_t::free_layout, textspan_t::layout, and textspan_t::str.
Referenced by free_label().
textlabel_t* make_label | ( | void * | obj, |
char * | str, | ||
int | kind, | ||
double | fontsize, | ||
char * | fontname, | ||
char * | fontcolor | ||
) |
Definition at line 115 of file labels.c.
References AGEDGE, agerr(), aghead(), agisdirected(), agnameof(), AGNODE, agobjkind(), AGPREV, AGRAPH, agraphof(), agroot(), agtail(), assert, CHAR_LATIN1, textlabel_t::charset, textlabel_t::fontcolor, textlabel_t::fontname, textlabel_t::fontsize, GD_charset, GD_gvc, textlabel_t::html, htmlEntityUTF8(), latin1ToUTF8(), LT_HTML, LT_NONE, LT_RECD, make_html_label(), make_simple_label(), NEW, NULL, Agraph_s::root, textlabel_t::text, and TRUE.
Referenced by common_init_edge(), common_init_node(), and do_graph_label().
void make_simple_label | ( | GVC_t * | gvc, |
textlabel_t * | lp | ||
) |
Definition at line 51 of file labels.c.
References CHAR_BIG5, textlabel_t::charset, textlabel_t::dimen, N_GNEW, NULL, textlabel_t::space, str, textlabel_t::text, pointf_s::x, and pointf_s::y.
Referenced by make_html_label(), and make_label().
char* strdup_and_subst_obj | ( | char * | str, |
void * | obj | ||
) |
Definition at line 451 of file labels.c.
Referenced by graph_init(), and initMapData().
char* xml_string | ( | char * | s | ) |
Definition at line 485 of file labels.c.
References FALSE, and xml_string0().
char* xml_string0 | ( | char * | s, |
boolean | raw | ||
) |
Definition at line 497 of file labels.c.
References gmalloc(), grealloc(), NULL, and sub.
Referenced by xml_string().