\hypertarget{txt__window__action_8h}{
\section{textscreen/txt\_\-window\_\-action.h File Reference}
\label{d1/d7e/txt__window__action_8h}\index{textscreen/txt\_\-window\_\-action.h@{textscreen/txt\_\-window\_\-action.h}}
}


Window action widget.  


\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structtxt__window__action__s}{txt\_\-window\_\-action\_\-s}
\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct \hyperlink{structtxt__window__action__s}{txt\_\-window\_\-action\_\-s} \hyperlink{txt__window__action_8h_a33f242a28bc67affc7b6dc52ee6d3272}{txt\_\-window\_\-action\_\-t}
\begin{DoxyCompactList}\small\item\em Window action widget. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{structtxt__window__action__s}{txt\_\-window\_\-action\_\-t} $\ast$ \hyperlink{txt__window__action_8h_a8910b0db893a371cd327fad70c58d2fb}{TXT\_\-NewWindowAction} (int key, const char $\ast$label)
\begin{DoxyCompactList}\small\item\em Create a new window action. \end{DoxyCompactList}\item 
\hyperlink{structtxt__window__action__s}{txt\_\-window\_\-action\_\-t} $\ast$ \hyperlink{txt__window__action_8h_a56183de8eca9b29a555b60cd0cf7921e}{TXT\_\-NewWindowEscapeAction} (\hyperlink{structtxt__window__s}{txt\_\-window\_\-t} $\ast$window)
\begin{DoxyCompactList}\small\item\em Create a new window action that closes the window when the escape key is pressed. \end{DoxyCompactList}\item 
\hyperlink{structtxt__window__action__s}{txt\_\-window\_\-action\_\-t} $\ast$ \hyperlink{txt__window__action_8h_a3200841fe4ca8c21ec43fd8785b89a1c}{TXT\_\-NewWindowAbortAction} (\hyperlink{structtxt__window__s}{txt\_\-window\_\-t} $\ast$window)
\begin{DoxyCompactList}\small\item\em Create a new window action that closes the window when the escape key is pressed. \end{DoxyCompactList}\item 
\hyperlink{structtxt__window__action__s}{txt\_\-window\_\-action\_\-t} $\ast$ \hyperlink{txt__window__action_8h_ac8d25cd8d622ff0bc72681c614cbf953}{TXT\_\-NewWindowSelectAction} (\hyperlink{structtxt__window__s}{txt\_\-window\_\-t} $\ast$window)
\begin{DoxyCompactList}\small\item\em Create a new \char`\"{}select\char`\"{} window action. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Window action widget. 

\subsection{Typedef Documentation}
\hypertarget{txt__window__action_8h_a33f242a28bc67affc7b6dc52ee6d3272}{
\index{txt\_\-window\_\-action.h@{txt\_\-window\_\-action.h}!txt\_\-window\_\-action\_\-t@{txt\_\-window\_\-action\_\-t}}
\index{txt\_\-window\_\-action\_\-t@{txt\_\-window\_\-action\_\-t}!txt_window_action.h@{txt\_\-window\_\-action.h}}
\subsubsection[{txt\_\-window\_\-action\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf txt\_\-window\_\-action\_\-s} {\bf txt\_\-window\_\-action\_\-t}}}
\label{d1/d7e/txt__window__action_8h_a33f242a28bc67affc7b6dc52ee6d3272}


Window action widget. 

A window action is attached to a window and corresponds to a keyboard shortcut that is active within that window. When the key is pressed, the action is triggered.

When a window action is triggered, the \char`\"{}pressed\char`\"{} signal is emitted. 

\subsection{Function Documentation}
\hypertarget{txt__window__action_8h_a3200841fe4ca8c21ec43fd8785b89a1c}{
\index{txt\_\-window\_\-action.h@{txt\_\-window\_\-action.h}!TXT\_\-NewWindowAbortAction@{TXT\_\-NewWindowAbortAction}}
\index{TXT\_\-NewWindowAbortAction@{TXT\_\-NewWindowAbortAction}!txt_window_action.h@{txt\_\-window\_\-action.h}}
\subsubsection[{TXT\_\-NewWindowAbortAction}]{\setlength{\rightskip}{0pt plus 5cm}{\bf txt\_\-window\_\-action\_\-t}$\ast$ TXT\_\-NewWindowAbortAction (
\begin{DoxyParamCaption}
\item[{{\bf txt\_\-window\_\-t} $\ast$}]{window}
\end{DoxyParamCaption}
)}}
\label{d1/d7e/txt__window__action_8h_a3200841fe4ca8c21ec43fd8785b89a1c}


