summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2009-03-07 00:35:08 +0000
committerSimon Howard2009-03-07 00:35:08 +0000
commit11f92605356ae63a39b22917a11e714402fd07a5 (patch)
tree7b779dd0e6db93b65fecb9fe59e96047979a6d6d
parent2b5dae761ba1727cb483f4bae334a1b25f222e18 (diff)
downloadchocolate-doom-11f92605356ae63a39b22917a11e714402fd07a5.tar.gz
chocolate-doom-11f92605356ae63a39b22917a11e714402fd07a5.tar.bz2
chocolate-doom-11f92605356ae63a39b22917a11e714402fd07a5.zip
Add documentation for high-level txt_desktop.h functions.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1450
-rw-r--r--textscreen/txt_desktop.h31
1 files changed, 27 insertions, 4 deletions
diff --git a/textscreen/txt_desktop.h b/textscreen/txt_desktop.h
index 40c89a48..876fd78d 100644
--- a/textscreen/txt_desktop.h
+++ b/textscreen/txt_desktop.h
@@ -26,14 +26,37 @@
void TXT_AddDesktopWindow(txt_window_t *win);
void TXT_RemoveDesktopWindow(txt_window_t *win);
-void TXT_SetDesktopTitle(char *title);
void TXT_DrawDesktop(void);
-void TXT_GUIMainLoop(void);
void TXT_DispatchEvents(void);
-void TXT_ExitMainLoop(void);
void TXT_DrawWindow(txt_window_t *window, int selected);
void TXT_WindowKeyPress(txt_window_t *window, int c);
-#endif /* #ifndef TXT_DESKTOP_T */
+/**
+ * Set the title displayed at the top of the screen.
+ *
+ * @param title The title to display.
+ */
+
+void TXT_SetDesktopTitle(char *title);
+
+/**
+ * Exit the currently-running main loop and return from the
+ * @ref TXT_GUIMainLoop function.
+ */
+
+void TXT_ExitMainLoop(void);
+
+/**
+ * Start the main event loop. At least one window must have been
+ * opened prior to running this function. When no windows are left
+ * open, the event loop exits.
+ *
+ * It is possible to trigger an exit from this function using the
+ * @ref TXT_ExitMainLoop function.
+ */
+
+void TXT_GUIMainLoop(void);
+
+#endif /* #ifndef TXT_DESKTOP_H */