summaryrefslogtreecommitdiff
path: root/textscreen/txt_widget.h
diff options
context:
space:
mode:
authorSimon Howard2009-03-08 22:51:25 +0000
committerSimon Howard2009-03-08 22:51:25 +0000
commitf9c51c1b5c78234a138f9f44c261990336b445e7 (patch)
tree606f15ff38d4eb354c43233c3678615cd002fd72 /textscreen/txt_widget.h
parent11f92605356ae63a39b22917a11e714402fd07a5 (diff)
downloadchocolate-doom-f9c51c1b5c78234a138f9f44c261990336b445e7.tar.gz
chocolate-doom-f9c51c1b5c78234a138f9f44c261990336b445e7.tar.bz2
chocolate-doom-f9c51c1b5c78234a138f9f44c261990336b445e7.zip
Add "make doc" target to run Doxygen, and add a Doxyfile. Add @file tags
to start of header files so that Doxygen will process them. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1451
Diffstat (limited to 'textscreen/txt_widget.h')
-rw-r--r--textscreen/txt_widget.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/textscreen/txt_widget.h b/textscreen/txt_widget.h
index b1afea50..63cc5f35 100644
--- a/textscreen/txt_widget.h
+++ b/textscreen/txt_widget.h
@@ -19,15 +19,27 @@
// 02111-1307, USA.
//
-// Base GUI "widget" class that all widgets inherit from.
-
#ifndef TXT_WIDGET_H
#define TXT_WIDGET_H
+/**
+ * @file txt_widget.h
+ *
+ * Base "widget" GUI component class.
+ */
+
+#ifndef DOXYGEN
+
#define TXT_UNCAST_ARG_NAME(name) uncast_ ## name
#define TXT_UNCAST_ARG(name) void * TXT_UNCAST_ARG_NAME(name)
#define TXT_CAST_ARG(type, name) type *name = (type *) uncast_ ## name
+#else
+
+#define TXT_UNCAST_ARG(name) txt_widget_t *name
+
+#endif
+
typedef enum
{
TXT_VERT_TOP,