Create a new window action that closes the window when the escape key is pressed. 

The label \char`\"{}Abort\char`\"{} is used.


\begin{DoxyParams}{Parameters}
{\em window} & The window to close. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Pointer to the new window action widget. 
\end{DoxyReturn}
\hypertarget{txt__window__action_8h_a8910b0db893a371cd327fad70c58d2fb}{
\index{txt\_\-window\_\-action.h@{txt\_\-window\_\-action.h}!TXT\_\-NewWindowAction@{TXT\_\-NewWindowAction}}
\index{TXT\_\-NewWindowAction@{TXT\_\-NewWindowAction}!txt_window_action.h@{txt\_\-window\_\-action.h}}
\subsubsection[{TXT\_\-NewWindowAction}]{\setlength{\rightskip}{0pt plus 5cm}{\bf txt\_\-window\_\-action\_\-t}$\ast$ TXT\_\-NewWindowAction (
\begin{DoxyParamCaption}
\item[{int}]{key, }
\item[{const char $\ast$}]{label}
\end{DoxyParamCaption}
)}}
\label{d1/d7e/txt__window__action_8h_a8910b0db893a371cd327fad70c58d2fb}


Create a new window action. 


\begin{DoxyParams}{Parameters}
{\em key} & The keyboard key that triggers this action. \\
\hline
{\em label} & Label to display for this action in the tray at the bottom of the window. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Pointer to the new window action widget. 
\end{DoxyReturn}
\hypertarget{txt__window__action_8h_a56183de8eca9b29a555b60cd0cf7921e}{
\index{txt\_\-window\_\-action.h@{txt\_\-window\_\-action.h}!TXT\_\-NewWindowEscapeAction@{TXT\_\-NewWindowEscapeAction}}
\index{TXT\_\-NewWindowEscapeAction@{TXT\_\-NewWindowEscapeAction}!txt_window_action.h@{txt\_\-window\_\-action.h}}
\subsubsection[{TXT\_\-NewWindowEscapeAction}]{\setlength{\rightskip}{0pt plus 5cm}{\bf txt\_\-window\_\-action\_\-t}$\ast$ TXT\_\-NewWindowEscapeAction (
\begin{DoxyParamCaption}
\item[{{\bf txt\_\-window\_\-t} $\ast$}]{window}
\end{DoxyParamCaption}
)}}
\label{d1/d7e/txt__window__action_8h_a56183de8eca9b29a555b60cd0cf7921e}


Create a new window action that closes the window when the escape key is pressed. 

The label \char`\"{}Close\char`\"{} is used.


\begin{DoxyParams}{Parameters}
{\em window} & The window to close. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Pointer to the new window action widget. 
\end{DoxyReturn}
\hypertarget{txt__window__action_8h_ac8d25cd8d622ff0bc72681c614cbf953}{
\index{txt\_\-window\_\-action.h@{txt\_\-window\_\-action.h}!TXT\_\-NewWindowSelectAction@{TXT\_\-NewWindowSelectAction}}
\index{TXT\_\-NewWindowSelectAction@{TXT\_\-NewWindowSelectAction}!txt_window_action.h@{txt\_\-window\_\-action.h}}
\subsubsection[{TXT\_\-NewWindowSelectAction}]{\setlength{\rightskip}{0pt plus 5cm}{\bf txt\_\-window\_\-action\_\-t}$\ast$ TXT\_\-NewWindowSelectAction (
\begin{DoxyParamCaption}
\item[{{\bf txt\_\-window\_\-t} $\ast$}]{window}
\end{DoxyParamCaption}
)}}
\label{d1/d7e/txt__window__action_8h_ac8d25cd8d622ff0bc72681c614cbf953}


Create a new \char`\"{}select\char`\"{} window action. 

This does not really do anything, but reminds the user that \char`\"{}enter\char`\"{} can be pressed to activate the currently-\/selected widget.


\begin{DoxyParams}{Parameters}
{\em window} & The window. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Pointer to the new window action widget. 
\end{DoxyReturn}
