\section{lib/common/vtxgen.c File Reference}
\label{vtxgen_8c}\index{lib/common/vtxgen.\-c@{lib/common/vtxgen.\-c}}
{\ttfamily \#include \char`\"{}render.\-h\char`\"{}}\\*
{\ttfamily \#include $<$time.\-h$>$}\\*
Include dependency graph for vtxgen.\-c\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{vtxgen_8c__incl}
\end{center}
\end{figure}
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct {\bf shapemap\-\_\-s}
\item 
struct {\bf context\-\_\-t}
\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bf S\-U\-P\-P\-O\-R\-T\-\_\-\-W\-R\-I\-T\-E\-D\-A\-T\-E}
\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 U\-N\-D\-E\-R\-S\-O\-R\-E}~4
\item 
\#define {\bf S\-T\-R\-I\-K\-E}~8
\item 
\#define {\bf P\-\_\-\-N\-O\-N\-E}~0
\item 
\#define {\bf P\-\_\-\-S\-O\-L\-I\-D}~1
\item 
\#define {\bf P\-\_\-\-D\-O\-T\-T\-E\-D}~2
\item 
\#define {\bf P\-\_\-\-D\-A\-S\-H\-E\-D}~3
\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 M\-A\-X\-N\-E\-S\-T}~4
\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct {\bf shapemap\-\_\-s} {\bf shapemap\-\_\-t}
\item 
typedef struct {\bf context\-\_\-t} {\bf context\-\_\-t}
\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
codegen\-\_\-t {\bf V\-T\-X\-\_\-\-Code\-Gen}
\end{DoxyCompactItemize}


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


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

