diff options
author | Joel Bodenmann <joel@unormal.org> | 2014-01-06 22:06:36 +0100 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2014-01-06 22:06:36 +0100 |
commit | ac98de6b6934dffeee87d2cd6329d3504d2332d4 (patch) | |
tree | ac2c84ea5a29977c371e50ed179a532353807ee5 | |
parent | 192335ea3595a2c162857a6a1eebb672f82bf180 (diff) | |
download | uGFX-ac98de6b6934dffeee87d2cd6329d3504d2332d4.tar.gz uGFX-ac98de6b6934dffeee87d2cd6329d3504d2332d4.tar.bz2 uGFX-ac98de6b6934dffeee87d2cd6329d3504d2332d4.zip |
added gwinGetColor() and gwinGetBgColor()
-rw-r--r-- | include/gwin/gwin.h | 18 |
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 |