\hypertarget{txt__widget_8cpp}{
\section{textscreen/txt\_\-widget.cpp File Reference}
\label{d4/dbd/txt__widget_8cpp}\index{textscreen/txt\_\-widget.cpp@{textscreen/txt\_\-widget.cpp}}
}
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structtxt__callback__t}{txt\_\-callback\_\-t}
\item 
struct \hyperlink{structtxt__callback__table__s}{txt\_\-callback\_\-table\_\-s}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{structtxt__callback__table__s}{txt\_\-callback\_\-table\_\-t} $\ast$ \hyperlink{txt__widget_8cpp_a6cd6844ef27c00402475c753e4d04ffe}{TXT\_\-NewCallbackTable} (void)
\item 
void \hyperlink{txt__widget_8cpp_ac6ad564daa78eabf443fe9dace586701}{TXT\_\-RefCallbackTable} (\hyperlink{structtxt__callback__table__s}{txt\_\-callback\_\-table\_\-t} $\ast$table)
\item 
void \hyperlink{txt__widget_8cpp_a93a5f80baea3f79fc42d031795d0f0a8}{TXT\_\-UnrefCallbackTable} (\hyperlink{structtxt__callback__table__s}{txt\_\-callback\_\-table\_\-t} $\ast$table)
\item 
void \hyperlink{txt__widget_8cpp_a7d27be8516534dbb47941d2803e6765d}{TXT\_\-InitWidget} (TXT\_\-UNCAST\_\-ARG(widget), \hyperlink{structtxt__widget__class__s}{txt\_\-widget\_\-class\_\-t} $\ast$widget\_\-class)
\item 
void \hyperlink{txt__widget_8cpp_a1e540c4e44b850ac01e64a7697b1995d}{TXT\_\-SignalConnect} (TXT\_\-UNCAST\_\-ARG(widget), const char $\ast$signal\_\-name, \hyperlink{txt__widget_8h_a5af69a833daa0a612670eb8183fcdd5e}{TxtWidgetSignalFunc} \hyperlink{d__dehacked_8cpp_a43026160f493bce5e3714d0c344fff8b}{func}, void $\ast$user\_\-data)
\begin{DoxyCompactList}\small\item\em Set a callback function to be invoked when a signal occurs. \end{DoxyCompactList}\item 
void \hyperlink{txt__widget_8cpp_a2bd48ec5da657fe0804f64ddcb6a00de}{TXT\_\-EmitSignal} (TXT\_\-UNCAST\_\-ARG(widget), const char $\ast$signal\_\-name)
\item 
void \hyperlink{txt__widget_8cpp_a3040e26dc124a9c6c5771efb3cd5926a}{TXT\_\-CalcWidgetSize} (TXT\_\-UNCAST\_\-ARG(widget))
\item 
void \hyperlink{txt__widget_8cpp_adee9a07dd8e3526b2366919fdd810163}{TXT\_\-DrawWidget} (TXT\_\-UNCAST\_\-ARG(widget), int selected)
\item 
void \hyperlink{txt__widget_8cpp_a4c8c355348d050298255ae5854e64070}{TXT\_\-DestroyWidget} (TXT\_\-UNCAST\_\-ARG(widget))
\item 
int \hyperlink{txt__widget_8cpp_ae4c3deeaaf2ba57e9e6c3c873ecf7ded}{TXT\_\-WidgetKeyPress} (TXT\_\-UNCAST\_\-ARG(widget), int key)
\item 
void \hyperlink{txt__widget_8cpp_a34d39912bd9e9c061c19667eb3bf10b6}{TXT\_\-SetWidgetAlign} (TXT\_\-UNCAST\_\-ARG(widget), \hyperlink{txt__widget_8h_a720fa53b6419a569e27365681bb7b634}{txt\_\-horiz\_\-align\_\-t} horiz\_\-align)
\begin{DoxyCompactList}\small\item\em Set the policy for how a widget should be aligned within a table. \end{DoxyCompactList}\item 
void \hyperlink{txt__widget_8cpp_ae6053cb1c5f2f45e967965df6cd1a09b}{TXT\_\-WidgetMousePress} (TXT\_\-UNCAST\_\-ARG(widget), int \hyperlink{cl__main_8cpp_ad4dec120c8756cb4abbd4bd41f63f9bf}{x}, int \hyperlink{v__video_8cpp_a0a2f84ed7838f07779ae24c5a9086d33}{y}, int \hyperlink{client_2src_2v__palette_8cpp_a2c8b5e93edf6061940ca34185468fa03}{b})
\item 
void \hyperlink{txt__widget_8cpp_aee2675b3ad42b4dd56e554db48c9cc59}{TXT\_\-LayoutWidget} (TXT\_\-UNCAST\_\-ARG(widget))
\end{DoxyCompactItemize}


