\section{lib/common/diagen.c File Reference}
\label{diagen_8c}\index{lib/common/diagen.\-c@{lib/common/diagen.\-c}}
{\ttfamily \#include \char`\"{}config.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}render.\-h\char`\"{}}\\*
{\ttfamily \#include $<$stdarg.\-h$>$}\\*
Include dependency graph for diagen.\-c\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{diagen_8c__incl}
\end{center}
\end{figure}
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct {\bf context\-\_\-t}
\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bf R\-E\-G\-U\-L\-A\-R}~0
\item 
\#define {\bf B\-O\-L\-D}~1
\item 
\#define {\bf I\-T\-A\-L\-I\-C}~2
\item 
\#define {\bf P\-\_\-\-S\-O\-L\-I\-D}~0
\item 
\#define {\bf P\-\_\-\-N\-O\-N\-E}~15
\item 
\#define {\bf P\-\_\-\-D\-O\-T\-T\-E\-D}~4		/$\ast$ i wasn't sure about this $\ast$/
\item 
\#define {\bf P\-\_\-\-D\-A\-S\-H\-E\-D}~11		/$\ast$ or this $\ast$/
\item 
\#define {\bf W\-I\-D\-T\-H\-\_\-\-N\-O\-R\-M\-A\-L}~1
\item 
\#define {\bf W\-I\-D\-T\-H\-\_\-\-B\-O\-L\-D}~3
\item 
\#define {\bf D\-I\-A\-\_\-\-R\-E\-S\-O\-L\-U\-T\-I\-O\-N}~1.\-0
\item 
\#define {\bf S\-C\-A\-L\-E}~({\bf D\-I\-A\-\_\-\-R\-E\-S\-O\-L\-U\-T\-I\-O\-N}/15.\-0)
\item 
\#define {\bf N\-O\-D\-E}~1
\item 
\#define {\bf E\-D\-G\-E}~2
\item 
\#define {\bf C\-L\-S\-T}~3
\item 
\#define {\bf M\-A\-X\-N\-E\-S\-T}~4
\item 
\#define {\bf S\-V\-G\-\_\-\-C\-O\-L\-O\-R\-S\-\_\-\-P}~0
\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct {\bf context\-\_\-t} {\bf context\-\_\-t}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\bf int} {\bf ellipse\-\_\-connection} ({\bf pointf} cp, {\bf pointf} p)
\item 
{\bf int} {\bf box\-\_\-connection} ({\bf node\-\_\-t} $\ast$n, {\bf pointf} p)
\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
codegen\-\_\-t {\bf D\-I\-A\-\_\-\-Code\-Gen}
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\index{diagen.\-c@{diagen.\-c}!B\-O\-L\-D@{B\-O\-L\-D}}
\index{B\-O\-L\-D@{B\-O\-L\-D}!diagen.c@{diagen.\-c}}
\subsubsection[{B\-O\-L\-D}]{\setlength{\rightskip}{0pt plus 5cm}\#define B\-O\-L\-D~1}\label{diagen_8c_a26cdbb1a00213c810caccf21cd33a631}


Definition at line 28 of file diagen.\-c.

\index{diagen.\-c@{diagen.\-c}!C\-L\-S\-T@{C\-L\-S\-T}}
\index{C\-L\-S\-T@{C\-L\-S\-T}!diagen.c@{diagen.\-c}}
\subsubsection[{C\-L\-S\-T}]{\setlength{\rightskip}{0pt plus 5cm}\#define C\-L\-S\-T~3}\label{diagen_8c_ad18b65a2840a54ca890e3680b1dfee75}


Definition at line 46 of file diagen.\-c.

\index{diagen.\-c@{diagen.\-c}!D\-I\-A\-\_\-\-R\-E\-S\-O\-L\-U\-T\-I\-O\-N@{D\-I\-A\-\_\-\-R\-E\-S\-O\-L\-U\-T\-I\-O\-N}}
\index{D\-I\-A\-\_\-\-R\-E\-S\-O\-L\-U\-T\-I\-O\-N@{D\-I\-A\-\_\-\-R\-E\-S\-O\-L\-U\-T\-I\-O\-N}!diagen.c@{diagen.\-c}}
\subsubsection[{D\-I\-A\-\_\-\-R\-E\-S\-O\-L\-U\-T\-I\-O\-N}]{\setlength{\rightskip}{0pt plus 5cm}\#define D\-I\-A\-\_\-\-R\-E\-S\-O\-L\-U\-T\-I\-O\-N~1.\-0}\label{diagen_8c_aeda74ea8fcc6108e82e9cd84ba2f955e}


Definition at line 41 of file diagen.\-c.

\index{diagen.\-c@{diagen.\-c}!E\-D\-G\-E@{E\-D\-G\-E}}
\index{E\-D\-G\-E@{E\-D\-G\-E}!diagen.c@{diagen.\-c}}
\subsubsection[{E\-D\-G\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define E\-D\-G\-E~2}\label{diagen_8c_ac243bfa96aa2c28014159ff098bd2324}


Definition at line 45 of file diagen.\-c.

\index{diagen.\-c@{diagen.\-c}!I\-T\-A\-L\-I\-C@{I\-T\-A\-L\-I\-C}}
\index{I\-T\-A\-L\-I\-C@{I\-T\-A\-L\-I\-C}!diagen.c@{diagen.\-c}}
\subsubsection[{I\-T\-A\-L\-I\-C}]{\setlength{\rightskip}{0pt plus 5cm}\#define I\-T\-A\-L\-I\-C~2}\label{diagen_8c_af706885b9b3eb2821dff28f8e7f7bb3f}


Definition at line 29 of file diagen.\-c.

\index{diagen.\-c@{diagen.\-c}!M\-A\-X\-N\-E\-S\-T@{M\-A\-X\-N\-E\-S\-T}}
\index{M\-A\-X\-N\-E\-S\-T@{M\-A\-X\-N\-E\-S\-T}!diagen.c@{diagen.\-c}}
\subsubsection[{M\-A\-X\-N\-E\-S\-T}]{\setlength{\rightskip}{0pt plus 5cm}\#define M\-A\-X\-N\-E\-S\-T~4}\label{diagen_8c_a79c19b8cf2a99f6e8588945c4976ddd5}


Definition at line 77 of file diagen.\-c.

\index{diagen.\-c@{diagen.\-c}!N\-O\-D\-E@{N\-O\-D\-E}}
\index{N\-O\-D\-E@{N\-O\-D\-E}!diagen.c@{diagen.\-c}}
\subsubsection[{N\-O\-D\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define N\-O\-D\-E~1}\label{diagen_8c_a9a2bbc66102de668efe5e9c7feb23eaa}


Definition at line 44 of file diagen.\-c.

\index{diagen.\-c@{diagen.\-c}!P\-\_\-\-D\-A\-S\-H\-E\-D@{P\-\_\-\-D\-A\-S\-H\-E\-D}}
\index{P\-\_\-\-D\-A\-S\-H\-E\-D@{P\-\_\-\-D\-A\-S\-H\-E\-D}!diagen.c@{diagen.\-c}}
\subsubsection[{P\-\_\-\-D\-A\-S\-H\-E\-D}]{\setlength{\rightskip}{0pt plus 5cm}\#define P\-\_\-\-D\-A\-S\-H\-E\-D~11		/$\ast$ or this $\ast$/}\label{diagen_8c_a4cd9cb8332daa5b89588238834593f32}


Definition at line 35 of file diagen.\-c.

\index{diagen.\-c@{diagen.\-c}!P\-\_\-\-D\-O\-T\-T\-E\-D@{P\-\_\-\-D\-O\-T\-T\-E\-D}}
\index{P\-\_\-\-D\-O\-T\-T\-E\-D@{P\-\_\-\-D\-O\-T\-T\-E\-D}!diagen.c@{diagen.\-c}}
\subsubsection[{P\-\_\-\-D\-O\-T\-T\-E\-D}]{\setlength{\rightskip}{0pt plus 5cm}\#define P\-\_\-\-D\-O\-T\-T\-E\-D~4		/$\ast$ i wasn't sure about this $\ast$/}\label{diagen_8c_acd02deed46aea084bf1924ad558954c3}


Definition at line 34 of file diagen.\-c.

\index{diagen.\-c@{diagen.\-c}!P\-\_\-\-N\-O\-N\-E@{P\-\_\-\-N\-O\-N\-E}}
\index{P\-\_\-\-N\-O\-N\-E@{P\-\_\-\-N\-O\-N\-E}!diagen.c@{diagen.\-c}}
\subsubsection[{P\-\_\-\-N\-O\-N\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define P\-\_\-\-N\-O\-N\-E~15}\label{diagen_8c_a85d9ffb730a902e2dc0e7a90621b2144}


Definition at line 33 of file diagen.\-c.

\index{diagen.\-c@{diagen.\-c}!P\-\_\-\-S\-O\-L\-I\-D@{P\-\_\-\-S\-O\-L\-I\-D}}
\index{P\-\_\-\-S\-O\-L\-I\-D@{P\-\_\-\-S\-O\-L\-I\-D}!diagen.c@{diagen.\-c}}
\subsubsection[{P\-\_\-\-S\-O\-L\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}\#define P\-\_\-\-S\-O\-L\-I\-D~0}\label{diagen_8c_ae507fcc358a6a54d5079469119b64aa7}


Definition at line 32 of file diagen.\-c.

\index{diagen.\-c@{diagen.\-c}!R\-E\-G\-U\-L\-A\-R@{R\-E\-G\-U\-L\-A\-R}}
\index{R\-E\-G\-U\-L\-A\-R@{R\-E\-G\-U\-L\-A\-R}!diagen.c@{diagen.\-c}}
\subsubsection[{R\-E\-G\-U\-L\-A\-R}]{\setlength{\rightskip}{0pt plus 5cm}\#define R\-E\-G\-U\-L\-A\-R~0}\label{diagen_8c_a9988ccc764be87fa1a8280b60d9e28c6}


Definition at line 27 of file diagen.\-c.

\index{diagen.\-c@{diagen.\-c}!S\-C\-A\-L\-E@{S\-C\-A\-L\-E}}
\index{S\-C\-A\-L\-E@{S\-C\-A\-L\-E}!diagen.c@{diagen.\-c}}
\subsubsection[{S\-C\-A\-L\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define S\-C\-A\-L\-E~({\bf D\-I\-A\-\_\-\-R\-E\-S\-O\-L\-U\-T\-I\-O\-N}/15.\-0)}\label{diagen_8c_a0cbea62f1ce2043dd08108e65ed8de1d}


Definition at line 42 of file diagen.\-c.

\index{diagen.\-c@{diagen.\-c}!S\-V\-G\-\_\-\-C\-O\-L\-O\-R\-S\-\_\-\-P@{S\-V\-G\-\_\-\-C\-O\-L\-O\-R\-S\-\_\-\-P}}
\index{S\-V\-G\-\_\-\-C\-O\-L\-O\-R\-S\-\_\-\-P@{S\-V\-G\-\_\-\-C\-O\-L\-O\-R\-S\-\_\-\-P}!diagen.c@{diagen.\-c}}
\subsubsection[{S\-V\-G\-\_\-\-C\-O\-L\-O\-R\-S\-\_\-\-P}]{\setlength{\rightskip}{0pt plus 5cm}\#define S\-V\-G\-\_\-\-C\-O\-L\-O\-R\-S\-\_\-\-P~0}\label{diagen_8c_a20ed38b3c0140a6c9890a30aa879c439}


Definition at line 132 of file diagen.\-c.

\index{diagen.\-c@{diagen.\-c}!W\-I\-D\-T\-H\-\_\-\-B\-O\-L\-D@{W\-I\-D\-T\-H\-\_\-\-B\-O\-L\-D}}
\index{W\-I\-D\-T\-H\-\_\-\-B\-O\-L\-D@{W\-I\-D\-T\-H\-\_\-\-B\-O\-L\-D}!diagen.c@{diagen.\-c}}
\subsubsection[{W\-I\-D\-T\-H\-\_\-\-B\-O\-L\-D}]{\setlength{\rightskip}{0pt plus 5cm}\#define W\-I\-D\-T\-H\-\_\-\-B\-O\-L\-D~3}\label{diagen_8c_adba6ab58c62af6c9f5bbf38091be8fbb}


Definition at line 39 of file diagen.\-c.

\index{diagen.\-c@{diagen.\-c}!W\-I\-D\-T\-H\-\_\-\-N\-O\-R\-M\-A\-L@{W\-I\-D\-T\-H\-\_\-\-N\-O\-R\-M\-A\-L}}
\index{W\-I\-D\-T\-H\-\_\-\-N\-O\-R\-M\-A\-L@{W\-I\-D\-T\-H\-\_\-\-N\-O\-R\-M\-A\-L}!diagen.c@{diagen.\-c}}
\subsubsection[{W\-I\-D\-T\-H\-\_\-\-N\-O\-R\-M\-A\-L}]{\setlength{\rightskip}{0pt plus 5cm}\#define W\-I\-D\-T\-H\-\_\-\-N\-O\-R\-M\-A\-L~1}\label{diagen_8c_abf1f919f6681c7c5c6d6771788314fdd}


Definition at line 38 of file diagen.\-c.



\subsection{Typedef Documentation}
\index{diagen.\-c@{diagen.\-c}!context\-\_\-t@{context\-\_\-t}}
\index{context\-\_\-t@{context\-\_\-t}!diagen.c@{diagen.\-c}}
\subsubsection[{context\-\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf context\-\_\-t}  {\bf context\-\_\-t}}\label{diagen_8c_a7e3aecaed460a992a4d7b91b17982b46}


\subsection{Function Documentation}
\index{diagen.\-c@{diagen.\-c}!box\-\_\-connection@{box\-\_\-connection}}
\index{box\-\_\-connection@{box\-\_\-connection}!diagen.c@{diagen.\-c}}
\subsubsection[{box\-\_\-connection}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} box\-\_\-connection (
\begin{DoxyParamCaption}
\item[{{\bf node\-\_\-t} $\ast$}]{n, }
\item[{{\bf pointf}}]{p}
\end{DoxyParamCaption}
)}\label{diagen_8c_af0b0a1a1492d0a7ed3c17523d0aacd06}


Definition at line 682 of file diagen.\-c.



References A\-L\-L\-O\-C, dist2(), D\-I\-S\-T2, N\-D\-\_\-coord, N\-D\-\_\-height, N\-D\-\_\-ht, N\-D\-\_\-lw, N\-D\-\_\-rw, N\-D\-\_\-shape\-\_\-info, N\-D\-\_\-width, polygon\-\_\-t\-::peripheries, P\-O\-I\-N\-T\-S, polygon\-\_\-t\-::sides, polygon\-\_\-t\-::vertices, pointf\-\_\-s\-::x, and pointf\-\_\-s\-::y.

\index{diagen.\-c@{diagen.\-c}!ellipse\-\_\-connection@{ellipse\-\_\-connection}}
\index{ellipse\-\_\-connection@{ellipse\-\_\-connection}!diagen.c@{diagen.\-c}}
\subsubsection[{ellipse\-\_\-connection}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} ellipse\-\_\-connection (
\begin{DoxyParamCaption}
\item[{{\bf pointf}}]{cp, }
\item[{{\bf pointf}}]{p}
\end{DoxyParamCaption}
)}\label{diagen_8c_ad76a59c0dd79c54ce04cbc94f50dc22b}


Definition at line 652 of file diagen.\-c.



References pointf\-\_\-s\-::x, and pointf\-\_\-s\-::y.



\subsection{Variable Documentation}
\index{diagen.\-c@{diagen.\-c}!D\-I\-A\-\_\-\-Code\-Gen@{D\-I\-A\-\_\-\-Code\-Gen}}
\index{D\-I\-A\-\_\-\-Code\-Gen@{D\-I\-A\-\_\-\-Code\-Gen}!diagen.c@{diagen.\-c}}
\subsubsection[{D\-I\-A\-\_\-\-Code\-Gen}]{\setlength{\rightskip}{0pt plus 5cm}codegen\-\_\-t D\-I\-A\-\_\-\-Code\-Gen}\label{diagen_8c_aebc80a3919e6f6086c14bb227e4dc52b}
{\bfseries Initial value\-:}
\begin{DoxyCode}
= \{
    dia\_reset,
    dia\_begin\_job, dia\_end\_job,
    dia\_begin\_graph, dia\_end\_graph,
    dia\_begin\_page, dia\_end\_page,
    0,  0,      
    dia\_begin\_cluster, dia\_end\_cluster,
    0,  0,      
    0,  0,      
    dia\_begin\_node, dia\_end\_node,
    dia\_begin\_edge, dia\_end\_edge,
    dia\_begin\_context, dia\_end\_context,
    0,  0,      
    dia\_set\_font, dia\_textpara,
    dia\_set\_pencolor, dia\_set\_fillcolor, dia\_set\_style,
    dia\_ellipse, dia\_polygon,
    dia\_bezier, dia\_polyline,
    1,                          
    dia\_comment,
    dia\_usershape
\}
\end{DoxyCode}


Definition at line 998 of file diagen.\-c.

