aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2012-11-20 23:12:09 +0100
committerJoel Bodenmann <joel@unormal.org>2012-11-20 23:12:09 +0100
commit92ed50dbf0a4bad1ef11d8892e13f0e2aa31a119 (patch)
treecf752ef668a874042b795ec0584d0cfbadf5ea4d /include
parenta734b10c4115627fff7407ef334fba1acc618cf4 (diff)
downloaduGFX-92ed50dbf0a4bad1ef11d8892e13f0e2aa31a119.tar.gz
uGFX-92ed50dbf0a4bad1ef11d8892e13f0e2aa31a119.tar.bz2
uGFX-92ed50dbf0a4bad1ef11d8892e13f0e2aa31a119.zip
gwin doxygen
Diffstat (limited to 'include')
-rw-r--r--include/gwin.h45
1 files changed, 43 insertions, 2 deletions
diff --git a/include/gwin.h b/include/gwin.h
index b1c644a6..24eba20c 100644
--- a/include/gwin.h
+++ b/include/gwin.h
@@ -171,14 +171,55 @@ extern "C" {
GHandle gwinCreateWindow(GWindowObject *gw, coord_t x, coord_t y, coord_t width, coord_t height);
void gwinDestroyWindow(GHandle gh);
-/* Status Functions */
+/**
+ * @brief Get the X coordinate of the window
+ * @details Returns the X coordinate of the origin of the window.
+ * The coordinate is relative to the physical screen zero point.
+ *
+ * @param[in] gh The window
+ */
#define gwinGetScreenX(gh) ((gh)->x)
+
+/**
+ * @brief Get the Y coordinate of the window
+ * @details Returns the Y coordinate of the origin of the window.
+ * The coordinate is relative to the physical screen zero point.
+ *
+ * @param[in] gh The window
+ */
#define gwinGetScreenY(gh) ((gh)->y)
+
+/**
+ * @brief Get the width of the window
+ *
+ * @param[in] gh The window
+ */
#define gwinGetWidth(gh) ((gh)->width)
+
+/**
+ * @brief Get the height of the window
+ *
+ * @param[in] gh The window
+ */
#define gwinGetHeight(gh) ((gh)->height)
-/* Set up for drawing */
+/**
+ * @brief Set foreground color
+ * @details Set the color which will be used to draw
+ *
+ * @param[in] gh The window
+ * @param[in] clr The color to be set
+ */
#define gwinSetColor(gh, clr) (gh)->color = (clr)
+
+/**
+ * @brief Set background color
+ * @details Set the color which will be used as background
+ * @note gwinClear() must be called to set the background color
+ *
+ * @param[in] gh The window
+ * @param[in] bgclr The background color
+ */
#define gwinSetBgColor(gh, bgclr) (gh)->bgcolor = (bgclr)
/* Set up for text */