\subsection{Function Documentation}
\hypertarget{txt__widget_8cpp_a3040e26dc124a9c6c5771efb3cd5926a}{
\index{txt\_\-widget.cpp@{txt\_\-widget.cpp}!TXT\_\-CalcWidgetSize@{TXT\_\-CalcWidgetSize}}
\index{TXT\_\-CalcWidgetSize@{TXT\_\-CalcWidgetSize}!txt_widget.cpp@{txt\_\-widget.cpp}}
\subsubsection[{TXT\_\-CalcWidgetSize}]{\setlength{\rightskip}{0pt plus 5cm}void TXT\_\-CalcWidgetSize (
\begin{DoxyParamCaption}
\item[{TXT\_\-UNCAST\_\-ARG(widget)}]{}
\end{DoxyParamCaption}
)}}
\label{d4/dbd/txt__widget_8cpp_a3040e26dc124a9c6c5771efb3cd5926a}
\hypertarget{txt__widget_8cpp_a4c8c355348d050298255ae5854e64070}{
\index{txt\_\-widget.cpp@{txt\_\-widget.cpp}!TXT\_\-DestroyWidget@{TXT\_\-DestroyWidget}}
\index{TXT\_\-DestroyWidget@{TXT\_\-DestroyWidget}!txt_widget.cpp@{txt\_\-widget.cpp}}
\subsubsection[{TXT\_\-DestroyWidget}]{\setlength{\rightskip}{0pt plus 5cm}void TXT\_\-DestroyWidget (
\begin{DoxyParamCaption}
\item[{TXT\_\-UNCAST\_\-ARG(widget)}]{}
\end{DoxyParamCaption}
)}}
\label{d4/dbd/txt__widget_8cpp_a4c8c355348d050298255ae5854e64070}
\hypertarget{txt__widget_8cpp_adee9a07dd8e3526b2366919fdd810163}{
\index{txt\_\-widget.cpp@{txt\_\-widget.cpp}!TXT\_\-DrawWidget@{TXT\_\-DrawWidget}}
\index{TXT\_\-DrawWidget@{TXT\_\-DrawWidget}!txt_widget.cpp@{txt\_\-widget.cpp}}
\subsubsection[{TXT\_\-DrawWidget}]{\setlength{\rightskip}{0pt plus 5cm}void TXT\_\-DrawWidget (
\begin{DoxyParamCaption}
\item[{TXT\_\-UNCAST\_\-ARG(widget)}]{, }
\item[{int}]{selected}
\end{DoxyParamCaption}
)}}
\label{d4/dbd/txt__widget_8cpp_adee9a07dd8e3526b2366919fdd810163}
\hypertarget{txt__widget_8cpp_a2bd48ec5da657fe0804f64ddcb6a00de}{
\index{txt\_\-widget.cpp@{txt\_\-widget.cpp}!TXT\_\-EmitSignal@{TXT\_\-EmitSignal}}
\index{TXT\_\-EmitSignal@{TXT\_\-EmitSignal}!txt_widget.cpp@{txt\_\-widget.cpp}}
\subsubsection[{TXT\_\-EmitSignal}]{\setlength{\rightskip}{0pt plus 5cm}void TXT\_\-EmitSignal (
\begin{DoxyParamCaption}
\item[{TXT\_\-UNCAST\_\-ARG(widget)}]{, }
\item[{const char $\ast$}]{signal\_\-name}
\end{DoxyParamCaption}
)}}
\label{d4/dbd/txt__widget_8cpp_a2bd48ec5da657fe0804f64ddcb6a00de}
\hypertarget{txt__widget_8cpp_a7d27be8516534dbb47941d2803e6765d}{
\index{txt\_\-widget.cpp@{txt\_\-widget.cpp}!TXT\_\-InitWidget@{TXT\_\-InitWidget}}
\index{TXT\_\-InitWidget@{TXT\_\-InitWidget}!txt_widget.cpp@{txt\_\-widget.cpp}}
\subsubsection[{TXT\_\-InitWidget}]{\setlength{\rightskip}{0pt plus 5cm}void TXT\_\-InitWidget (
\begin{DoxyParamCaption}
\item[{TXT\_\-UNCAST\_\-ARG(widget)}]{, }
\item[{{\bf txt\_\-widget\_\-class\_\-t} $\ast$}]{widget\_\-class}
\end{DoxyParamCaption}
)}}
\label{d4/dbd/txt__widget_8cpp_a7d27be8516534dbb47941d2803e6765d}
\hypertarget{txt__widget_8cpp_aee2675b3ad42b4dd56e554db48c9cc59}{
\index{txt\_\-widget.cpp@{txt\_\-widget.cpp}!TXT\_\-LayoutWidget@{TXT\_\-LayoutWidget}}
\index{TXT\_\-LayoutWidget@{TXT\_\-LayoutWidget}!txt_widget.cpp@{txt\_\-widget.cpp}}
\subsubsection[{TXT\_\-LayoutWidget}]{\setlength{\rightskip}{0pt plus 5cm}void TXT\_\-LayoutWidget (
\begin{DoxyParamCaption}
\item[{TXT\_\-UNCAST\_\-ARG(widget)}]{}
\end{DoxyParamCaption}
)}}
\label{d4/dbd/txt__widget_8cpp_aee2675b3ad42b4dd56e554db48c9cc59}
\hypertarget{txt__widget_8cpp_a6cd6844ef27c00402475c753e4d04ffe}{
\index{txt\_\-widget.cpp@{txt\_\-widget.cpp}!TXT\_\-NewCallbackTable@{TXT\_\-NewCallbackTable}}
\index{TXT\_\-NewCallbackTable@{TXT\_\-NewCallbackTable}!txt_widget.cpp@{txt\_\-widget.cpp}}
\subsubsection[{TXT\_\-NewCallbackTable}]{\setlength{\rightskip}{0pt plus 5cm}{\bf txt\_\-callback\_\-table\_\-t}$\ast$ TXT\_\-NewCallbackTable (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}
\label{d4/dbd/txt__widget_8cpp_a6cd6844ef27c00402475c753e4d04ffe}
\hypertarget{txt__widget_8cpp_ac6ad564daa78eabf443fe9dace586701}{
\index{txt\_\-widget.cpp@{txt\_\-widget.cpp}!TXT\_\-RefCallbackTable@{TXT\_\-RefCallbackTable}}
\index{TXT\_\-RefCallbackTable@{TXT\_\-RefCallbackTable}!txt_widget.cpp@{txt\_\-widget.cpp}}
\subsubsection[{TXT\_\-RefCallbackTable}]{\setlength{\rightskip}{0pt plus 5cm}void TXT\_\-RefCallbackTable (
\begin{DoxyParamCaption}
\item[{{\bf txt\_\-callback\_\-table\_\-t} $\ast$}]{table}
\end{DoxyParamCaption}
)}}
\label{d4/dbd/txt__widget_8cpp_ac6ad564daa78eabf443fe9dace586701}
\hypertarget{txt__widget_8cpp_a34d39912bd9e9c061c19667eb3bf10b6}{
\index{txt\_\-widget.cpp@{txt\_\-widget.cpp}!TXT\_\-SetWidgetAlign@{TXT\_\-SetWidgetAlign}}
\index{TXT\_\-SetWidgetAlign@{TXT\_\-SetWidgetAlign}!txt_widget.cpp@{txt\_\-widget.cpp}}
\subsubsection[{TXT\_\-SetWidgetAlign}]{\setlength{\rightskip}{0pt plus 5cm}void TXT\_\-SetWidgetAlign (
\begin{DoxyParamCaption}
\item[{TXT\_\-UNCAST\_\-ARG(widget)}]{, }
\item[{{\bf txt\_\-horiz\_\-align\_\-t}}]{horiz\_\-align}
\end{DoxyParamCaption}
)}}
\label{d4/dbd/txt__widget_8cpp_a34d39912bd9e9c061c19667eb3bf10b6}


Set the policy for how a widget should be aligned within a table. 

By default, widgets are aligned to the left of the column.


\begin{DoxyParams}{Parameters}
{\em widget} & The widget. \\
\hline
{\em horiz\_\-align} & The alignment to use. \\
\hline
\end{DoxyParams}
\hypertarget{txt__widget_8cpp_a1e540c4e44b850ac01e64a7697b1995d}{
\index{txt\_\-widget.cpp@{txt\_\-widget.cpp}!TXT\_\-SignalConnect@{TXT\_\-SignalConnect}}
\index{TXT\_\-SignalConnect@{TXT\_\-SignalConnect}!txt_widget.cpp@{txt\_\-widget.cpp}}
\subsubsection[{TXT\_\-SignalConnect}]{\setlength{\rightskip}{0pt plus 5cm}void TXT\_\-SignalConnect (
\begin{DoxyParamCaption}
\item[{TXT\_\-UNCAST\_\-ARG(widget)}]{, }
\item[{const char $\ast$}]{signal\_\-name, }
\item[{{\bf TxtWidgetSignalFunc}}]{func, }
\item[{void $\ast$}]{user\_\-data}
\end{DoxyParamCaption}
)}}
\label{d4/dbd/txt__widget_8cpp_a1e540c4e44b850ac01e64a7697b1995d}


Set a callback function to be invoked when a signal occurs. 


\begin{DoxyParams}{Parameters}
{\em widget} & The widget to watch. \\
\hline
{\em signal\_\-name} & The signal to watch. \\
\hline
{\em func} & The callback function to invoke. \\
\hline
{\em user\_\-data} & User-\/specified pointer to pass to the callback function. \\
\hline
\end{DoxyParams}
\hypertarget{txt__widget_8cpp_a93a5f80baea3f79fc42d031795d0f0a8}{
\index{txt\_\-widget.cpp@{txt\_\-widget.cpp}!TXT\_\-UnrefCallbackTable@{TXT\_\-UnrefCallbackTable}}
\index{TXT\_\-UnrefCallbackTable@{TXT\_\-UnrefCallbackTable}!txt_widget.cpp@{txt\_\-widget.cpp}}
\subsubsection[{TXT\_\-UnrefCallbackTable}]{\setlength{\rightskip}{0pt plus 5cm}void TXT\_\-UnrefCallbackTable (
\begin{DoxyParamCaption}
\item[{{\bf txt\_\-callback\_\-table\_\-t} $\ast$}]{table}
\end{DoxyParamCaption}
)}}
\label{d4/dbd/txt__widget_8cpp_a93a5f80baea3f79fc42d031795d0f0a8}
\hypertarget{txt__widget_8cpp_ae4c3deeaaf2ba57e9e6c3c873ecf7ded}{
\index{txt\_\-widget.cpp@{txt\_\-widget.cpp}!TXT\_\-WidgetKeyPress@{TXT\_\-WidgetKeyPress}}
\index{TXT\_\-WidgetKeyPress@{TXT\_\-WidgetKeyPress}!txt_widget.cpp@{txt\_\-widget.cpp}}
\subsubsection[{TXT\_\-WidgetKeyPress}]{\setlength{\rightskip}{0pt plus 5cm}int TXT\_\-WidgetKeyPress (
\begin{DoxyParamCaption}
\item[{TXT\_\-UNCAST\_\-ARG(widget)}]{, }
\item[{int}]{key}
\end{DoxyParamCaption}
)}}
\label{d4/dbd/txt__widget_8cpp_ae4c3deeaaf2ba57e9e6c3c873ecf7ded}
\hypertarget{txt__widget_8cpp_ae6053cb1c5f2f45e967965df6cd1a09b}{
\index{txt\_\-widget.cpp@{txt\_\-widget.cpp}!TXT\_\-WidgetMousePress@{TXT\_\-WidgetMousePress}}
\index{TXT\_\-WidgetMousePress@{TXT\_\-WidgetMousePress}!txt_widget.cpp@{txt\_\-widget.cpp}}
\subsubsection[{TXT\_\-WidgetMousePress}]{\setlength{\rightskip}{0pt plus 5cm}void TXT\_\-WidgetMousePress (
\begin{DoxyParamCaption}
\item[{TXT\_\-UNCAST\_\-ARG(widget)}]{, }
\item[{int}]{x, }
\item[{int}]{y, }
\item[{int}]{b}
\end{DoxyParamCaption}
)}}
\label{d4/dbd/txt__widget_8cpp_ae6053cb1c5f2f45e967965df6cd1a09b}
