summaryrefslogtreecommitdiff
path: root/textscreen/txt_window.h
diff options
context:
space:
mode:
authorSimon Howard2011-09-20 20:47:19 +0000
committerSimon Howard2011-09-20 20:47:19 +0000
commit4fba2ab2ddda75a05c70ac95531504edfafdf8c8 (patch)
tree84c124abfd401fec865e2fdbb5c0006962e48e67 /textscreen/txt_window.h
parente5336a1bdc44021605c20f9c50876b6cb5c90f9a (diff)
downloadchocolate-doom-4fba2ab2ddda75a05c70ac95531504edfafdf8c8.tar.gz
chocolate-doom-4fba2ab2ddda75a05c70ac95531504edfafdf8c8.tar.bz2
chocolate-doom-4fba2ab2ddda75a05c70ac95531504edfafdf8c8.zip
Add TXT_MessageBox convenience function.
Subversion-branch: /branches/v2-branch Subversion-revision: 2388
Diffstat (limited to 'textscreen/txt_window.h')
-rw-r--r--textscreen/txt_window.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/textscreen/txt_window.h b/textscreen/txt_window.h
index e183cf6d..bfae2a9a 100644
--- a/textscreen/txt_window.h
+++ b/textscreen/txt_window.h
@@ -176,6 +176,16 @@ void TXT_SetMouseListener(txt_window_t *window,
TxtWindowMousePress mouse_listener,
void *user_data);
+/**
+ * Open a window displaying a message.
+ *
+ * @param title Title of the window.
+ * @param message The message to display in the window.
+ * @return The new window.
+ */
+
+txt_window_t *TXT_MessageBox(char *title, char *message, ...);
+
#endif /* #ifndef TXT_WINDOW_T */