|
Odamex
Setting the Standard in Multiplayer Doom
|
Window action widget. More...
Go to the source code of this file.
Data Structures | |
| struct | txt_window_action_s |
Typedefs | |
| typedef struct txt_window_action_s | txt_window_action_t |
| Window action widget. | |
Functions | |
| txt_window_action_t * | TXT_NewWindowAction (int key, const char *label) |
| Create a new window action. | |
| txt_window_action_t * | TXT_NewWindowEscapeAction (txt_window_t *window) |
| Create a new window action that closes the window when the escape key is pressed. | |
| txt_window_action_t * | TXT_NewWindowAbortAction (txt_window_t *window) |
| Create a new window action that closes the window when the escape key is pressed. | |
| txt_window_action_t * | TXT_NewWindowSelectAction (txt_window_t *window) |
| Create a new "select" window action. | |
Window action widget.
| typedef struct txt_window_action_s txt_window_action_t |
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 "pressed" signal is emitted.
| txt_window_action_t* TXT_NewWindowAbortAction | ( | txt_window_t * | window | ) |
Create a new window action that closes the window when the escape key is pressed.
The label "Abort" is used.
| window | The window to close. |
| txt_window_action_t* TXT_NewWindowAction | ( | int | key, |
| const char * | label | ||
| ) |
Create a new window action.
| key | The keyboard key that triggers this action. |
| label | Label to display for this action in the tray at the bottom of the window. |
| txt_window_action_t* TXT_NewWindowEscapeAction | ( | txt_window_t * | window | ) |
Create a new window action that closes the window when the escape key is pressed.
The label "Close" is used.
| window | The window to close. |
| txt_window_action_t* TXT_NewWindowSelectAction | ( | txt_window_t * | window | ) |
Create a new "select" window action.
This does not really do anything, but reminds the user that "enter" can be pressed to activate the currently-selected widget.
| window | The window. |