diff options
author | Simon Howard | 2006-05-20 15:15:17 +0000 |
---|---|---|
committer | Simon Howard | 2006-05-20 15:15:17 +0000 |
commit | f761f821f95a3fbf8af1eb645d8ae9412abdc541 (patch) | |
tree | c6699ce7a4487043391ee014bca9582bf29b7559 /textscreen/txt_widget.c | |
parent | c63afd766a9fdb19bc2c3a650f859bbba4699e8f (diff) | |
download | chocolate-doom-f761f821f95a3fbf8af1eb645d8ae9412abdc541.tar.gz chocolate-doom-f761f821f95a3fbf8af1eb645d8ae9412abdc541.tar.bz2 chocolate-doom-f761f821f95a3fbf8af1eb645d8ae9412abdc541.zip |
Add selectable and visible properties to widgets. Allow the position of
windows to be set based on position of top/bottom/center,left/right,center
coordinates.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 486
Diffstat (limited to 'textscreen/txt_widget.c')
-rw-r--r-- | textscreen/txt_widget.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/textscreen/txt_widget.c b/textscreen/txt_widget.c index b0576a26..68e3d9b5 100644 --- a/textscreen/txt_widget.c +++ b/textscreen/txt_widget.c @@ -1,3 +1,4 @@ +#include <stdlib.h> #include "txt_widget.h" @@ -16,4 +17,12 @@ void TXT_DestroyWidget(txt_widget_t *widget) widget->widget_class->destructor(widget); } +void TXT_WidgetKeyPress(txt_widget_t *widget, int key) +{ + if (widget->widget_class->key_press != NULL) + { + widget->widget_class->key_press(widget, key); + } +} + |