diff options
author | Simon Howard | 2006-05-23 00:07:02 +0000 |
---|---|---|
committer | Simon Howard | 2006-05-23 00:07:02 +0000 |
commit | 1de18c1397bfb069771c02336e47b89e098b6f43 (patch) | |
tree | 6fc8d843e31110213543daae8edb145c9f045e05 /textscreen/txt_window.h | |
parent | 7666630775f51fe991005ff8219cb4cc0cb70327 (diff) | |
download | chocolate-doom-1de18c1397bfb069771c02336e47b89e098b6f43.tar.gz chocolate-doom-1de18c1397bfb069771c02336e47b89e098b6f43.tar.bz2 chocolate-doom-1de18c1397bfb069771c02336e47b89e098b6f43.zip |
Add window action class for action area labels at the bottom of windows.
Adjust txt_table_t to expand tables to their maximum width when they
only have one column (ensures separators reach the window edges).
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 515
Diffstat (limited to 'textscreen/txt_window.h')
-rw-r--r-- | textscreen/txt_window.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/textscreen/txt_window.h b/textscreen/txt_window.h index 0afe81aa..2b72015e 100644 --- a/textscreen/txt_window.h +++ b/textscreen/txt_window.h @@ -43,6 +43,7 @@ typedef enum #include "txt_widget.h" #include "txt_table.h" +#include "txt_window_action.h" struct txt_window_s { @@ -59,6 +60,10 @@ struct txt_window_s txt_vert_align_t vert_align; txt_horiz_align_t horiz_align; int x, y; + + // Actions that appear in the box at the bottom of the window + + txt_window_action_t *actions[3]; }; txt_window_t *TXT_NewWindow(char *title); @@ -67,6 +72,8 @@ void TXT_SetWindowPosition(txt_window_t *window, txt_horiz_align_t horiz_align, txt_vert_align_t vert_align, int x, int y); +void TXT_SetWindowAction(txt_window_t *window, txt_horiz_align_t position, + txt_window_action_t *action); #endif /* #ifndef TXT_WINDOW_T */ |