aboutsummaryrefslogtreecommitdiffstats
path: root/include/gwin
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2013-07-17 17:49:21 +0200
committerJoel Bodenmann <joel@unormal.org>2013-07-17 17:49:21 +0200
commit259f822ba7a30cd729faf273dbb8acbca51c5a3a (patch)
treea71d4700b623f25898407759ae8b585953004587 /include/gwin
parentceae37b7bfe50f74a1b6ccb0e0c91736d64a5755 (diff)
downloaduGFX-259f822ba7a30cd729faf273dbb8acbca51c5a3a.tar.gz
uGFX-259f822ba7a30cd729faf273dbb8acbca51c5a3a.tar.bz2
uGFX-259f822ba7a30cd729faf273dbb8acbca51c5a3a.zip
added list widget dummy
Diffstat (limited to 'include/gwin')
-rw-r--r--include/gwin/gwin.h4
-rw-r--r--include/gwin/list.h61
2 files changed, 65 insertions, 0 deletions
diff --git a/include/gwin/gwin.h b/include/gwin/gwin.h
index a2c0d0a1..53f5e205 100644
--- a/include/gwin/gwin.h
+++ b/include/gwin/gwin.h
@@ -825,6 +825,10 @@ extern "C" {
#include "gwin/label.h"
#endif
+ #if GWIN_NEED_LIST || defined(__DOXYGEN__)
+ #include "gwin/list.h"
+ #endif
+
#endif /* GFX_USE_GWIN */
#endif /* _GWIN_H */
diff --git a/include/gwin/list.h b/include/gwin/list.h
new file mode 100644
index 00000000..8aa46b0c
--- /dev/null
+++ b/include/gwin/list.h
@@ -0,0 +1,61 @@
+/*
+ * This file is subject to the terms of the GFX License. If a copy of
+ * the license was not distributed with this file, you can obtain one at:
+ *
+ * http://chibios-gfx.com/license.html
+ */
+
+/**
+ * @file include/gwin/list.h
+ * @brief GWIN list widget header file
+ *
+ * @defgroup List List
+ * @ingroup GWIN
+ *
+ * @details GWIN allows it to create a list widget.
+ *
+ * @pre GFX_USE_GDISP must be set to TRUE in your gfxconf.h
+ * @pre GFX_USE_GWIN must be set to TRUE in your gfxconf.h
+ * @pre GDISP_NEED_TEXT must be set to TRUE in your gfxconf.h
+ * @pre GWIN_NEED_LIST must be set to TRUE in your gfxconf.h
+ * @pre The font you want to use must be enabled in your gfxconf.h
+ *
+ * @{
+ */
+
+#ifndef _GWIN_LIST_H
+#define _GWIN_LIST_H
+
+// This file is included within "gwin/gwin.h"
+
+/**
+ * @brief The event type for a list event
+ */
+#define GEVENT_GWIN_LIST (GEVENT_GWIN_FIRST+4)
+
+/**
+ * @brief A list event
+ */
+typedef struct GEventGWinList {
+ GEventType type; // The type of this event (GEVENT_GWIN_LIST)
+ GHandle list; // THe list that has generated the event
+} GEventGWinList;
+
+// A list window
+typedef struct GListObject {
+ GWidgetObject w;
+} GListObject;
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+GHandle gwinListCreate(GListObject *widget, GWidgetInit *pInit);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // _GWIN_LIST_H
+/** @} */
+