\hypertarget{txt__button_8h}{
\section{textscreen/txt\_\-button.h File Reference}
\label{d5/dd1/txt__button_8h}\index{textscreen/txt\_\-button.h@{textscreen/txt\_\-button.h}}
}


Button widget.  


\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structtxt__button__s}{txt\_\-button\_\-s}
\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct \hyperlink{structtxt__button__s}{txt\_\-button\_\-s} \hyperlink{txt__button_8h_ae4b82c377738d73fce3d6d6a1087a22a}{txt\_\-button\_\-t}
\begin{DoxyCompactList}\small\item\em Button widget. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{structtxt__button__s}{txt\_\-button\_\-t} $\ast$ \hyperlink{txt__button_8h_a2a0e50d122dc64672bda1d04da8a6b03}{TXT\_\-NewButton} (char $\ast$label)
\begin{DoxyCompactList}\small\item\em Create a new button widget. \end{DoxyCompactList}\item 
\hyperlink{structtxt__button__s}{txt\_\-button\_\-t} $\ast$ \hyperlink{txt__button_8h_a5301707cecc29dc27d34a532deb14db6}{TXT\_\-NewButton2} (char $\ast$label, \hyperlink{txt__widget_8h_a5af69a833daa0a612670eb8183fcdd5e}{TxtWidgetSignalFunc} \hyperlink{d__dehacked_8cpp_a43026160f493bce5e3714d0c344fff8b}{func}, void $\ast$user\_\-data)
\begin{DoxyCompactList}\small\item\em Create a new button widget, binding the \char`\"{}pressed\char`\"{} signal to a specified callback function. \end{DoxyCompactList}\item 
void \hyperlink{txt__button_8h_a142876eb686688e40fe7a69d81356411}{TXT\_\-SetButtonLabel} (\hyperlink{structtxt__button__s}{txt\_\-button\_\-t} $\ast$button, char $\ast$label)
\begin{DoxyCompactList}\small\item\em Change the label used on a button. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Button widget. 

\subsection{Typedef Documentation}
\hypertarget{txt__button_8h_ae4b82c377738d73fce3d6d6a1087a22a}{
\index{txt\_\-button.h@{txt\_\-button.h}!txt\_\-button\_\-t@{txt\_\-button\_\-t}}
\index{txt\_\-button\_\-t@{txt\_\-button\_\-t}!txt_button.h@{txt\_\-button.h}}
\subsubsection[{txt\_\-button\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf txt\_\-button\_\-s} {\bf txt\_\-button\_\-t}}}
\label{d5/dd1/txt__button_8h_ae4b82c377738d73fce3d6d6a1087a22a}


Button widget. 

A button is a widget that can be selected to perform some action. When a button is pressed, it emits the \char`\"{}pressed\char`\"{} signal. 

\subsection{Function Documentation}
\hypertarget{txt__button_8h_a2a0e50d122dc64672bda1d04da8a6b03}{
\index{txt\_\-button.h@{txt\_\-button.h}!TXT\_\-NewButton@{TXT\_\-NewButton}}
\index{TXT\_\-NewButton@{TXT\_\-NewButton}!txt_button.h@{txt\_\-button.h}}
\subsubsection[{TXT\_\-NewButton}]{\setlength{\rightskip}{0pt plus 5cm}{\bf txt\_\-button\_\-t}$\ast$ TXT\_\-NewButton (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{label}
\end{DoxyParamCaption}
)}}
\label{d5/dd1/txt__button_8h_a2a0e50d122dc64672bda1d04da8a6b03}


Create a new button widget. 


\begin{DoxyParams}{Parameters}
{\em label} & The label to use on the new button. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Pointer to the new button widget. 
\end{DoxyReturn}
\hypertarget{txt__button_8h_a5301707cecc29dc27d34a532deb14db6}{
\index{txt\_\-button.h@{txt\_\-button.h}!TXT\_\-NewButton2@{TXT\_\-NewButton2}}
\index{TXT\_\-NewButton2@{TXT\_\-NewButton2}!txt_button.h@{txt\_\-button.h}}
\subsubsection[{TXT\_\-NewButton2}]{\setlength{\rightskip}{0pt plus 5cm}{\bf txt\_\-button\_\-t}$\ast$ TXT\_\-NewButton2 (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{label, }
\item[{{\bf TxtWidgetSignalFunc}}]{func, }
\item[{void $\ast$}]{user\_\-data}
\end{DoxyParamCaption}
)}}
\label{d5/dd1/txt__button_8h_a5301707cecc29dc27d34a532deb14db6}


Create a new button widget, binding the \char`\"{}pressed\char`\"{} signal to a specified callback function. 


\begin{DoxyParams}{Parameters}
{\em label} & The label to use on the new button. \\
\hline
{\em func} & The callback function to invoke. \\
\hline
{\em user\_\-data} & User-\/specified pointer to pass to the callback. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Pointer to the new button widget. 
\end{DoxyReturn}
\hypertarget{txt__button_8h_a142876eb686688e40fe7a69d81356411}{
\index{txt\_\-button.h@{txt\_\-button.h}!TXT\_\-SetButtonLabel@{TXT\_\-SetButtonLabel}}
\index{TXT\_\-SetButtonLabel@{TXT\_\-SetButtonLabel}!txt_button.h@{txt\_\-button.h}}
\subsubsection[{TXT\_\-SetButtonLabel}]{\setlength{\rightskip}{0pt plus 5cm}void TXT\_\-SetButtonLabel (
\begin{DoxyParamCaption}
\item[{{\bf txt\_\-button\_\-t} $\ast$}]{button, }
\item[{char $\ast$}]{label}
\end{DoxyParamCaption}
)}}
\label{d5/dd1/txt__button_8h_a142876eb686688e40fe7a69d81356411}


Change the label used on a button. 


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