summaryrefslogtreecommitdiff
path: root/textscreen/txt_widget.h
diff options
context:
space:
mode:
authorSimon Howard2006-05-20 20:49:50 +0000
committerSimon Howard2006-05-20 20:49:50 +0000
commit8741ed033996e3cfed28cfc97753ef0cd2c40b17 (patch)
tree868b9b22c1fc783a1eb8c5295b18fcb3b62d08b4 /textscreen/txt_widget.h
parent6ecffa76f732fdc20873c1611723843464ac485a (diff)
downloadchocolate-doom-8741ed033996e3cfed28cfc97753ef0cd2c40b17.tar.gz
chocolate-doom-8741ed033996e3cfed28cfc97753ef0cd2c40b17.tar.bz2
chocolate-doom-8741ed033996e3cfed28cfc97753ef0cd2c40b17.zip
Add table class. Allow widgets with heights of more than one line.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 492
Diffstat (limited to 'textscreen/txt_widget.h')
-rw-r--r--textscreen/txt_widget.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/textscreen/txt_widget.h b/textscreen/txt_widget.h
index 9852f732..d852ccd1 100644
--- a/textscreen/txt_widget.h
+++ b/textscreen/txt_widget.h
@@ -30,7 +30,7 @@
typedef struct txt_widget_class_s txt_widget_class_t;
typedef struct txt_widget_s txt_widget_t;
-typedef int (*TxtWidgetSizeCalc)(txt_widget_t *widget);
+typedef void (*TxtWidgetSizeCalc)(txt_widget_t *widget, int *w, int *h);
typedef void (*TxtWidgetDrawer)(txt_widget_t *widget, int w, int selected);
typedef void (*TxtWidgetDestroy)(txt_widget_t *widget);
typedef int (*TxtWidgetKeyPress)(txt_widget_t *widget, int key);
@@ -50,7 +50,7 @@ struct txt_widget_s
int visible;
};
-int TXT_WidgetWidth(txt_widget_t *widget);
+void TXT_CalcWidgetSize(txt_widget_t *widget, int *w, int *h);
void TXT_DrawWidget(txt_widget_t *widget, int w, int selected);
int TXT_WidgetKeyPress(txt_widget_t *widget, int key);
void TXT_DestroyWidget(txt_widget_t *widget);