\hypertarget{txt__checkbox_8h}{
\section{textscreen/txt\_\-checkbox.h File Reference}
\label{d6/dc0/txt__checkbox_8h}\index{textscreen/txt\_\-checkbox.h@{textscreen/txt\_\-checkbox.h}}
}


Checkbox widget.  


\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structtxt__checkbox__s}{txt\_\-checkbox\_\-s}
\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct \hyperlink{structtxt__checkbox__s}{txt\_\-checkbox\_\-s} \hyperlink{txt__checkbox_8h_a5dc22c5d7aecdc22e47b9a5ccffb0439}{txt\_\-checkbox\_\-t}
\begin{DoxyCompactList}\small\item\em Checkbox widget. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{structtxt__checkbox__s}{txt\_\-checkbox\_\-t} $\ast$ \hyperlink{txt__checkbox_8h_ab2bb1453a95d963ab1320264109a8f54}{TXT\_\-NewCheckBox} (char $\ast$label, int $\ast$variable)
\begin{DoxyCompactList}\small\item\em Create a new checkbox. \end{DoxyCompactList}\item 
\hyperlink{structtxt__checkbox__s}{txt\_\-checkbox\_\-t} $\ast$ \hyperlink{txt__checkbox_8h_a7046fa89bf9a03410cfc00d7c56090f9}{TXT\_\-NewInvertedCheckBox} (char $\ast$label, int $\ast$variable)
\begin{DoxyCompactList}\small\item\em Create a new inverted checkbox. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Checkbox widget. 

\subsection{Typedef Documentation}
\hypertarget{txt__checkbox_8h_a5dc22c5d7aecdc22e47b9a5ccffb0439}{
\index{txt\_\-checkbox.h@{txt\_\-checkbox.h}!txt\_\-checkbox\_\-t@{txt\_\-checkbox\_\-t}}
\index{txt\_\-checkbox\_\-t@{txt\_\-checkbox\_\-t}!txt_checkbox.h@{txt\_\-checkbox.h}}
\subsubsection[{txt\_\-checkbox\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf txt\_\-checkbox\_\-s} {\bf txt\_\-checkbox\_\-t}}}
\label{d6/dc0/txt__checkbox_8h_a5dc22c5d7aecdc22e47b9a5ccffb0439}


Checkbox widget. 

A checkbox is used to control boolean values that may be either on or off. The widget has a label that is displayed to the right of the checkbox indicator. The widget tracks an integer variable; if the variable is non-\/zero, the checkbox is checked, while if it is zero, the checkbox is unchecked. It is also possible to create \char`\"{}inverted\char`\"{} checkboxes where this logic is reversed.

When a checkbox is changed, it emits the \char`\"{}changed\char`\"{} signal. 

\subsection{Function Documentation}
\hypertarget{txt__checkbox_8h_ab2bb1453a95d963ab1320264109a8f54}{
\index{txt\_\-checkbox.h@{txt\_\-checkbox.h}!TXT\_\-NewCheckBox@{TXT\_\-NewCheckBox}}
\index{TXT\_\-NewCheckBox@{TXT\_\-NewCheckBox}!txt_checkbox.h@{txt\_\-checkbox.h}}
\subsubsection[{TXT\_\-NewCheckBox}]{\setlength{\rightskip}{0pt plus 5cm}{\bf txt\_\-checkbox\_\-t}$\ast$ TXT\_\-NewCheckBox (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{label, }
\item[{int $\ast$}]{variable}
\end{DoxyParamCaption}
)}}
\label{d6/dc0/txt__checkbox_8h_ab2bb1453a95d963ab1320264109a8f54}


Create a new checkbox. 


\begin{DoxyParams}{Parameters}
{\em label} & The label for the new checkbox. \\
\hline
{\em variable} & Pointer to the variable containing this checkbox's value. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Pointer to the new checkbox. 
\end{DoxyReturn}
\hypertarget{txt__checkbox_8h_a7046fa89bf9a03410cfc00d7c56090f9}{
\index{txt\_\-checkbox.h@{txt\_\-checkbox.h}!TXT\_\-NewInvertedCheckBox@{TXT\_\-NewInvertedCheckBox}}
\index{TXT\_\-NewInvertedCheckBox@{TXT\_\-NewInvertedCheckBox}!txt_checkbox.h@{txt\_\-checkbox.h}}
\subsubsection[{TXT\_\-NewInvertedCheckBox}]{\setlength{\rightskip}{0pt plus 5cm}{\bf txt\_\-checkbox\_\-t}$\ast$ TXT\_\-NewInvertedCheckBox (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{label, }
\item[{int $\ast$}]{variable}
\end{DoxyParamCaption}
)}}
\label{d6/dc0/txt__checkbox_8h_a7046fa89bf9a03410cfc00d7c56090f9}


Create a new inverted checkbox. 

An inverted checkbox displays the opposite of a normal checkbox; where it would be checked, it appears unchecked, and vice-\/versa.


\begin{DoxyParams}{Parameters}
{\em label} & The label for the new checkbox. \\
\hline
{\em variable} & Pointer to the variable containing this checkbox's value. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Pointer to the new checkbox. 
\end{DoxyReturn}
