diff options
author | inmarket <inmarket@ugfx.org> | 2018-06-23 03:01:37 +0200 |
---|---|---|
committer | Gogs <gogs@fake.local> | 2018-06-23 03:01:37 +0200 |
commit | 3b97fb798e96514057bcf17263c1e5dbdcd7da26 (patch) | |
tree | 5a52cd87dc5f1736448a5d8006c00acee9d325db /src/gwin/gwin_widget.c | |
parent | b9b7d27c5785da70adc60cd7aec7d2a5deb5cb09 (diff) | |
parent | c119ca4a5dd8df57d39a57a530cc5b01adf699e8 (diff) | |
download | uGFX-3b97fb798e96514057bcf17263c1e5dbdcd7da26.tar.gz uGFX-3b97fb798e96514057bcf17263c1e5dbdcd7da26.tar.bz2 uGFX-3b97fb798e96514057bcf17263c1e5dbdcd7da26.zip |
Merge branch 'master' of Steffen/uGFX into master
Diffstat (limited to 'src/gwin/gwin_widget.c')
-rw-r--r-- | src/gwin/gwin_widget.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gwin/gwin_widget.c b/src/gwin/gwin_widget.c index 34b047eb..38b4e236 100644 --- a/src/gwin/gwin_widget.c +++ b/src/gwin/gwin_widget.c @@ -330,6 +330,19 @@ static void gwidgetEvent(void *param, GEvent *pe) { }
}
+ #if GDISP_NEED_CIRCLE
+ void _gwidgetDrawFocusCircle(GWidgetObject *gx, coord_t radius) {
+ coord_t i;
+
+ // Don't do anything if we don't have the focus
+ if (&gx->g != _widgetInFocus)
+ return;
+
+ for (i = 0; i < GWIN_FOCUS_HIGHLIGHT_WIDTH; i++) {
+ gdispGDrawCircle(gx->g.display, gx->g.x + radius, gx->g.y + radius, radius + i, gx->pstyle->focus);
+ }
+ }
+ #endif
#endif
#if GFX_USE_GINPUT && GINPUT_NEED_TOGGLE
|