aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/gwin_class.h
diff options
context:
space:
mode:
authorinmarket <inmarket@ugfx.org>2018-06-23 03:01:37 +0200
committerGogs <gogs@fake.local>2018-06-23 03:01:37 +0200
commit3b97fb798e96514057bcf17263c1e5dbdcd7da26 (patch)
tree5a52cd87dc5f1736448a5d8006c00acee9d325db /src/gwin/gwin_class.h
parentb9b7d27c5785da70adc60cd7aec7d2a5deb5cb09 (diff)
parentc119ca4a5dd8df57d39a57a530cc5b01adf699e8 (diff)
downloaduGFX-3b97fb798e96514057bcf17263c1e5dbdcd7da26.tar.gz
uGFX-3b97fb798e96514057bcf17263c1e5dbdcd7da26.tar.bz2
uGFX-3b97fb798e96514057bcf17263c1e5dbdcd7da26.zip
Merge branch 'master' of Steffen/uGFX into master
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__)