aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@embedded.pro>2016-12-14 14:49:11 +0100
committerJoel Bodenmann <joel@embedded.pro>2016-12-14 14:49:11 +0100
commit37f25677ec5f1b1a2e804f2976109caae7f1d70d (patch)
tree4e7b1d6d47ed4d61051c577f14c2bb8f311edca9 /src/gwin
parent52c7f156737e7954fbbf50be1ebeedb564334ac6 (diff)
downloaduGFX-37f25677ec5f1b1a2e804f2976109caae7f1d70d.tar.gz
uGFX-37f25677ec5f1b1a2e804f2976109caae7f1d70d.tar.bz2
uGFX-37f25677ec5f1b1a2e804f2976109caae7f1d70d.zip
Adding gwinDrawThickArc() wrapper for gdispGDrawThickArc() function.
Fixes T18
Diffstat (limited to 'src/gwin')
-rw-r--r--src/gwin/gwin.c6
-rw-r--r--src/gwin/gwin.h16
2 files changed, 22 insertions, 0 deletions
diff --git a/src/gwin/gwin.c b/src/gwin/gwin.c
index d049e5b2..7d0ecaeb 100644
--- a/src/gwin/gwin.c
+++ b/src/gwin/gwin.c
@@ -315,6 +315,12 @@ void gwinBlitArea(GHandle gh, coord_t x, coord_t y, coord_t cx, coord_t cy, coor
gdispGFillArc(gh->display, gh->x+x, gh->y+y, radius, startangle, endangle, gh->color);
_gwinDrawEnd(gh);
}
+
+ void gwinDrawThickArc(GHandle gh, coord_t x, coord_t y, coord_t startradius, coord_t endradius, coord_t startangle, coord_t endangle) {
+ if (!_gwinDrawStart(gh)) return;
+ gdispGDrawThickArc(gh->display, gh->x+x, gh->y+y, startradius, endradius, startangle, endangle, gh->color);
+ _gwinDrawEnd(gh);
+ }
#endif
#if GDISP_NEED_ARCSECTORS
diff --git a/src/gwin/gwin.h b/src/gwin/gwin.h
index 98991150..e603f017 100644
--- a/src/gwin/gwin.h
+++ b/src/gwin/gwin.h
@@ -796,6 +796,22 @@ extern "C" {
* @api
*/
void gwinFillArc(GHandle gh, coord_t x, coord_t y, coord_t radius, coord_t startangle, coord_t endangle);
+
+ /*
+ * @brief Draw a thick arc in the window.
+ * @note Uses the current foreground color to draw the thick arc
+ * @note May leave GDISP clipping to this window's dimensions
+ *
+ * @param[in] gh The window handle
+ * @param[in] x,y The center point
+ * @param[in] startradius The inner radius of the thick arc
+ * @param[in] endradius The outer radius of the thick arc
+ * @param[in] startangle The start angle (0 to 360)
+ * @param[in] endangle The end angle (0 to 360)
+ *
+ * @api
+ */
+ void gwinDrawThickArc(GHandle gh, coord_t x, coord_t y, coord_t startradius, coord_t endradius, coord_t startangle, coord_t endangle);
#endif
#if GDISP_NEED_ARCSECTORS || defined(__DOXYGEN__)