summaryrefslogtreecommitdiff
path: root/textscreen/txt_window_action.h
diff options
context:
space:
mode:
authorSimon Howard2006-06-02 19:45:41 +0000
committerSimon Howard2006-06-02 19:45:41 +0000
commit02f4a0dcf492d3e86194ae39a59a286bfc2f3e32 (patch)
tree71c80be5f3ff2db5444e4150e927ef2f52090359 /textscreen/txt_window_action.h
parente9619f83e977041676e766920178db827ddddb3d (diff)
downloadchocolate-doom-02f4a0dcf492d3e86194ae39a59a286bfc2f3e32.tar.gz
chocolate-doom-02f4a0dcf492d3e86194ae39a59a286bfc2f3e32.tar.bz2
chocolate-doom-02f4a0dcf492d3e86194ae39a59a286bfc2f3e32.zip
Add utility functions to create "Abort" and "Accept" window actions
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 551
Diffstat (limited to 'textscreen/txt_window_action.h')
-rw-r--r--textscreen/txt_window_action.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/textscreen/txt_window_action.h b/textscreen/txt_window_action.h
index d4194ddd..2310547f 100644
--- a/textscreen/txt_window_action.h
+++ b/textscreen/txt_window_action.h
@@ -28,6 +28,7 @@
typedef struct txt_window_action_s txt_window_action_t;
#include "txt_widget.h"
+#include "txt_window.h"
struct txt_window_action_s
{
@@ -38,5 +39,13 @@ struct txt_window_action_s
txt_window_action_t *TXT_NewWindowAction(int key, char *label);
+// Creates an "escape" button that closes the window
+
+txt_window_action_t *TXT_NewWindowEscapeAction(txt_window_t *window);
+
+// Accept button that does nothing
+
+txt_window_action_t *TXT_NewWindowAcceptAction(void);
+
#endif /* #ifndef TXT_WINDOW_ACTION_H */