\hypertarget{txt__window_8cpp}{
\section{textscreen/txt\_\-window.cpp File Reference}
\label{db/d7e/txt__window_8cpp}\index{textscreen/txt\_\-window.cpp@{textscreen/txt\_\-window.cpp}}
}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{txt__window_8cpp_a20c292ac6d9df8adbef6020b16ed0512}{TXT\_\-SetWindowAction} (\hyperlink{structtxt__window__s}{txt\_\-window\_\-t} $\ast$window, \hyperlink{txt__widget_8h_a720fa53b6419a569e27365681bb7b634}{txt\_\-horiz\_\-align\_\-t} \hyperlink{p__pspr_8cpp_a401e942526aac47cef94f478182486e7}{position}, \hyperlink{structtxt__window__action__s}{txt\_\-window\_\-action\_\-t} $\ast$action)
\begin{DoxyCompactList}\small\item\em Set a window action for a given window. \end{DoxyCompactList}\item 
\hyperlink{structtxt__window__s}{txt\_\-window\_\-t} $\ast$ \hyperlink{txt__window_8cpp_a7b216ab71523563523a9dcc15bed153a}{TXT\_\-NewWindow} (char $\ast$title)
\begin{DoxyCompactList}\small\item\em Open a new window. \end{DoxyCompactList}\item 
void \hyperlink{txt__window_8cpp_aae58b0fb5541126faf78444de6393079}{TXT\_\-CloseWindow} (\hyperlink{structtxt__window__s}{txt\_\-window\_\-t} $\ast$window)
\begin{DoxyCompactList}\small\item\em Close a window. \end{DoxyCompactList}\item 
void \hyperlink{txt__window_8cpp_ad3a44871a4f9b51adb7e67be4c3b5297}{TXT\_\-LayoutWindow} (\hyperlink{structtxt__window__s}{txt\_\-window\_\-t} $\ast$window)
\item 
void \hyperlink{txt__window_8cpp_abd0446ff300db0d7c112c752dea32fde}{TXT\_\-DrawWindow} (\hyperlink{structtxt__window__s}{txt\_\-window\_\-t} $\ast$window, int selected)
\item 
void \hyperlink{txt__window_8cpp_a6ca9f23c728bc59e2bfcbb05351dfb42}{TXT\_\-SetWindowPosition} (\hyperlink{structtxt__window__s}{txt\_\-window\_\-t} $\ast$window, \hyperlink{txt__widget_8h_a720fa53b6419a569e27365681bb7b634}{txt\_\-horiz\_\-align\_\-t} horiz\_\-align, \hyperlink{txt__widget_8h_a3eb807c8301cad23a9b895e8c9066e3f}{txt\_\-vert\_\-align\_\-t} vert\_\-align, int \hyperlink{cl__main_8cpp_ad4dec120c8756cb4abbd4bd41f63f9bf}{x}, int \hyperlink{v__video_8cpp_a0a2f84ed7838f07779ae24c5a9086d33}{y})
\begin{DoxyCompactList}\small\item\em Set the position of a window on the screen. \end{DoxyCompactList}\item 
void \hyperlink{txt__window_8cpp_a5649f141260a38920c0938ade412439b}{TXT\_\-WindowKeyPress} (\hyperlink{structtxt__window__s}{txt\_\-window\_\-t} $\ast$window, int c)
\item 
void \hyperlink{txt__window_8cpp_a93d0669e9e8c5abb7a8e732f12075758}{TXT\_\-SetKeyListener} (\hyperlink{structtxt__window__s}{txt\_\-window\_\-t} $\ast$window, \hyperlink{txt__window_8h_a7a79bfd12ecc790a8556fbca66988956}{TxtWindowKeyPress} key\_\-listener, void $\ast$user\_\-data)
\begin{DoxyCompactList}\small\item\em Set a callback function to be invoked whenever a key is pressed within a window. \end{DoxyCompactList}\item 
void \hyperlink{txt__window_8cpp_a5401d8f2b3835f77e9298dcdfd0d1e32}{TXT\_\-SetMouseListener} (\hyperlink{structtxt__window__s}{txt\_\-window\_\-t} $\ast$window, \hyperlink{txt__window_8h_a419163d5dffd61bfa999baf3aae0f5a4}{TxtWindowMousePress} mouse\_\-listener, void $\ast$user\_\-data)
\begin{DoxyCompactList}\small\item\em Set a callback function to be invoked whenever a mouse button is pressed within a window. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Function Documentation}
\hypertarget{txt__window_8cpp_aae58b0fb5541126faf78444de6393079}{
\index{txt\_\-window.cpp@{txt\_\-window.cpp}!TXT\_\-CloseWindow@{TXT\_\-CloseWindow}}
\index{TXT\_\-CloseWindow@{TXT\_\-CloseWindow}!txt_window.cpp@{txt\_\-window.cpp}}
\subsubsection[{TXT\_\-CloseWindow}]{\setlength{\rightskip}{0pt plus 5cm}void TXT\_\-CloseWindow (
\begin{DoxyParamCaption}
\item[{{\bf txt\_\-window\_\-t} $\ast$}]{window}
\end{DoxyParamCaption}
)}}
\label{db/d7e/txt__window_8cpp_aae58b0fb5541126faf78444de6393079}


