\hypertarget{txt__widget_8h}{
\section{textscreen/txt\_\-widget.h File Reference}
\label{dd/d55/txt__widget_8h}\index{textscreen/txt\_\-widget.h@{textscreen/txt\_\-widget.h}}
}


Base \char`\"{}widget\char`\"{} GUI component class.  


\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structtxt__widget__class__s}{txt\_\-widget\_\-class\_\-s}
\item 
struct \hyperlink{structtxt__widget__s}{txt\_\-widget\_\-s}
\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct \hyperlink{structtxt__widget__s}{txt\_\-widget\_\-s} \hyperlink{txt__widget_8h_a8aa75d430ef094f64469086f71a5a89c}{txt\_\-widget\_\-t}
\begin{DoxyCompactList}\small\item\em A GUI widget. \end{DoxyCompactList}\item 
typedef struct \hyperlink{structtxt__widget__class__s}{txt\_\-widget\_\-class\_\-s} \hyperlink{txt__widget_8h_a25580a2afb1a175e6f6785a4ab34aeb9}{txt\_\-widget\_\-class\_\-t}
\item 
typedef struct \hyperlink{structtxt__callback__table__s}{txt\_\-callback\_\-table\_\-s} \hyperlink{txt__widget_8h_a48fbae83c87ab1ae7a41e45c12446835}{txt\_\-callback\_\-table\_\-t}
\item 
typedef void($\ast$ \hyperlink{txt__widget_8h_a40433407c878cba4f5d65f0688cf3a24}{TxtWidgetSizeCalc} )(TXT\_\-UNCAST\_\-ARG(widget))
\item 
typedef void($\ast$ \hyperlink{txt__widget_8h_a1d5722c6dbecd36d7e2d2610de731ab7}{TxtWidgetDrawer} )(TXT\_\-UNCAST\_\-ARG(widget), int selected)
\item 
typedef void($\ast$ \hyperlink{txt__widget_8h_a403b819c5fcfb85a028b7051439336aa}{TxtWidgetDestroy} )(TXT\_\-UNCAST\_\-ARG(widget))
\item 
typedef int($\ast$ \hyperlink{txt__widget_8h_ad37481b40aff8db6915bca5b6e27b246}{TxtWidgetKeyPress} )(TXT\_\-UNCAST\_\-ARG(widget), int key)
\item 
typedef void($\ast$ \hyperlink{txt__widget_8h_a5af69a833daa0a612670eb8183fcdd5e}{TxtWidgetSignalFunc} )(TXT\_\-UNCAST\_\-ARG(widget), void $\ast$user\_\-data)
\item 
typedef void($\ast$ \hyperlink{txt__widget_8h_a5673a76116a77e8d54ee05d1cf08172c}{TxtMousePressFunc} )(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 
typedef void($\ast$ \hyperlink{txt__widget_8h_a0b1a3546837521b588410f2578f8ec64}{TxtWidgetLayoutFunc} )(TXT\_\-UNCAST\_\-ARG(widget))
\end{DoxyCompactItemize}
\subsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum \hyperlink{txt__widget_8h_a3eb807c8301cad23a9b895e8c9066e3f}{txt\_\-vert\_\-align\_\-t} \{ \hyperlink{txt__widget_8h_a3eb807c8301cad23a9b895e8c9066e3fa00d3204977c06ab198f56f83555f1930}{TXT\_\-VERT\_\-TOP}, 
\hyperlink{txt__widget_8h_a3eb807c8301cad23a9b895e8c9066e3fa0849d787651dbcfc57b8832d56296512}{TXT\_\-VERT\_\-CENTER}, 
\hyperlink{txt__widget_8h_a3eb807c8301cad23a9b895e8c9066e3fa595401c8d2d2333a0075611bfdb1ed71}{TXT\_\-VERT\_\-BOTTOM}
 \}
\item 
enum \hyperlink{txt__widget_8h_a720fa53b6419a569e27365681bb7b634}{txt\_\-horiz\_\-align\_\-t} \{ \hyperlink{txt__widget_8h_a720fa53b6419a569e27365681bb7b634a0bdbd293538123c77dc58a9b773edf40}{TXT\_\-HORIZ\_\-LEFT}, 
\hyperlink{txt__widget_8h_a720fa53b6419a569e27365681bb7b634ab089cf7a3ea102e587d1f793245837d0}{TXT\_\-HORIZ\_\-CENTER}, 
\hyperlink{txt__widget_8h_a720fa53b6419a569e27365681bb7b634a5a43ec6e96d9afe10a9be6ddace9b893}{TXT\_\-HORIZ\_\-RIGHT}
 \}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{txt__widget_8h_a7d27be8516534dbb47941d2803e6765d}{TXT\_\-InitWidget} (TXT\_\-UNCAST\_\-ARG(widget), \hyperlink{structtxt__widget__class__s}{txt\_\-widget\_\-class\_\-t} $\ast$widget\_\-class)
\item 
void \hyperlink{txt__widget_8h_a3040e26dc124a9c6c5771efb3cd5926a}{TXT\_\-CalcWidgetSize} (TXT\_\-UNCAST\_\-ARG(widget))
\item 
void \hyperlink{txt__widget_8h_adee9a07dd8e3526b2366919fdd810163}{TXT\_\-DrawWidget} (TXT\_\-UNCAST\_\-ARG(widget), int selected)
\item 
void \hyperlink{txt__widget_8h_a2bd48ec5da657fe0804f64ddcb6a00de}{TXT\_\-EmitSignal} (TXT\_\-UNCAST\_\-ARG(widget), const char $\ast$signal\_\-name)
\item 
int \hyperlink{txt__widget_8h_ae4c3deeaaf2ba57e9e6c3c873ecf7ded}{TXT\_\-WidgetKeyPress} (TXT\_\-UNCAST\_\-ARG(widget), int key)
\item 
void \hyperlink{txt__widget_8h_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_8h_a4c8c355348d050298255ae5854e64070}{TXT\_\-DestroyWidget} (TXT\_\-UNCAST\_\-ARG(widget))
\item 
void \hyperlink{txt__widget_8h_aee2675b3ad42b4dd56e554db48c9cc59}{TXT\_\-LayoutWidget} (TXT\_\-UNCAST\_\-ARG(widget))
\item 
void \hyperlink{txt__widget_8h_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_8h_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}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Base \char`\"{}widget\char`\"{} GUI component class. 

\subsection{Typedef Documentation}
\hypertarget{txt__widget_8h_a48fbae83c87ab1ae7a41e45c12446835}{
\index{txt\_\-widget.h@{txt\_\-widget.h}!txt\_\-callback\_\-table\_\-t@{txt\_\-callback\_\-table\_\-t}}
\index{txt\_\-callback\_\-table\_\-t@{txt\_\-callback\_\-table\_\-t}!txt_widget.h@{txt\_\-widget.h}}
\subsubsection[{txt\_\-callback\_\-table\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf txt\_\-callback\_\-table\_\-s} {\bf txt\_\-callback\_\-table\_\-t}}}
\label{dd/d55/txt__widget_8h_a48fbae83c87ab1ae7a41e45c12446835}
\hypertarget{txt__widget_8h_a25580a2afb1a175e6f6785a4ab34aeb9}{
\index{txt\_\-widget.h@{txt\_\-widget.h}!txt\_\-widget\_\-class\_\-t@{txt\_\-widget\_\-class\_\-t}}
\index{txt\_\-widget\_\-class\_\-t@{txt\_\-widget\_\-class\_\-t}!txt_widget.h@{txt\_\-widget.h}}
\subsubsection[{txt\_\-widget\_\-class\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf txt\_\-widget\_\-class\_\-s} {\bf txt\_\-widget\_\-class\_\-t}}}
\label{dd/d55/txt__widget_8h_a25580a2afb1a175e6f6785a4ab34aeb9}
\hypertarget{txt__widget_8h_a8aa75d430ef094f64469086f71a5a89c}{
\index{txt\_\-widget.h@{txt\_\-widget.h}!txt\_\-widget\_\-t@{txt\_\-widget\_\-t}}
\index{txt\_\-widget\_\-t@{txt\_\-widget\_\-t}!txt_widget.h@{txt\_\-widget.h}}
\subsubsection[{txt\_\-widget\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf txt\_\-widget\_\-s} {\bf txt\_\-widget\_\-t}}}
\label{dd/d55/txt__widget_8h_a8aa75d430ef094f64469086f71a5a89c}


A GUI widget. 

A widget is an individual component of a GUI. Various different widget types exist.

Widgets may emit signals. The types of signal emitted by a widget depend on the type of the widget. It is possible to be notified when a signal occurs using the \hyperlink{txt__widget_8h_a1e540c4e44b850ac01e64a7697b1995d}{TXT\_\-SignalConnect} function. \hypertarget{txt__widget_8h_a5673a76116a77e8d54ee05d1cf08172c}{
\index{txt\_\-widget.h@{txt\_\-widget.h}!TxtMousePressFunc@{TxtMousePressFunc}}
\index{TxtMousePressFunc@{TxtMousePressFunc}!txt_widget.h@{txt\_\-widget.h}}
\subsubsection[{TxtMousePressFunc}]{\setlength{\rightskip}{0pt plus 5cm}typedef void($\ast$ {\bf TxtMousePressFunc})(TXT\_\-UNCAST\_\-ARG(widget), int {\bf x}, int {\bf y}, int {\bf b})}}
\label{dd/d55/txt__widget_8h_a5673a76116a77e8d54ee05d1cf08172c}
\hypertarget{txt__widget_8h_a403b819c5fcfb85a028b7051439336aa}{
\index{txt\_\-widget.h@{txt\_\-widget.h}!TxtWidgetDestroy@{TxtWidgetDestroy}}
\index{TxtWidgetDestroy@{TxtWidgetDestroy}!txt_widget.h@{txt\_\-widget.h}}
\subsubsection[{TxtWidgetDestroy}]{\setlength{\rightskip}{0pt plus 5cm}typedef void($\ast$ {\bf TxtWidgetDestroy})(TXT\_\-UNCAST\_\-ARG(widget))}}
\label{dd/d55/txt__widget_8h_a403b819c5fcfb85a028b7051439336aa}
\hypertarget{txt__widget_8h_a1d5722c6dbecd36d7e2d2610de731ab7}{
\index{txt\_\-widget.h@{txt\_\-widget.h}!TxtWidgetDrawer@{TxtWidgetDrawer}}
\index{TxtWidgetDrawer@{TxtWidgetDrawer}!txt_widget.h@{txt\_\-widget.h}}
\subsubsection[{TxtWidgetDrawer}]{\setlength{\rightskip}{0pt plus 5cm}typedef void($\ast$ {\bf TxtWidgetDrawer})(TXT\_\-UNCAST\_\-ARG(widget), int selected)}}
\label{dd/d55/txt__widget_8h_a1d5722c6dbecd36d7e2d2610de731ab7}
\hypertarget{txt__widget_8h_ad37481b40aff8db6915bca5b6e27b246}{
\index{txt\_\-widget.h@{txt\_\-widget.h}!TxtWidgetKeyPress@{TxtWidgetKeyPress}}
\index{TxtWidgetKeyPress@{TxtWidgetKeyPress}!txt_widget.h@{txt\_\-widget.h}}
\subsubsection[{TxtWidgetKeyPress}]{\setlength{\rightskip}{0pt plus 5cm}typedef int($\ast$ {\bf TxtWidgetKeyPress})(TXT\_\-UNCAST\_\-ARG(widget), int key)}}
\label{dd/d55/txt__widget_8h_ad37481b40aff8db6915bca5b6e27b246}
\hypertarget{txt__widget_8h_a0b1a3546837521b588410f2578f8ec64}{
\index{txt\_\-widget.h@{txt\_\-widget.h}!TxtWidgetLayoutFunc@{TxtWidgetLayoutFunc}}
\index{TxtWidgetLayoutFunc@{TxtWidgetLayoutFunc}!txt_widget.h@{txt\_\-widget.h}}
\subsubsection[{TxtWidgetLayoutFunc}]{\setlength{\rightskip}{0pt plus 5cm}typedef void($\ast$ {\bf TxtWidgetLayoutFunc})(TXT\_\-UNCAST\_\-ARG(widget))}}
\label{dd/d55/txt__widget_8h_a0b1a3546837521b588410f2578f8ec64}
\hypertarget{txt__widget_8h_a5af69a833daa0a612670eb8183fcdd5e}{
\index{txt\_\-widget.h@{txt\_\-widget.h}!TxtWidgetSignalFunc@{TxtWidgetSignalFunc}}
\index{TxtWidgetSignalFunc@{TxtWidgetSignalFunc}!txt_widget.h@{txt\_\-widget.h}}
\subsubsection[{TxtWidgetSignalFunc}]{\setlength{\rightskip}{0pt plus 5cm}typedef void($\ast$ {\bf TxtWidgetSignalFunc})(TXT\_\-UNCAST\_\-ARG(widget), void $\ast$user\_\-data)}}
\label{dd/d55/txt__widget_8h_a5af69a833daa0a612670eb8183fcdd5e}
\hypertarget{txt__widget_8h_a40433407c878cba4f5d65f0688cf3a24}{
\index{txt\_\-widget.h@{txt\_\-widget.h}!TxtWidgetSizeCalc@{TxtWidgetSizeCalc}}
\index{TxtWidgetSizeCalc@{TxtWidgetSizeCalc}!txt_widget.h@{txt\_\-widget.h}}
\subsubsection[{TxtWidgetSizeCalc}]{\setlength{\rightskip}{0pt plus 5cm}typedef void($\ast$ {\bf TxtWidgetSizeCalc})(TXT\_\-UNCAST\_\-ARG(widget))}}
\label{dd/d55/txt__widget_8h_a40433407c878cba4f5d65f0688cf3a24}


\subsection{Enumeration Type Documentation}
\hypertarget{txt__widget_8h_a720fa53b6419a569e27365681bb7b634}{
\index{txt\_\-widget.h@{txt\_\-widget.h}!txt\_\-horiz\_\-align\_\-t@{txt\_\-horiz\_\-align\_\-t}}
\index{txt\_\-horiz\_\-align\_\-t@{txt\_\-horiz\_\-align\_\-t}!txt_widget.h@{txt\_\-widget.h}}
\subsubsection[{txt\_\-horiz\_\-align\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf txt\_\-horiz\_\-align\_\-t}}}
\label{dd/d55/txt__widget_8h_a720fa53b6419a569e27365681bb7b634}
\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{TXT\_\-HORIZ\_\-LEFT@{TXT\_\-HORIZ\_\-LEFT}!txt\_\-widget.h@{txt\_\-widget.h}}\index{txt\_\-widget.h@{txt\_\-widget.h}!TXT\_\-HORIZ\_\-LEFT@{TXT\_\-HORIZ\_\-LEFT}}\item[{\em 
\hypertarget{txt__widget_8h_a720fa53b6419a569e27365681bb7b634a0bdbd293538123c77dc58a9b773edf40}{
TXT\_\-HORIZ\_\-LEFT}
\label{dd/d55/txt__widget_8h_a720fa53b6419a569e27365681bb7b634a0bdbd293538123c77dc58a9b773edf40}
}]\index{TXT\_\-HORIZ\_\-CENTER@{TXT\_\-HORIZ\_\-CENTER}!txt\_\-widget.h@{txt\_\-widget.h}}\index{txt\_\-widget.h@{txt\_\-widget.h}!TXT\_\-HORIZ\_\-CENTER@{TXT\_\-HORIZ\_\-CENTER}}\item[{\em 
\hypertarget{txt__widget_8h_a720fa53b6419a569e27365681bb7b634ab089cf7a3ea102e587d1f793245837d0}{
TXT\_\-HORIZ\_\-CENTER}
\label{dd/d55/txt__widget_8h_a720fa53b6419a569e27365681bb7b634ab089cf7a3ea102e587d1f793245837d0}
}]\index{TXT\_\-HORIZ\_\-RIGHT@{TXT\_\-HORIZ\_\-RIGHT}!txt\_\-widget.h@{txt\_\-widget.h}}\index{txt\_\-widget.h@{txt\_\-widget.h}!TXT\_\-HORIZ\_\-RIGHT@{TXT\_\-HORIZ\_\-RIGHT}}\item[{\em 
\hypertarget{txt__widget_8h_a720fa53b6419a569e27365681bb7b634a5a43ec6e96d9afe10a9be6ddace9b893}{
TXT\_\-HORIZ\_\-RIGHT}
\label{dd/d55/txt__widget_8h_a720fa53b6419a569e27365681bb7b634a5a43ec6e96d9afe10a9be6ddace9b893}
}]\end{description}
\end{Desc}

\hypertarget{txt__widget_8h_a3eb807c8301cad23a9b895e8c9066e3f}{
\index{txt\_\-widget.h@{txt\_\-widget.h}!txt\_\-vert\_\-align\_\-t@{txt\_\-vert\_\-align\_\-t}}
\index{txt\_\-vert\_\-align\_\-t@{txt\_\-vert\_\-align\_\-t}!txt_widget.h@{txt\_\-widget.h}}
\subsubsection[{txt\_\-vert\_\-align\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf txt\_\-vert\_\-align\_\-t}}}
\label{dd/d55/txt__widget_8h_a3eb807c8301cad23a9b895e8c9066e3f}
\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{TXT\_\-VERT\_\-TOP@{TXT\_\-VERT\_\-TOP}!txt\_\-widget.h@{txt\_\-widget.h}}\index{txt\_\-widget.h@{txt\_\-widget.h}!TXT\_\-VERT\_\-TOP@{TXT\_\-VERT\_\-TOP}}\item[{\em 
\hypertarget{txt__widget_8h_a3eb807c8301cad23a9b895e8c9066e3fa00d3204977c06ab198f56f83555f1930}{
TXT\_\-VERT\_\-TOP}
\label{dd/d55/txt__widget_8h_a3eb807c8301cad23a9b895e8c9066e3fa00d3204977c06ab198f56f83555f1930}
}]\index{TXT\_\-VERT\_\-CENTER@{TXT\_\-VERT\_\-CENTER}!txt\_\-widget.h@{txt\_\-widget.h}}\index{txt\_\-widget.h@{txt\_\-widget.h}!TXT\_\-VERT\_\-CENTER@{TXT\_\-VERT\_\-CENTER}}\item[{\em 
\hypertarget{txt__widget_8h_a3eb807c8301cad23a9b895e8c9066e3fa0849d787651dbcfc57b8832d56296512}{
TXT\_\-VERT\_\-CENTER}
\label{dd/d55/txt__widget_8h_a3eb807c8301cad23a9b895e8c9066e3fa0849d787651dbcfc57b8832d56296512}
}]\index{TXT\_\-VERT\_\-BOTTOM@{TXT\_\-VERT\_\-BOTTOM}!txt\_\-widget.h@{txt\_\-widget.h}}\index{txt\_\-widget.h@{txt\_\-widget.h}!TXT\_\-VERT\_\-BOTTOM@{TXT\_\-VERT\_\-BOTTOM}}\item[{\em 
\hypertarget{txt__widget_8h_a3eb807c8301cad23a9b895e8c9066e3fa595401c8d2d2333a0075611bfdb1ed71}{
TXT\_\-VERT\_\-BOTTOM}
\label{dd/d55/txt__widget_8h_a3eb807c8301cad23a9b895e8c9066e3fa595401c8d2d2333a0075611bfdb1ed71}
}]\end{description}
\end{Desc}



\subsection{Function Documentation}
\hypertarget{txt__widget_8h_a3040e26dc124a9c6c5771efb3cd5926a}{
\index{txt\_\-widget.h@{txt\_\-widget.h}!TXT\_\-CalcWidgetSize@{TXT\_\-CalcWidgetSize}}
\index{TXT\_\-CalcWidgetSize@{TXT\_\-CalcWidgetSize}!txt_widget.h@{txt\_\-widget.h}}
\subsubsection[{TXT\_\-CalcWidgetSize}]{\setlength{\rightskip}{0pt plus 5cm}void TXT\_\-CalcWidgetSize (
\begin{DoxyParamCaption}
\item[{TXT\_\-UNCAST\_\-ARG(widget)}]{}
\end{DoxyParamCaption}
)}}
\label{dd/d55/txt__widget_8h_a3040e26dc124a9c6c5771efb3cd5926a}
\hypertarget{txt__widget_8h_a4c8c355348d050298255ae5854e64070}{
\index{txt\_\-widget.h@{txt\_\-widget.h}!TXT\_\-DestroyWidget@{TXT\_\-DestroyWidget}}
\index{TXT\_\-DestroyWidget@{TXT\_\-DestroyWidget}!txt_widget.h@{txt\_\-widget.h}}
\subsubsection[{TXT\_\-DestroyWidget}]{\setlength{\rightskip}{0pt plus 5cm}void TXT\_\-DestroyWidget (
\begin{DoxyParamCaption}
\item[{TXT\_\-UNCAST\_\-ARG(widget)}]{}
\end{DoxyParamCaption}
)}}
\label{dd/d55/txt__widget_8h_a4c8c355348d050298255ae5854e64070}
\hypertarget{txt__widget_8h_adee9a07dd8e3526b2366919fdd810163}{
\index{txt\_\-widget.h@{txt\_\-widget.h}!TXT\_\-DrawWidget@{TXT\_\-DrawWidget}}
\index{TXT\_\-DrawWidget@{TXT\_\-DrawWidget}!txt_widget.h@{txt\_\-widget.h}}
\subsubsection[{TXT\_\-DrawWidget}]{\setlength{\rightskip}{0pt plus 5cm}void TXT\_\-DrawWidget (
\begin{DoxyParamCaption}
\item[{TXT\_\-UNCAST\_\-ARG(widget)}]{, }
\item[{int}]{selected}
\end{DoxyParamCaption}
)}}
\label{dd/d55/txt__widget_8h_adee9a07dd8e3526b2366919fdd810163}
\hypertarget{txt__widget_8h_a2bd48ec5da657fe0804f64ddcb6a00de}{
\index{txt\_\-widget.h@{txt\_\-widget.h}!TXT\_\-EmitSignal@{TXT\_\-EmitSignal}}
\index{TXT\_\-EmitSignal@{TXT\_\-EmitSignal}!txt_widget.h@{txt\_\-widget.h}}
\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{dd/d55/txt__widget_8h_a2bd48ec5da657fe0804f64ddcb6a00de}
\hypertarget{txt__widget_8h_a7d27be8516534dbb47941d2803e6765d}{
\index{txt\_\-widget.h@{txt\_\-widget.h}!TXT\_\-InitWidget@{TXT\_\-InitWidget}}
\index{TXT\_\-InitWidget@{TXT\_\-InitWidget}!txt_widget.h@{txt\_\-widget.h}}
\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{dd/d55/txt__widget_8h_a7d27be8516534dbb47941d2803e6765d}
\hypertarget{txt__widget_8h_aee2675b3ad42b4dd56e554db48c9cc59}{
\index{txt\_\-widget.h@{txt\_\-widget.h}!TXT\_\-LayoutWidget@{TXT\_\-LayoutWidget}}
\index{TXT\_\-LayoutWidget@{TXT\_\-LayoutWidget}!txt_widget.h@{txt\_\-widget.h}}
\subsubsection[{TXT\_\-LayoutWidget}]{\setlength{\rightskip}{0pt plus 5cm}void TXT\_\-LayoutWidget (
\begin{DoxyParamCaption}
\item[{TXT\_\-UNCAST\_\-ARG(widget)}]{}
\end{DoxyParamCaption}
)}}
\label{dd/d55/txt__widget_8h_aee2675b3ad42b4dd56e554db48c9cc59}
\hypertarget{txt__widget_8h_a34d39912bd9e9c061c19667eb3bf10b6}{
\index{txt\_\-widget.h@{txt\_\-widget.h}!TXT\_\-SetWidgetAlign@{TXT\_\-SetWidgetAlign}}
\index{TXT\_\-SetWidgetAlign@{TXT\_\-SetWidgetAlign}!txt_widget.h@{txt\_\-widget.h}}
\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{dd/d55/txt__widget_8h_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_8h_a1e540c4e44b850ac01e64a7697b1995d}{
\index{txt\_\-widget.h@{txt\_\-widget.h}!TXT\_\-SignalConnect@{TXT\_\-SignalConnect}}
\index{TXT\_\-SignalConnect@{TXT\_\-SignalConnect}!txt_widget.h@{txt\_\-widget.h}}
\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{dd/d55/txt__widget_8h_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_8h_ae4c3deeaaf2ba57e9e6c3c873ecf7ded}{
\index{txt\_\-widget.h@{txt\_\-widget.h}!TXT\_\-WidgetKeyPress@{TXT\_\-WidgetKeyPress}}
\index{TXT\_\-WidgetKeyPress@{TXT\_\-WidgetKeyPress}!txt_widget.h@{txt\_\-widget.h}}
\subsubsection[{TXT\_\-WidgetKeyPress}]{\setlength{\rightskip}{0pt plus 5cm}int TXT\_\-WidgetKeyPress (
\begin{DoxyParamCaption}
\item[{TXT\_\-UNCAST\_\-ARG(widget)}]{, }
\item[{int}]{key}
\end{DoxyParamCaption}
)}}
\label{dd/d55/txt__widget_8h_ae4c3deeaaf2ba57e9e6c3c873ecf7ded}
\hypertarget{txt__widget_8h_ae6053cb1c5f2f45e967965df6cd1a09b}{
\index{txt\_\-widget.h@{txt\_\-widget.h}!TXT\_\-WidgetMousePress@{TXT\_\-WidgetMousePress}}
\index{TXT\_\-WidgetMousePress@{TXT\_\-WidgetMousePress}!txt_widget.h@{txt\_\-widget.h}}
\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{dd/d55/txt__widget_8h_ae6053cb1c5f2f45e967965df6cd1a09b}
