aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-01-06 22:06:36 +0100
committerJoel Bodenmann <joel@unormal.org>2014-01-06 22:06:36 +0100
commitac98de6b6934dffeee87d2cd6329d3504d2332d4 (patch)
treeac2c84ea5a29977c371e50ed179a532353807ee5 /include
parent192335ea3595a2c162857a6a1eebb672f82bf180 (diff)
downloaduGFX-ac98de6b6934dffeee87d2cd6329d3504d2332d4.tar.gz
uGFX-ac98de6b6934dffeee87d2cd6329d3504d2332d4.tar.bz2
uGFX-ac98de6b6934dffeee87d2cd6329d3504d2332d4.zip
added gwinGetColor() and gwinGetBgColor()
Diffstat (limited to 'include')
-rw-r--r--include/gwin/gwin.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/gwin/gwin.h b/include/gwin/gwin.h
index 96055376..e964bc3a 100644
--- a/include/gwin/gwin.h
+++ b/include/gwin/gwin.h
@@ -276,6 +276,24 @@ extern "C" {
#define gwinSetBgColor(gh, bgclr) (gh)->bgcolor = (bgclr)
/**
+ * @brief Get the foreground color of a window
+ *
+ * @param[in] gh The window
+ *
+ * @api
+ */
+ #define gwinGetColor(gh) (gh)->color
+
+ /**
+ * @brief Get the background color of a window
+ *
+ * @param[in] gh The window
+ *
+ * @api
+ */
+ #define gwinGetBgColor(gh) (gh)->bgcolor
+
+ /**
* @brief Sets whether a window is visible or not
*
* @param[in] gh The window