aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/gwin.h
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@seriouslyembedded.com>2015-08-13 01:13:36 +0200
committerJoel Bodenmann <joel@seriouslyembedded.com>2015-08-13 01:13:36 +0200
commit3ba3be201cddf3c6a4606f49028fc6640da0b28e (patch)
treed1b4e580a0ca258516da026c1d6966561d751dce /src/gwin/gwin.h
parent37a088efb73e119a6675241394926cdb47c11ab2 (diff)
downloaduGFX-3ba3be201cddf3c6a4606f49028fc6640da0b28e.tar.gz
uGFX-3ba3be201cddf3c6a4606f49028fc6640da0b28e.tar.bz2
uGFX-3ba3be201cddf3c6a4606f49028fc6640da0b28e.zip
Adding gwinSetFocus() and gwinGetFocus()
Diffstat (limited to 'src/gwin/gwin.h')
-rw-r--r--src/gwin/gwin.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/gwin/gwin.h b/src/gwin/gwin.h
index 4a7d02bf..329be4c4 100644
--- a/src/gwin/gwin.h
+++ b/src/gwin/gwin.h
@@ -548,6 +548,31 @@ extern "C" {
GHandle gwinGetNextWindow(GHandle gh);
/**
+ * @brief Set the focus to a specific widget
+ *
+ * @details The widget that is currently in focus is the widget that
+ * receives mouse and keyboard events.
+ * Passing NULL will remove the focus from any widget.
+ *
+ * @param[in] gh The widget handle. Non-widget handles will be ignored.
+ *
+ * @api
+ */
+ void gwinSetFocus(GHandle gh);
+
+ /**
+ * @brief Get the widget that is currently in focus
+ *
+ * @details The widget that is currently in focus is the widget that
+ * receives mouse and keyboard events.
+ *
+ * @return The handle of the widget that is currently in focus. May be NULL.
+ *
+ * @api
+ */
+ GHandle gwinGetFocus(void);
+
+ /**
* @brief Set a window or widget to flash
*
* @param[in] gh The window handle