aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/gwin_widget.h
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@seriouslyembedded.com>2015-08-13 10:36:56 +0200
committerJoel Bodenmann <joel@seriouslyembedded.com>2015-08-13 10:36:56 +0200
commite7e4f813e1dcbc608d54e30183ccee0a036e7eb8 (patch)
tree924be44c76d2f9f33b32c2e087e9157231732ed3 /src/gwin/gwin_widget.h
parent3ba3be201cddf3c6a4606f49028fc6640da0b28e (diff)
downloaduGFX-e7e4f813e1dcbc608d54e30183ccee0a036e7eb8.tar.gz
uGFX-e7e4f813e1dcbc608d54e30183ccee0a036e7eb8.tar.bz2
uGFX-e7e4f813e1dcbc608d54e30183ccee0a036e7eb8.zip
Adding gwinIsWidget()
Diffstat (limited to 'src/gwin/gwin_widget.h')
-rw-r--r--src/gwin/gwin_widget.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gwin/gwin_widget.h b/src/gwin/gwin_widget.h
index 1e97cdd2..d7b88b70 100644
--- a/src/gwin/gwin_widget.h
+++ b/src/gwin/gwin_widget.h
@@ -228,6 +228,17 @@ void gwinSetText(GHandle gh, const char *text, bool_t useAlloc);
*/
const char *gwinGetText(GHandle gh);
+/**
+ * @brief Check whether a handles is a widget handle or not
+ *
+ * @param[in] gh The handle to check.
+ *
+ * @return TRUE if the passed handle is a widget handle. FALSE otherwise.
+ *
+ * @api
+ */
+bool_t gwinIsWidget(GHandle gh);
+
#if GWIN_WIDGET_TAGS || defined(__DOXYGEN__)
/**
* @brief Set the tag of a widget.