aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin
diff options
context:
space:
mode:
authorinmarket <inmarket@ugfx.org>2017-08-26 01:31:46 +0200
committerGogs <gogs@fake.local>2017-08-26 01:31:46 +0200
commit9f5a71634493fce043b7ad40450952060f49c180 (patch)
treeb1516bc3247a517313d154a7001d99376f712de4 /src/gwin
parent38f487edcb461b077fe7170774584cd311061afa (diff)
parente68c9c09e261eae56e4ea4cc55203f43bdaa9bd4 (diff)
downloaduGFX-9f5a71634493fce043b7ad40450952060f49c180.tar.gz
uGFX-9f5a71634493fce043b7ad40450952060f49c180.tar.bz2
uGFX-9f5a71634493fce043b7ad40450952060f49c180.zip
Merge branch 'gwinDetachToggle' of raboof/ugfx into master
Diffstat (limited to 'src/gwin')
-rw-r--r--src/gwin/gwin_widget.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gwin/gwin_widget.h b/src/gwin/gwin_widget.h
index ece98a06..ce7490cd 100644
--- a/src/gwin/gwin_widget.h
+++ b/src/gwin/gwin_widget.h
@@ -356,6 +356,20 @@ bool_t gwinAttachListener(GListener *pl);
* @api
*/
bool_t gwinAttachToggle(GHandle gh, uint16_t role, uint16_t instance);
+ /**
+ * @brief Detach a toggle from a widget
+ * @return TRUE on success
+ *
+ * @param[in] gh The widget handle
+ * @param[in] role The function the toggle will perform for the widget
+ *
+ * @note See the documentation on the specific widget to see the possible
+ * values for the role parameter. If it is out of range, this function
+ * will return FALSE
+ *
+ * @api
+ */
+ bool_t gwinDetachToggle(GHandle gh, uint16_t role);
#endif
#if (GFX_USE_GINPUT && GINPUT_NEED_DIAL) || defined(__DOXYGEN__)