From 545a719db9f706d47d1135c5056faab82e22f230 Mon Sep 17 00:00:00 2001 From: inmarket Date: Wed, 9 Nov 2016 16:41:44 +1000 Subject: New dual circle drawing in GDISP --- src/gdisp/gdisp.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/gdisp/gdisp.h') diff --git a/src/gdisp/gdisp.h b/src/gdisp/gdisp.h index 5cb91896..22ee8877 100644 --- a/src/gdisp/gdisp.h +++ b/src/gdisp/gdisp.h @@ -574,6 +574,24 @@ void gdispGDrawBox(GDisplay *g, coord_t x, coord_t y, coord_t cx, coord_t cy, co #define gdispFillCircle(x,y,r,c) gdispGFillCircle(GDISP,x,y,r,c) #endif +#if GDISP_NEED_DUALCIRCLE || defined(__DOXYGEN__) + /** + * @brief Draw two filled circles with the same centre. + * @pre GDISP_NEED_DUALCIRCLE must be TRUE in your gfxconf.h + * + * @param[in] g The display to use + * @param[in] x,y The center of the circle + * @param[in] radius1 The radius of the larger circle + * @param[in] color1 The color to use for the larger circle + * @param[in] radius2 The radius of the smaller circle + * @param[in] color2 The color to use for the smaller circle + * + * @api + */ + void gdispGFillDualCircle(GDisplay *g, coord_t x, coord_t y, coord_t radius1, color_t color1, coord_t radius2, color_t color2); + #define gdispFillDualCircle(x,y,r,c) gdispGFillDualCircle(GDISP,x,y,r1,c1,r2,c2) +#endif + /* Ellipse Functions */ #if GDISP_NEED_ELLIPSE || defined(__DOXYGEN__) -- cgit v1.2.3