aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/gwin_class.h
diff options
context:
space:
mode:
authorSteffen Schroeter <steffen@vexar.de>2018-01-19 14:21:58 +0100
committerSteffen Schroeter <steffen@vexar.de>2018-01-19 14:21:58 +0100
commite0f22d9cb8990c6535d0bac0de8143eb1b3b1b2f (patch)
tree03f54e970727bc458e582cd1acc946ea8c3fa2bb /src/gwin/gwin_class.h
parent013bac84cefa14d333a59e16c3fca1b85f05a090 (diff)
downloaduGFX-e0f22d9cb8990c6535d0bac0de8143eb1b3b1b2f.tar.gz
uGFX-e0f22d9cb8990c6535d0bac0de8143eb1b3b1b2f.tar.bz2
uGFX-e0f22d9cb8990c6535d0bac0de8143eb1b3b1b2f.zip
Add keyboard input to radio widget
Diffstat (limited to 'src/gwin/gwin_class.h')
-rw-r--r--src/gwin/gwin_class.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gwin/gwin_class.h b/src/gwin/gwin_class.h
index ea5c260c..454c13ff 100644
--- a/src/gwin/gwin_class.h
+++ b/src/gwin/gwin_class.h
@@ -359,9 +359,24 @@ bool_t _gwinWMAdd(GHandle gh, const GWindowInit *pInit);
*/
void _gwidgetDrawFocusRect(GWidgetObject *gw, coord_t x, coord_t y, coord_t cx, coord_t cy);
+ /**
+ * @brief Draw a simple focus circle in the default style.
+ *
+ * @param[in] gw The widget
+ * @param[in] radius The radius of the circle
+ *
+ * @note Assumes the widget is in a state where it can draw.
+ * @note Nothing is drawn if the window doesn't have focus.
+ * @note The focus circle may be more than one pixel thick.
+ *
+ * @notapi
+ */
+ void _gwidgetDrawFocusCircle(GWidgetObject *gx, coord_t radius);
+
#else
#define _gwinFixFocus(gh)
#define _gwidgetDrawFocusRect(gh,x,y,cx,cy)
+ #define _gwidgetDrawFocusCircle(gh,radius)
#endif
#if GWIN_NEED_FLASHING || defined(__DOXYGEN__)