aboutsummaryrefslogtreecommitdiffstats
path: root/include/gdisp/gdisp.h
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2013-12-08 21:13:54 +0100
committerJoel Bodenmann <joel@unormal.org>2013-12-08 21:13:54 +0100
commitace1948817becc602079fb95bee45db7266d2142 (patch)
tree1b94ec590a01843d28a0e56ba5b6d558db9da86d /include/gdisp/gdisp.h
parentab75a7eb6e482e221a784736cd0184cf7540b4a3 (diff)
downloaduGFX-ace1948817becc602079fb95bee45db7266d2142.tar.gz
uGFX-ace1948817becc602079fb95bee45db7266d2142.tar.bz2
uGFX-ace1948817becc602079fb95bee45db7266d2142.zip
added gdispGDrawThickLine()
Diffstat (limited to 'include/gdisp/gdisp.h')
-rw-r--r--include/gdisp/gdisp.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/gdisp/gdisp.h b/include/gdisp/gdisp.h
index 99b1a504..ef5115a9 100644
--- a/include/gdisp/gdisp.h
+++ b/include/gdisp/gdisp.h
@@ -624,6 +624,24 @@ void gdispGDrawBox(GDisplay *g, coord_t x, coord_t y, coord_t cx, coord_t cy, co
*/
void gdispGFillConvexPoly(GDisplay *g, coord_t tx, coord_t ty, const point *pntarray, unsigned cnt, color_t color);
#define gdispFillConvexPoly(x,y,p,i,c) gdispGFillConvexPoly(GDISP,x,y,p,i,c)
+
+ /**
+ * @brief Draw a line with a specified thickness
+ * @details The line thickness is specified in pixels. The line ends can
+ * be selected to be either flat or round.
+ * @note Uses gdispGFillConvexPoly() internally to perform the drawing.
+ *
+ * @param[in] g The display to use
+ * @param[in] x0,y0 The start position
+ * @param[in] x1,y1 The end position
+ * @param[in] color The color to use
+ * @param[in] width The width of the line
+ * @param[in] round Use round ends for the line
+ *
+ * @api
+ */
+ void gdispGDrawThickLine(GDisplay *g, coord_t x0, coord_t y0, coord_t x1, coord_t y1, color_t color, coord_t width, bool_t round);
+ #define gdispDrawThickLine(x0,y0,x1,y1,c,w,r) gdispGDrawThickLine(GDISP,x0,y0,x1,y1,c,w,r)
#endif
/* Text Functions */