Close a window. 


\begin{DoxyParams}{Parameters}
{\em window} & Tine window to close. \\
\hline
\end{DoxyParams}
\hypertarget{txt__window_8cpp_abd0446ff300db0d7c112c752dea32fde}{
\index{txt\_\-window.cpp@{txt\_\-window.cpp}!TXT\_\-DrawWindow@{TXT\_\-DrawWindow}}
\index{TXT\_\-DrawWindow@{TXT\_\-DrawWindow}!txt_window.cpp@{txt\_\-window.cpp}}
\subsubsection[{TXT\_\-DrawWindow}]{\setlength{\rightskip}{0pt plus 5cm}void TXT\_\-DrawWindow (
\begin{DoxyParamCaption}
\item[{{\bf txt\_\-window\_\-t} $\ast$}]{window, }
\item[{int}]{selected}
\end{DoxyParamCaption}
)}}
\label{db/d7e/txt__window_8cpp_abd0446ff300db0d7c112c752dea32fde}
\hypertarget{txt__window_8cpp_ad3a44871a4f9b51adb7e67be4c3b5297}{
\index{txt\_\-window.cpp@{txt\_\-window.cpp}!TXT\_\-LayoutWindow@{TXT\_\-LayoutWindow}}
\index{TXT\_\-LayoutWindow@{TXT\_\-LayoutWindow}!txt_window.cpp@{txt\_\-window.cpp}}
\subsubsection[{TXT\_\-LayoutWindow}]{\setlength{\rightskip}{0pt plus 5cm}void TXT\_\-LayoutWindow (
\begin{DoxyParamCaption}
\item[{{\bf txt\_\-window\_\-t} $\ast$}]{window}
\end{DoxyParamCaption}
)}}
\label{db/d7e/txt__window_8cpp_ad3a44871a4f9b51adb7e67be4c3b5297}
\hypertarget{txt__window_8cpp_a7b216ab71523563523a9dcc15bed153a}{
\index{txt\_\-window.cpp@{txt\_\-window.cpp}!TXT\_\-NewWindow@{TXT\_\-NewWindow}}
\index{TXT\_\-NewWindow@{TXT\_\-NewWindow}!txt_window.cpp@{txt\_\-window.cpp}}
\subsubsection[{TXT\_\-NewWindow}]{\setlength{\rightskip}{0pt plus 5cm}{\bf txt\_\-window\_\-t}$\ast$ TXT\_\-NewWindow (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{title}
\end{DoxyParamCaption}
)}}
\label{db/d7e/txt__window_8cpp_a7b216ab71523563523a9dcc15bed153a}


Open a new window. 


\begin{DoxyParams}{Parameters}
{\em title} & Title to display in the titlebar of the new window. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Pointer to a new \hyperlink{txt__window_8h_a664d043bc801de0eb60905df9354f4ec}{txt\_\-window\_\-t} structure representing the new window. 
\end{DoxyReturn}
\hypertarget{txt__window_8cpp_a93d0669e9e8c5abb7a8e732f12075758}{
\index{txt\_\-window.cpp@{txt\_\-window.cpp}!TXT\_\-SetKeyListener@{TXT\_\-SetKeyListener}}
\index{TXT\_\-SetKeyListener@{TXT\_\-SetKeyListener}!txt_window.cpp@{txt\_\-window.cpp}}
\subsubsection[{TXT\_\-SetKeyListener}]{\setlength{\rightskip}{0pt plus 5cm}void TXT\_\-SetKeyListener (
\begin{DoxyParamCaption}
\item[{{\bf txt\_\-window\_\-t} $\ast$}]{window, }
\item[{{\bf TxtWindowKeyPress}}]{key\_\-listener, }
\item[{void $\ast$}]{user\_\-data}
\end{DoxyParamCaption}
)}}
\label{db/d7e/txt__window_8cpp_a93d0669e9e8c5abb7a8e732f12075758}


Set a callback function to be invoked whenever a key is pressed within a window. 


\begin{DoxyParams}{Parameters}
{\em window} & The window. \\
\hline
{\em key\_\-listener} & Callback function. \\
\hline
{\em user\_\-data} & User-\/specified pointer to pass to the callback function. \\
\hline
\end{DoxyParams}
\hypertarget{txt__window_8cpp_a5401d8f2b3835f77e9298dcdfd0d1e32}{
\index{txt\_\-window.cpp@{txt\_\-window.cpp}!TXT\_\-SetMouseListener@{TXT\_\-SetMouseListener}}
\index{TXT\_\-SetMouseListener@{TXT\_\-SetMouseListener}!txt_window.cpp@{txt\_\-window.cpp}}
\subsubsection[{TXT\_\-SetMouseListener}]{\setlength{\rightskip}{0pt plus 5cm}void TXT\_\-SetMouseListener (
\begin{DoxyParamCaption}
\item[{{\bf txt\_\-window\_\-t} $\ast$}]{window, }
\item[{{\bf TxtWindowMousePress}}]{mouse\_\-listener, }
\item[{void $\ast$}]{user\_\-data}
\end{DoxyParamCaption}
)}}
\label{db/d7e/txt__window_8cpp_a5401d8f2b3835f77e9298dcdfd0d1e32}


