\hypertarget{txt__radiobutton_8h}{
\section{textscreen/txt\_\-radiobutton.h File Reference}
\label{dd/df3/txt__radiobutton_8h}\index{textscreen/txt\_\-radiobutton.h@{textscreen/txt\_\-radiobutton.h}}
}


Radio button widget.  


\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structtxt__radiobutton__s}{txt\_\-radiobutton\_\-s}
\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct \hyperlink{structtxt__radiobutton__s}{txt\_\-radiobutton\_\-s} \hyperlink{txt__radiobutton_8h_aa50bac343ab646ede8a222e2ab61ec4f}{txt\_\-radiobutton\_\-t}
\begin{DoxyCompactList}\small\item\em A radio button widget. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{structtxt__radiobutton__s}{txt\_\-radiobutton\_\-t} $\ast$ \hyperlink{txt__radiobutton_8h_ac45b89aafdeebb41b8ba2975a00a8ff0}{TXT\_\-NewRadioButton} (char $\ast$label, int $\ast$variable, int value)
\begin{DoxyCompactList}\small\item\em Create a new radio button widget. \end{DoxyCompactList}\item 
void \hyperlink{txt__radiobutton_8h_a2435b8735bc96708da18c69b020ffe39}{TXT\_\-SetRadioButtonLabel} (\hyperlink{structtxt__radiobutton__s}{txt\_\-radiobutton\_\-t} $\ast$radiobutton, char $\ast$value)
\begin{DoxyCompactList}\small\item\em Set the label on a radio button. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Radio button widget. 

\subsection{Typedef Documentation}
\hypertarget{txt__radiobutton_8h_aa50bac343ab646ede8a222e2ab61ec4f}{
\index{txt\_\-radiobutton.h@{txt\_\-radiobutton.h}!txt\_\-radiobutton\_\-t@{txt\_\-radiobutton\_\-t}}
\index{txt\_\-radiobutton\_\-t@{txt\_\-radiobutton\_\-t}!txt_radiobutton.h@{txt\_\-radiobutton.h}}
\subsubsection[{txt\_\-radiobutton\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf txt\_\-radiobutton\_\-s} {\bf txt\_\-radiobutton\_\-t}}}
\label{dd/df3/txt__radiobutton_8h_aa50bac343ab646ede8a222e2ab61ec4f}


A radio button widget. 

Radio buttons are typically used in groups, to allow a value to be selected from a range of options. Each radio button corresponds to a particular option that may be selected. A radio button has an indicator to indicate whether it is the currently-\/selected value, and a text label.

Internally, a radio button tracks an integer variable that may take a range of different values. Each radio button has a particular value associated with it; if the variable is equal to that value, the radio button appears selected. If a radio button is pressed by the user through the GUI, the variable is set to its value.

When a radio button is selected, the \char`\"{}selected\char`\"{} signal is emitted. 

\subsection{Function Documentation}
\hypertarget{txt__radiobutton_8h_ac45b89aafdeebb41b8ba2975a00a8ff0}{
\index{txt\_\-radiobutton.h@{txt\_\-radiobutton.h}!TXT\_\-NewRadioButton@{TXT\_\-NewRadioButton}}
\index{TXT\_\-NewRadioButton@{TXT\_\-NewRadioButton}!txt_radiobutton.h@{txt\_\-radiobutton.h}}
\subsubsection[{TXT\_\-NewRadioButton}]{\setlength{\rightskip}{0pt plus 5cm}{\bf txt\_\-radiobutton\_\-t}$\ast$ TXT\_\-NewRadioButton (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{label, }
\item[{int $\ast$}]{variable, }
\item[{int}]{value}
\end{DoxyParamCaption}
)}}
\label{dd/df3/txt__radiobutton_8h_ac45b89aafdeebb41b8ba2975a00a8ff0}


Create a new radio button widget. 


\begin{DoxyParams}{Parameters}
{\em label} & The label to display next to the radio button. \\
\hline
{\em variable} & Pointer to the variable tracking whether this radio button is selected. \\
\hline
{\em value} & If the variable is equal to this value, the radio button appears selected. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Pointer to the new radio button widget. 
\end{DoxyReturn}
\hypertarget{txt__radiobutton_8h_a2435b8735bc96708da18c69b020ffe39}{
\index{txt\_\-radiobutton.h@{txt\_\-radiobutton.h}!TXT\_\-SetRadioButtonLabel@{TXT\_\-SetRadioButtonLabel}}
\index{TXT\_\-SetRadioButtonLabel@{TXT\_\-SetRadioButtonLabel}!txt_radiobutton.h@{txt\_\-radiobutton.h}}
\subsubsection[{TXT\_\-SetRadioButtonLabel}]{\setlength{\rightskip}{0pt plus 5cm}void TXT\_\-SetRadioButtonLabel (
\begin{DoxyParamCaption}
\item[{{\bf txt\_\-radiobutton\_\-t} $\ast$}]{radiobutton, }
\item[{char $\ast$}]{value}
\end{DoxyParamCaption}
)}}
\label{dd/df3/txt__radiobutton_8h_a2435b8735bc96708da18c69b020ffe39}


Set the label on a radio button. 


\begin{DoxyParams}{Parameters}
{\em radiobutton} & The radio button. \\
\hline
{\em value} & The new label. \\
\hline
\end{DoxyParams}
