aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/gwin_class.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gwin/gwin_class.h')
-rw-r--r--src/gwin/gwin_class.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gwin/gwin_class.h b/src/gwin/gwin_class.h
index ea5c260c..4b173e3c 100644
--- a/src/gwin/gwin_class.h
+++ b/src/gwin/gwin_class.h
@@ -359,9 +359,26 @@ 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
+ */
+ #if GDISP_NEED_CIRCLE
+ void _gwidgetDrawFocusCircle(GWidgetObject *gx, coord_t radius);
+ #endif
+
#else
#define _gwinFixFocus(gh)
#define _gwidgetDrawFocusRect(gh,x,y,cx,cy)
+ #define _gwidgetDrawFocusCircle(gh,radius)
#endif
#if GWIN_NEED_FLASHING || defined(__DOXYGEN__)