From 56912a4dcca6f35f9a75fff2bccc59949acd2197 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 20 May 2006 21:01:04 +0000 Subject: Make all windows be tables with one column. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 493 --- textscreen/txt_window.h | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'textscreen/txt_window.h') 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, -- cgit v1.2.3