aboutsummaryrefslogtreecommitdiffstats
path: root/include/gwin/gwin.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gwin/gwin.h')
-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