\section{lib/common/labels.c File Reference}
\label{labels_8c}\index{lib/common/labels.\-c@{lib/common/labels.\-c}}
{\ttfamily \#include \char`\"{}render.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}htmltable.\-h\char`\"{}}\\*
{\ttfamily \#include $<$limits.\-h$>$}\\*
Include dependency graph for labels.\-c\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{labels_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void {\bf make\-\_\-simple\-\_\-label} ({\bf G\-V\-C\-\_\-t} $\ast${\bf gvc}, {\bf textlabel\-\_\-t} $\ast$lp)
\item 
{\bf textlabel\-\_\-t} $\ast$ {\bf make\-\_\-label} (void $\ast$obj, char $\ast${\bf str}, {\bf int} kind, double fontsize, char $\ast$fontname, char $\ast$fontcolor)
\item 
void {\bf free\-\_\-textspan} ({\bf textspan\-\_\-t} $\ast$tl, {\bf int} cnt)
\item 
void {\bf free\-\_\-label} ({\bf textlabel\-\_\-t} $\ast$p)
\item 
void {\bf emit\-\_\-label} ({\bf G\-V\-J\-\_\-t} $\ast$job, {\bf emit\-\_\-state\-\_\-t} emit\-\_\-state, {\bf textlabel\-\_\-t} $\ast$lp)
\item 
char $\ast$ {\bf strdup\-\_\-and\-\_\-subst\-\_\-obj} (char $\ast${\bf str}, void $\ast$obj)
\item 
char $\ast$ {\bf xml\-\_\-string} (char $\ast${\bf s})
\item 
char $\ast$ {\bf xml\-\_\-string0} (char $\ast${\bf s}, {\bf boolean} raw)
\item 
char $\ast$ {\bf xml\-\_\-url\-\_\-string} (char $\ast${\bf s})
\end{DoxyCompactItemize}


\subsection{Function Documentation}
\index{labels.\-c@{labels.\-c}!emit\-\_\-label@{emit\-\_\-label}}
\index{emit\-\_\-label@{emit\-\_\-label}!labels.c@{labels.\-c}}
\subsubsection[{emit\-\_\-label}]{\setlength{\rightskip}{0pt plus 5cm}void emit\-\_\-label (
\begin{DoxyParamCaption}
\item[{{\bf G\-V\-J\-\_\-t} $\ast$}]{job, }
\item[{{\bf emit\-\_\-state\-\_\-t}}]{emit\-\_\-state, }
\item[{{\bf textlabel\-\_\-t} $\ast$}]{lp}
\end{DoxyParamCaption}
)}\label{labels_8c_aeb4b78995d8bfc821e7f70ad8e0b6324}


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, L\-A\-B\-E\-L\-\_\-\-P\-L\-A\-I\-N, obj\-\_\-state\-\_\-s\-::labeledgealigned, G\-V\-J\-\_\-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().

\index{labels.\-c@{labels.\-c}!free\-\_\-label@{free\-\_\-label}}
\index{free\-\_\-label@{free\-\_\-label}!labels.c@{labels.\-c}}
\subsubsection[{free\-\_\-label}]{\setlength{\rightskip}{0pt plus 5cm}void free\-\_\-label (
\begin{DoxyParamCaption}
\item[{{\bf textlabel\-\_\-t} $\ast$}]{p}
\end{DoxyParamCaption}
)}\label{labels_8c_a95b7fe6a33f3e3cea68b6b88890e2850}


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().

\index{labels.\-c@{labels.\-c}!free\-\_\-textspan@{free\-\_\-textspan}}
\index{free\-\_\-textspan@{free\-\_\-textspan}!labels.c@{labels.\-c}}
\subsubsection[{free\-\_\-textspan}]{\setlength{\rightskip}{0pt plus 5cm}void free\-\_\-textspan (
\begin{DoxyParamCaption}
\item[{{\bf textspan\-\_\-t} $\ast$}]{tl, }
\item[{{\bf int}}]{cnt}
\end{DoxyParamCaption}
)}\label{labels_8c_a044f51e957d2c770bb9f1bcacf0701e5}


Definition at line 193 of file labels.\-c.



References textspan\-\_\-t\-::free\-\_\-layout, textspan\-\_\-t\-::layout, and textspan\-\_\-t\-::str.



Referenced by free\-\_\-label().

\index{labels.\-c@{labels.\-c}!make\-\_\-label@{make\-\_\-label}}
\index{make\-\_\-label@{make\-\_\-label}!labels.c@{labels.\-c}}
\subsubsection[{make\-\_\-label}]{\setlength{\rightskip}{0pt plus 5cm}{\bf textlabel\-\_\-t}$\ast$ make\-\_\-label (
\begin{DoxyParamCaption}
\item[{void $\ast$}]{obj, }
\item[{char $\ast$}]{str, }
\item[{{\bf int}}]{kind, }
\item[{double}]{fontsize, }
\item[{char $\ast$}]{fontname, }
\item[{char $\ast$}]{fontcolor}
\end{DoxyParamCaption}
)}\label{labels_8c_afeb5d3d4f437bef7507cbcd40428c932}


Definition at line 115 of file labels.\-c.



References A\-G\-E\-D\-G\-E, agerr(), aghead(), agisdirected(), agnameof(), A\-G\-N\-O\-D\-E, agobjkind(), A\-G\-P\-R\-E\-V, A\-G\-R\-A\-P\-H, agraphof(), agroot(), agtail(), assert, C\-H\-A\-R\-\_\-\-L\-A\-T\-I\-N1, textlabel\-\_\-t\-::charset, textlabel\-\_\-t\-::fontcolor, textlabel\-\_\-t\-::fontname, textlabel\-\_\-t\-::fontsize, G\-D\-\_\-charset, G\-D\-\_\-gvc, textlabel\-\_\-t\-::html, html\-Entity\-U\-T\-F8(), latin1\-To\-U\-T\-F8(), L\-T\-\_\-\-H\-T\-M\-L, L\-T\-\_\-\-N\-O\-N\-E, L\-T\-\_\-\-R\-E\-C\-D, make\-\_\-html\-\_\-label(), make\-\_\-simple\-\_\-label(), N\-E\-W, N\-U\-L\-L, Agraph\-\_\-s\-::root, textlabel\-\_\-t\-::text, and T\-R\-U\-E.



Referenced by common\-\_\-init\-\_\-edge(), common\-\_\-init\-\_\-node(), and do\-\_\-graph\-\_\-label().

\index{labels.\-c@{labels.\-c}!make\-\_\-simple\-\_\-label@{make\-\_\-simple\-\_\-label}}
\index{make\-\_\-simple\-\_\-label@{make\-\_\-simple\-\_\-label}!labels.c@{labels.\-c}}
\subsubsection[{make\-\_\-simple\-\_\-label}]{\setlength{\rightskip}{0pt plus 5cm}void make\-\_\-simple\-\_\-label (
\begin{DoxyParamCaption}
\item[{{\bf G\-V\-C\-\_\-t} $\ast$}]{gvc, }
\item[{{\bf textlabel\-\_\-t} $\ast$}]{lp}
\end{DoxyParamCaption}
)}\label{labels_8c_a2792507ab26e5f23dbe412b9455a0c6d}


Definition at line 51 of file labels.\-c.



References C\-H\-A\-R\-\_\-\-B\-I\-G5, textlabel\-\_\-t\-::charset, textlabel\-\_\-t\-::dimen, N\-\_\-\-G\-N\-E\-W, N\-U\-L\-L, textlabel\-\_\-t\-::space, str, textlabel\-\_\-t\-::text, pointf\-\_\-s\-::x, and pointf\-\_\-s\-::y.



Referenced by make\-\_\-html\-\_\-label(), and make\-\_\-label().

\index{labels.\-c@{labels.\-c}!strdup\-\_\-and\-\_\-subst\-\_\-obj@{strdup\-\_\-and\-\_\-subst\-\_\-obj}}
\index{strdup\-\_\-and\-\_\-subst\-\_\-obj@{strdup\-\_\-and\-\_\-subst\-\_\-obj}!labels.c@{labels.\-c}}
\subsubsection[{strdup\-\_\-and\-\_\-subst\-\_\-obj}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ strdup\-\_\-and\-\_\-subst\-\_\-obj (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{str, }
\item[{void $\ast$}]{obj}
\end{DoxyParamCaption}
)}\label{labels_8c_a728b57c6b071764ffc0215c6a5776272}


Definition at line 451 of file labels.\-c.



Referenced by graph\-\_\-init(), and init\-Map\-Data().

\index{labels.\-c@{labels.\-c}!xml\-\_\-string@{xml\-\_\-string}}
\index{xml\-\_\-string@{xml\-\_\-string}!labels.c@{labels.\-c}}
\subsubsection[{xml\-\_\-string}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ xml\-\_\-string (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{s}
\end{DoxyParamCaption}
)}\label{labels_8c_ab71db87d9e68160272bec013ccefff40}


Definition at line 485 of file labels.\-c.



References F\-A\-L\-S\-E, and xml\-\_\-string0().

\index{labels.\-c@{labels.\-c}!xml\-\_\-string0@{xml\-\_\-string0}}
\index{xml\-\_\-string0@{xml\-\_\-string0}!labels.c@{labels.\-c}}
\subsubsection[{xml\-\_\-string0}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ xml\-\_\-string0 (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{s, }
\item[{{\bf boolean}}]{raw}
\end{DoxyParamCaption}
)}\label{labels_8c_a62ad7f42a2ed71bda798e3b7c7c6df9e}


Definition at line 497 of file labels.\-c.



References gmalloc(), grealloc(), N\-U\-L\-L, and sub.



Referenced by xml\-\_\-string().

\index{labels.\-c@{labels.\-c}!xml\-\_\-url\-\_\-string@{xml\-\_\-url\-\_\-string}}
\index{xml\-\_\-url\-\_\-string@{xml\-\_\-url\-\_\-string}!labels.c@{labels.\-c}}
\subsubsection[{xml\-\_\-url\-\_\-string}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ xml\-\_\-url\-\_\-string (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{s}
\end{DoxyParamCaption}
)}\label{labels_8c_a1eeb6f937ccf683da1df1d22cb31e800}


Definition at line 572 of file labels.\-c.



References gmalloc(), grealloc(), N\-U\-L\-L, and sub.

