Adding gwinDrawThickArc() wrapper for gdispGDrawThickArc() function.
Fixes T18
This commit is contained in:
parent
52c7f15673
commit
37f25677ec
2 changed files with 22 additions and 0 deletions
|
@ -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);
|
gdispGFillArc(gh->display, gh->x+x, gh->y+y, radius, startangle, endangle, gh->color);
|
||||||
_gwinDrawEnd(gh);
|
_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
|
#endif
|
||||||
|
|
||||||
#if GDISP_NEED_ARCSECTORS
|
#if GDISP_NEED_ARCSECTORS
|
||||||
|
|
|
@ -796,6 +796,22 @@ extern "C" {
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
void gwinFillArc(GHandle gh, coord_t x, coord_t y, coord_t radius, coord_t startangle, coord_t endangle);
|
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
|
#endif
|
||||||
|
|
||||||
#if GDISP_NEED_ARCSECTORS || defined(__DOXYGEN__)
|
#if GDISP_NEED_ARCSECTORS || defined(__DOXYGEN__)
|
||||||
|
|
Loading…
Add table
Reference in a new issue