aboutsummaryrefslogtreecommitdiffstats
path: root/include/gwin/gwin.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-07-04 00:59:12 +1000
committerinmarket <andrewh@inmarket.com.au>2013-07-04 00:59:12 +1000
commitf9eed6036d7f28ef1ab8f8d3feec6a05e0572405 (patch)
tree03e4d38b594e5483db377c5023703de3c5bdf7f8 /include/gwin/gwin.h
parenta7198b53ff82a02a86a55823a8be895ec5eca1e4 (diff)
downloaduGFX-f9eed6036d7f28ef1ab8f8d3feec6a05e0572405.tar.gz
uGFX-f9eed6036d7f28ef1ab8f8d3feec6a05e0572405.tar.bz2
uGFX-f9eed6036d7f28ef1ab8f8d3feec6a05e0572405.zip
Make the enabled state available to all GWIN's - not just widgets.
Diffstat (limited to 'include/gwin/gwin.h')
-rw-r--r--include/gwin/gwin.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/gwin/gwin.h b/include/gwin/gwin.h
index ba9e1e1a..dd8abb0f 100644
--- a/include/gwin/gwin.h
+++ b/include/gwin/gwin.h
@@ -298,6 +298,29 @@ extern "C" {
bool_t gwinGetVisible(GHandle gh);
/**
+ * @brief Enable or disable a window
+ *
+ * @param[in] gh The window handle
+ * @param[in] enabled Enable or disable the window
+ *
+ * @note The window is automatically redrawn if it
+ * supports self-redrawing.
+ *
+ * @api
+ */
+ void gwinSetEnabled(GHandle gh, bool_t enabled);
+
+ /**
+ * @brief Gets the enabled state of a window
+ * @return TRUE if enabled
+ *
+ * @param[in] gh The window
+ *
+ * @api
+ */
+ bool_t gwinGetEnabled(GHandle gh);
+
+ /**
* @brief Move a window
*
* @param[in] gh The window