|
Odamex
Setting the Standard in Multiplayer Doom
|
Functions | |
| void | TXT_SetWindowAction (txt_window_t *window, txt_horiz_align_t position, txt_window_action_t *action) |
| Set a window action for a given window. | |
| txt_window_t * | TXT_NewWindow (char *title) |
| Open a new window. | |
| void | TXT_CloseWindow (txt_window_t *window) |
| Close a window. | |
| void | TXT_LayoutWindow (txt_window_t *window) |
| void | TXT_DrawWindow (txt_window_t *window, int selected) |
| void | TXT_SetWindowPosition (txt_window_t *window, txt_horiz_align_t horiz_align, txt_vert_align_t vert_align, int x, int y) |
| Set the position of a window on the screen. | |
| void | TXT_WindowKeyPress (txt_window_t *window, int c) |
| void | TXT_SetKeyListener (txt_window_t *window, TxtWindowKeyPress key_listener, void *user_data) |
| Set a callback function to be invoked whenever a key is pressed within a window. | |
| void | TXT_SetMouseListener (txt_window_t *window, TxtWindowMousePress mouse_listener, void *user_data) |
| Set a callback function to be invoked whenever a mouse button is pressed within a window. | |
| void TXT_CloseWindow | ( | txt_window_t * | window | ) |
Close a window.
| window | Tine window to close. |
| void TXT_DrawWindow | ( | txt_window_t * | window, |
| int | selected | ||
| ) |
| void TXT_LayoutWindow | ( | txt_window_t * | window | ) |
| txt_window_t* TXT_NewWindow | ( | char * | title | ) |
Open a new window.
| title | Title to display in the titlebar of the new window. |
| void TXT_SetKeyListener | ( | txt_window_t * | window, |
| TxtWindowKeyPress | key_listener, | ||
| void * | user_data | ||
| ) |
Set a callback function to be invoked whenever a key is pressed within a window.
| window | The window. |
| key_listener | Callback function. |
| user_data | User-specified pointer to pass to the callback function. |
| void TXT_SetMouseListener | ( | txt_window_t * | window, |
| TxtWindowMousePress | mouse_listener, | ||
| void * | user_data | ||
| ) |
Set a callback function to be invoked whenever a mouse button is pressed within a window.
| window | The window. |
| mouse_listener | Callback function. |
| user_data | User-specified pointer to pass to the callback function. |
| void TXT_SetWindowAction | ( | txt_window_t * | window, |
| txt_horiz_align_t | position, | ||
| txt_window_action_t * | action | ||
| ) |
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.
| window | The window. |
| position | The window action slot to set (left, center or right). |
| action | The window action widget. If this is NULL, any current window action in the given slot is removed. |
| void TXT_SetWindowPosition | ( | txt_window_t * | window, |
| txt_horiz_align_t | horiz_align, | ||
| txt_vert_align_t | vert_align, | ||
| int | x, | ||
| int | y | ||
| ) |
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).
| window | The window. |
| horiz_align | Horizontal position on the screen to which the coordinates are relative (left side, right side or center). |
| vert_align | Vertical position on the screen to which the coordinates are relative (top, bottom or center). |
| x | X coordinate (horizonal axis) for window position. |
| y | Y coordinate (vertical axis) for window position. |
| void TXT_WindowKeyPress | ( | txt_window_t * | window, |
| int | c | ||
| ) |