summaryrefslogtreecommitdiff
path: root/textscreen/txt_window.h
diff options
context:
space:
mode:
authorSimon Howard2006-05-20 21:01:04 +0000
committerSimon Howard2006-05-20 21:01:04 +0000
commit56912a4dcca6f35f9a75fff2bccc59949acd2197 (patch)
tree1849edbfe4322876c74b0a5c0f0d3202be85b50b /textscreen/txt_window.h
parent8741ed033996e3cfed28cfc97753ef0cd2c40b17 (diff)
downloadchocolate-doom-56912a4dcca6f35f9a75fff2bccc59949acd2197.tar.gz
chocolate-doom-56912a4dcca6f35f9a75fff2bccc59949acd2197.tar.bz2
chocolate-doom-56912a4dcca6f35f9a75fff2bccc59949acd2197.zip
Make all windows be tables with one column.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 493
Diffstat (limited to 'textscreen/txt_window.h')
-rw-r--r--textscreen/txt_window.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/textscreen/txt_window.h b/textscreen/txt_window.h
index 5dc799c7..0afe81aa 100644
--- a/textscreen/txt_window.h
+++ b/textscreen/txt_window.h
@@ -42,9 +42,14 @@ typedef enum
} txt_horiz_align_t;
#include "txt_widget.h"
+#include "txt_table.h"
struct txt_window_s
{
+ // Base class: all windows are tables with one column.
+
+ txt_table_t table;
+
// Window title
char *title;
@@ -54,20 +59,10 @@ struct txt_window_s
txt_vert_align_t vert_align;
txt_horiz_align_t horiz_align;
int x, y;
-
- // Widgets in this window
-
- txt_widget_t **widgets;
- int num_widgets;
-
- // Index of the current selected widget.
-
- int selected;
};
txt_window_t *TXT_NewWindow(char *title);
void TXT_CloseWindow(txt_window_t *window);
-void TXT_AddWidget(txt_window_t *window, void *widget);
void TXT_SetWindowPosition(txt_window_t *window,
txt_horiz_align_t horiz_align,
txt_vert_align_t vert_align,