\section{aversive\_\-10-03-12/config/scripts/lxdialog/util.c File Reference}
\label{util_8c}\index{aversive\_\-10-03-12/config/scripts/lxdialog/util.c@{aversive\_\-10-03-12/config/scripts/lxdialog/util.c}}
{\tt \#include \char`\"{}dialog.h\char`\"{}}\par
{\tt \#include \char`\"{}colors.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
void {\bf attr\_\-clear} (WINDOW $\ast$win, int height, int width, chtype attr)
\item 
void {\bf dialog\_\-clear} (void)
\item 
void {\bf init\_\-dialog} (void)
\item 
void {\bf color\_\-setup} (void)
\item 
void {\bf end\_\-dialog} (void)
\item 
void {\bf print\_\-autowrap} (WINDOW $\ast$win, const char $\ast$prompt, int width, int y, int x)
\item 
void {\bf print\_\-button} (WINDOW $\ast$win, const char $\ast$label, int y, int x, int selected)
\item 
void {\bf draw\_\-box} (WINDOW $\ast$win, int y, int x, int height, int width, chtype box, chtype border)
\item 
void {\bf draw\_\-shadow} (WINDOW $\ast$win, int y, int x, int height, int width)
\item 
int {\bf first\_\-alpha} (const char $\ast$string, const char $\ast$exempt)
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
bool {\bf use\_\-colors} = 1
\item 
const char $\ast$ {\bf backtitle} = NULL
\item 
const char $\ast$ {\bf dialog\_\-result}
\item 
chtype {\bf attributes} [$\,$]
\item 
int {\bf color\_\-table} [$\,$][3]
\end{CompactItemize}


\subsection{Function Documentation}
\index{util.c@{util.c}!attr\_\-clear@{attr\_\-clear}}
\index{attr\_\-clear@{attr\_\-clear}!util.c@{util.c}}
\subsubsection[attr\_\-clear]{\setlength{\rightskip}{0pt plus 5cm}void attr\_\-clear (WINDOW $\ast$ {\em win}, \/  int {\em height}, \/  int {\em width}, \/  chtype {\em attr})}\label{util_8c_0376170eb0130feb558d34f227e2770f}




Definition at line 112 of file util.c.

References i.

Referenced by dialog\_\-clear(), dialog\_\-textbox(), and main().\index{util.c@{util.c}!color\_\-setup@{color\_\-setup}}
\index{color\_\-setup@{color\_\-setup}!util.c@{util.c}}
\subsubsection[color\_\-setup]{\setlength{\rightskip}{0pt plus 5cm}void color\_\-setup (void)}\label{util_8c_3d362c4de086d04f9011ed1c9b4004e2}




Definition at line 164 of file util.c.

References ATTRIBUTE\_\-COUNT, attributes, C\_\-ATTR, color\_\-table, and i.

Referenced by init\_\-dialog().\index{util.c@{util.c}!dialog\_\-clear@{dialog\_\-clear}}
\index{dialog\_\-clear@{dialog\_\-clear}!util.c@{util.c}}
\subsubsection[dialog\_\-clear]{\setlength{\rightskip}{0pt plus 5cm}void dialog\_\-clear (void)}\label{util_8c_86146b3d5277df0188e933cedca5d39b}




Definition at line 125 of file util.c.

References ACS\_\-HLINE, attr\_\-clear(), backtitle, i, and screen\_\-attr.

Referenced by init\_\-dialog().\index{util.c@{util.c}!draw\_\-box@{draw\_\-box}}
\index{draw\_\-box@{draw\_\-box}!util.c@{util.c}}
\subsubsection[draw\_\-box]{\setlength{\rightskip}{0pt plus 5cm}void draw\_\-box (WINDOW $\ast$ {\em win}, \/  int {\em y}, \/  int {\em x}, \/  int {\em height}, \/  int {\em width}, \/  chtype {\em box}, \/  chtype {\em border})}\label{util_8c_e8993357fcb365e1532839050aeb7f5b}




Definition at line 286 of file util.c.

References ACS\_\-HLINE, ACS\_\-LLCORNER, ACS\_\-LRCORNER, ACS\_\-ULCORNER, ACS\_\-URCORNER, ACS\_\-VLINE, and i.

Referenced by dialog\_\-checklist(), dialog\_\-inputbox(), dialog\_\-menu(), dialog\_\-msgbox(), dialog\_\-textbox(), and dialog\_\-yesno().\index{util.c@{util.c}!draw\_\-shadow@{draw\_\-shadow}}
\index{draw\_\-shadow@{draw\_\-shadow}!util.c@{util.c}}
\subsubsection[draw\_\-shadow]{\setlength{\rightskip}{0pt plus 5cm}void draw\_\-shadow (WINDOW $\ast$ {\em win}, \/  int {\em y}, \/  int {\em x}, \/  int {\em height}, \/  int {\em width})}\label{util_8c_da7bcddc2f2eb559814d6656e54d508e}




Definition at line 321 of file util.c.

References i, and shadow\_\-attr.

Referenced by dialog\_\-checklist(), dialog\_\-inputbox(), dialog\_\-menu(), dialog\_\-msgbox(), dialog\_\-textbox(), and dialog\_\-yesno().\index{util.c@{util.c}!end\_\-dialog@{end\_\-dialog}}
\index{end\_\-dialog@{end\_\-dialog}!util.c@{util.c}}
\subsubsection[end\_\-dialog]{\setlength{\rightskip}{0pt plus 5cm}void end\_\-dialog (void)}\label{util_8c_a92f2e2193b83f92ff8ed818629348b3}




Definition at line 185 of file util.c.

Referenced by main().\index{util.c@{util.c}!first\_\-alpha@{first\_\-alpha}}
\index{first\_\-alpha@{first\_\-alpha}!util.c@{util.c}}
\subsubsection[first\_\-alpha]{\setlength{\rightskip}{0pt plus 5cm}int first\_\-alpha (const char $\ast$ {\em string}, \/  const char $\ast$ {\em exempt})}\label{util_8c_5600caf9663ff8c1009c2727801e80bf}




Definition at line 343 of file util.c.

References i.

Referenced by dialog\_\-menu().\index{util.c@{util.c}!init\_\-dialog@{init\_\-dialog}}
\index{init\_\-dialog@{init\_\-dialog}!util.c@{util.c}}
\subsubsection[init\_\-dialog]{\setlength{\rightskip}{0pt plus 5cm}void init\_\-dialog (void)}\label{util_8c_d1a1e1cf8281b8f00dc3da0396678ca4}




Definition at line 145 of file util.c.

References color\_\-setup(), dialog\_\-clear(), TRUE, and use\_\-colors.

Referenced by main().\index{util.c@{util.c}!print\_\-autowrap@{print\_\-autowrap}}
\index{print\_\-autowrap@{print\_\-autowrap}!util.c@{util.c}}
\subsubsection[print\_\-autowrap]{\setlength{\rightskip}{0pt plus 5cm}void print\_\-autowrap (WINDOW $\ast$ {\em win}, \/  const char $\ast$ {\em prompt}, \/  int {\em width}, \/  int {\em y}, \/  int {\em x})}\label{util_8c_6ed26ca38ee337c5ae2193406ecc99e9}




Definition at line 198 of file util.c.

References i, and MAX\_\-LEN.

Referenced by dialog\_\-checklist(), dialog\_\-inputbox(), dialog\_\-menu(), dialog\_\-msgbox(), and dialog\_\-yesno().\index{util.c@{util.c}!print\_\-button@{print\_\-button}}
\index{print\_\-button@{print\_\-button}!util.c@{util.c}}
\subsubsection[print\_\-button]{\setlength{\rightskip}{0pt plus 5cm}void print\_\-button (WINDOW $\ast$ {\em win}, \/  const char $\ast$ {\em label}, \/  int {\em y}, \/  int {\em x}, \/  int {\em selected})}\label{util_8c_e7ec9faa305a3f7ccc63714b592c122e}




Definition at line 258 of file util.c.

References button\_\-active\_\-attr, button\_\-inactive\_\-attr, button\_\-key\_\-active\_\-attr, button\_\-key\_\-inactive\_\-attr, button\_\-label\_\-active\_\-attr, button\_\-label\_\-inactive\_\-attr, and i.

Referenced by dialog\_\-msgbox(), and dialog\_\-textbox().

\subsection{Variable Documentation}
\index{util.c@{util.c}!attributes@{attributes}}
\index{attributes@{attributes}!util.c@{util.c}}
\subsubsection[attributes]{\setlength{\rightskip}{0pt plus 5cm}chtype {\bf attributes}[$\,$]}\label{util_8c_ff710110c3c901e4d04f919cdba04e7e}




Definition at line 35 of file util.c.

Referenced by color\_\-setup().\index{util.c@{util.c}!backtitle@{backtitle}}
\index{backtitle@{backtitle}!util.c@{util.c}}
\subsubsection[backtitle]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ {\bf backtitle} = NULL}\label{util_8c_0a8de70ccf2375243ebae333c25361c9}




Definition at line 28 of file util.c.

Referenced by dialog\_\-clear(), and main().\index{util.c@{util.c}!color\_\-table@{color\_\-table}}
\index{color\_\-table@{color\_\-table}!util.c@{util.c}}
\subsubsection[color\_\-table]{\setlength{\rightskip}{0pt plus 5cm}int {\bf color\_\-table}[$\,$][3]}\label{util_8c_18f548c3c7c2f2e840d563b0eef71577}




Definition at line 74 of file util.c.

Referenced by color\_\-setup().\index{util.c@{util.c}!dialog\_\-result@{dialog\_\-result}}
\index{dialog\_\-result@{dialog\_\-result}!util.c@{util.c}}
\subsubsection[dialog\_\-result]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ {\bf dialog\_\-result}}\label{util_8c_42c2375d7ef9d93351beec9ebc81f44e}




Definition at line 30 of file util.c.\index{util.c@{util.c}!use\_\-colors@{use\_\-colors}}
\index{use\_\-colors@{use\_\-colors}!util.c@{util.c}}
\subsubsection[use\_\-colors]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf use\_\-colors} = 1}\label{util_8c_dc421fc2d125679f79ad780d1763f912}




Definition at line 26 of file util.c.

Referenced by init\_\-dialog().