From 11f92605356ae63a39b22917a11e714402fd07a5 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 7 Mar 2009 00:35:08 +0000 Subject: Add documentation for high-level txt_desktop.h functions. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1450 --- textscreen/txt_desktop.h | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) (limited to 'textscreen') 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 */ -- cgit v1.2.3