\index{vtxgen.\-c@{vtxgen.\-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}!vtxgen.c@{vtxgen.\-c}}
\subsubsection[{I\-T\-A\-L\-I\-C}]{\setlength{\rightskip}{0pt plus 5cm}\#define I\-T\-A\-L\-I\-C~2}\label{vtxgen_8c_af706885b9b3eb2821dff28f8e7f7bb3f}


Definition at line 36 of file vtxgen.\-c.

\index{vtxgen.\-c@{vtxgen.\-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}!vtxgen.c@{vtxgen.\-c}}
\subsubsection[{M\-A\-X\-N\-E\-S\-T}]{\setlength{\rightskip}{0pt plus 5cm}\#define M\-A\-X\-N\-E\-S\-T~4}\label{vtxgen_8c_a79c19b8cf2a99f6e8588945c4976ddd5}


Definition at line 82 of file vtxgen.\-c.

\index{vtxgen.\-c@{vtxgen.\-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}!vtxgen.c@{vtxgen.\-c}}
\subsubsection[{P\-\_\-\-D\-A\-S\-H\-E\-D}]{\setlength{\rightskip}{0pt plus 5cm}\#define P\-\_\-\-D\-A\-S\-H\-E\-D~3}\label{vtxgen_8c_a4cd9cb8332daa5b89588238834593f32}


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

\index{vtxgen.\-c@{vtxgen.\-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}!vtxgen.c@{vtxgen.\-c}}
\subsubsection[{P\-\_\-\-D\-O\-T\-T\-E\-D}]{\setlength{\rightskip}{0pt plus 5cm}\#define P\-\_\-\-D\-O\-T\-T\-E\-D~2}\label{vtxgen_8c_acd02deed46aea084bf1924ad558954c3}


Definition at line 43 of file vtxgen.\-c.

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


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

\index{vtxgen.\-c@{vtxgen.\-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}!vtxgen.c@{vtxgen.\-c}}
\subsubsection[{P\-\_\-\-S\-O\-L\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}\#define P\-\_\-\-S\-O\-L\-I\-D~1}\label{vtxgen_8c_ae507fcc358a6a54d5079469119b64aa7}


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

\index{vtxgen.\-c@{vtxgen.\-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}!vtxgen.c@{vtxgen.\-c}}
\subsubsection[{R\-E\-G\-U\-L\-A\-R}]{\setlength{\rightskip}{0pt plus 5cm}\#define R\-E\-G\-U\-L\-A\-R~0}\label{vtxgen_8c_a9988ccc764be87fa1a8280b60d9e28c6}


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

\index{vtxgen.\-c@{vtxgen.\-c}!S\-T\-R\-I\-K\-E@{S\-T\-R\-I\-K\-E}}
\index{S\-T\-R\-I\-K\-E@{S\-T\-R\-I\-K\-E}!vtxgen.c@{vtxgen.\-c}}
\subsubsection[{S\-T\-R\-I\-K\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define S\-T\-R\-I\-K\-E~8}\label{vtxgen_8c_a4aa2796cdeec0e5c49549862746030a2}


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

\index{vtxgen.\-c@{vtxgen.\-c}!S\-U\-P\-P\-O\-R\-T\-\_\-\-W\-R\-I\-T\-E\-D\-A\-T\-E@{S\-U\-P\-P\-O\-R\-T\-\_\-\-W\-R\-I\-T\-E\-D\-A\-T\-E}}
\index{S\-U\-P\-P\-O\-R\-T\-\_\-\-W\-R\-I\-T\-E\-D\-A\-T\-E@{S\-U\-P\-P\-O\-R\-T\-\_\-\-W\-R\-I\-T\-E\-D\-A\-T\-E}!vtxgen.c@{vtxgen.\-c}}
\subsubsection[{S\-U\-P\-P\-O\-R\-T\-\_\-\-W\-R\-I\-T\-E\-D\-A\-T\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define S\-U\-P\-P\-O\-R\-T\-\_\-\-W\-R\-I\-T\-E\-D\-A\-T\-E}\label{vtxgen_8c_aba75f7e33f538da080c38203dc5f684a}


Definition at line 25 of file vtxgen.\-c.

\index{vtxgen.\-c@{vtxgen.\-c}!U\-N\-D\-E\-R\-S\-O\-R\-E@{U\-N\-D\-E\-R\-S\-O\-R\-E}}
\index{U\-N\-D\-E\-R\-S\-O\-R\-E@{U\-N\-D\-E\-R\-S\-O\-R\-E}!vtxgen.c@{vtxgen.\-c}}
\subsubsection[{U\-N\-D\-E\-R\-S\-O\-R\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define U\-N\-D\-E\-R\-S\-O\-R\-E~4}\label{vtxgen_8c_ace7bf2599379f7110453f48fd7a3ac09}


Definition at line 37 of file vtxgen.\-c.

\index{vtxgen.\-c@{vtxgen.\-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}!vtxgen.c@{vtxgen.\-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{vtxgen_8c_adba6ab58c62af6c9f5bbf38091be8fbb}


Definition at line 48 of file vtxgen.\-c.

\index{vtxgen.\-c@{vtxgen.\-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}!vtxgen.c@{vtxgen.\-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{vtxgen_8c_abf1f919f6681c7c5c6d6771788314fdd}


Definition at line 47 of file vtxgen.\-c.



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


\subsection{Variable Documentation}
\index{vtxgen.\-c@{vtxgen.\-c}!V\-T\-X\-\_\-\-Code\-Gen@{V\-T\-X\-\_\-\-Code\-Gen}}
\index{V\-T\-X\-\_\-\-Code\-Gen@{V\-T\-X\-\_\-\-Code\-Gen}!vtxgen.c@{vtxgen.\-c}}
\subsubsection[{V\-T\-X\-\_\-\-Code\-Gen}]{\setlength{\rightskip}{0pt plus 5cm}codegen\-\_\-t V\-T\-X\-\_\-\-Code\-Gen}\label{vtxgen_8c_a937196b25798d0ea6838b9f3ee909fa8}
{\bfseries Initial value\-:}
\begin{DoxyCode}
= \{
    vtx\_reset,
    vtx\_begin\_job, 0,           
    vtx\_begin\_graph, 0,         
    vtx\_begin\_page, 0,          
    0,  0,      
    0,  0,      
    vtx\_begin\_nodes, vtx\_end\_nodes,
    vtx\_begin\_edges, vtx\_end\_edges,
    vtx\_begin\_node, vtx\_end\_node,
    vtx\_begin\_edge, vtx\_end\_edge,
    vtx\_begin\_context, vtx\_end\_context,
    0,  0,      
    vtx\_set\_font, vtx\_textpara,
    vtx\_set\_color, vtx\_set\_color, vtx\_set\_style,
    vtx\_ellipse, vtx\_polygon,
    vtx\_bezier, vtx\_polyline,
    1,                          
    vtx\_comment,
    vtx\_usershape
\}
\end{DoxyCode}


Definition at line 626 of file vtxgen.\-c.

