aboutsummaryrefslogtreecommitdiffstats
path: root/src/gdisp/gdisp.h
diff options
context:
space:
mode:
authorinmarket <inmarket@ugfx.org>2016-11-09 16:41:44 +1000
committerinmarket <inmarket@ugfx.org>2016-11-09 16:41:44 +1000
commit545a719db9f706d47d1135c5056faab82e22f230 (patch)
treef883cf9fa6bcc8f5aae4f22465f9c51cf4e44462 /src/gdisp/gdisp.h
parent59917dbe1acd506fcde7a4a7485333c3125da7e1 (diff)
downloaduGFX-545a719db9f706d47d1135c5056faab82e22f230.tar.gz
uGFX-545a719db9f706d47d1135c5056faab82e22f230.tar.bz2
uGFX-545a719db9f706d47d1135c5056faab82e22f230.zip
New dual circle drawing in GDISP
Diffstat (limited to 'src/gdisp/gdisp.h')
-rw-r--r--src/gdisp/gdisp.h18
1 files changed, 18 insertions, 0 deletions
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__)