Set a callback function to be invoked whenever a mouse button is pressed within a window. 


\begin{DoxyParams}{Parameters}
{\em window} & The window. \\
\hline
{\em mouse\_\-listener} & Callback function. \\
\hline
{\em user\_\-data} & User-\/specified pointer to pass to the callback function. \\
\hline
\end{DoxyParams}
\hypertarget{txt__window_8cpp_a20c292ac6d9df8adbef6020b16ed0512}{
\index{txt\_\-window.cpp@{txt\_\-window.cpp}!TXT\_\-SetWindowAction@{TXT\_\-SetWindowAction}}
\index{TXT\_\-SetWindowAction@{TXT\_\-SetWindowAction}!txt_window.cpp@{txt\_\-window.cpp}}
\subsubsection[{TXT\_\-SetWindowAction}]{\setlength{\rightskip}{0pt plus 5cm}void TXT\_\-SetWindowAction (
\begin{DoxyParamCaption}
\item[{{\bf txt\_\-window\_\-t} $\ast$}]{window, }
\item[{{\bf txt\_\-horiz\_\-align\_\-t}}]{position, }
\item[{{\bf txt\_\-window\_\-action\_\-t} $\ast$}]{action}
\end{DoxyParamCaption}
)}}
\label{db/d7e/txt__window_8cpp_a20c292ac6d9df8adbef6020b16ed0512}


Set a window action for a given window. 

Each window can have up to three window actions, which provide keyboard shortcuts that can be used within a given window.


\begin{DoxyParams}{Parameters}
{\em window} & The window. \\
\hline
{\em position} & The window action slot to set (left, center or right). \\
\hline
{\em action} & The window action widget. If this is NULL, any current window action in the given slot is removed. \\
\hline
\end{DoxyParams}
\hypertarget{txt__window_8cpp_a6ca9f23c728bc59e2bfcbb05351dfb42}{
\index{txt\_\-window.cpp@{txt\_\-window.cpp}!TXT\_\-SetWindowPosition@{TXT\_\-SetWindowPosition}}
\index{TXT\_\-SetWindowPosition@{TXT\_\-SetWindowPosition}!txt_window.cpp@{txt\_\-window.cpp}}
\subsubsection[{TXT\_\-SetWindowPosition}]{\setlength{\rightskip}{0pt plus 5cm}void TXT\_\-SetWindowPosition (
\begin{DoxyParamCaption}
\item[{{\bf txt\_\-window\_\-t} $\ast$}]{window, }
\item[{{\bf txt\_\-horiz\_\-align\_\-t}}]{horiz\_\-align, }
\item[{{\bf txt\_\-vert\_\-align\_\-t}}]{vert\_\-align, }
\item[{int}]{x, }
\item[{int}]{y}
\end{DoxyParamCaption}
)}}
\label{db/d7e/txt__window_8cpp_a6ca9f23c728bc59e2bfcbb05351dfb42}


Set the position of a window on the screen. 

The window is specified as coordinates relative to a predefined position on the screen (eg. center of the screen, top left of the screen, etc).


\begin{DoxyParams}{Parameters}
{\em window} & The window. \\
\hline
{\em horiz\_\-align} & Horizontal position on the screen to which the coordinates are relative (left side, right side or center). \\
\hline
{\em vert\_\-align} & Vertical position on the screen to which the coordinates are relative (top, bottom or center). \\
\hline
{\em x} & X coordinate (horizonal axis) for window position. \\
\hline
{\em y} & Y coordinate (vertical axis) for window position. \\
\hline
\end{DoxyParams}
\hypertarget{txt__window_8cpp_a5649f141260a38920c0938ade412439b}{
\index{txt\_\-window.cpp@{txt\_\-window.cpp}!TXT\_\-WindowKeyPress@{TXT\_\-WindowKeyPress}}
\index{TXT\_\-WindowKeyPress@{TXT\_\-WindowKeyPress}!txt_window.cpp@{txt\_\-window.cpp}}
\subsubsection[{TXT\_\-WindowKeyPress}]{\setlength{\rightskip}{0pt plus 5cm}void TXT\_\-WindowKeyPress (
\begin{DoxyParamCaption}
\item[{{\bf txt\_\-window\_\-t} $\ast$}]{window, }
\item[{int}]{c}
\end{DoxyParamCaption}
)}}
\label{db/d7e/txt__window_8cpp_a5649f141260a38920c0938ade412439b}
