aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/sys_defs.h
diff options
context:
space:
mode:
authorPaul Shamray <pashamray@gmail.com>2014-07-12 11:04:23 +0300
committerPaul Shamray <pashamray@gmail.com>2014-07-12 11:04:23 +0300
commit214c2d2d0bf92807e40d62b7f7ebf32d3f37b1a8 (patch)
tree6ed98bdcd1e5f179fc8b9ea2c94ed409618be70d /src/gwin/sys_defs.h
parent1104638ff06150d5b611186406e20eeb5be55b12 (diff)
parentcae7b197b38ec33b92bab5554ce2156867ae45d5 (diff)
downloaduGFX-214c2d2d0bf92807e40d62b7f7ebf32d3f37b1a8.tar.gz
uGFX-214c2d2d0bf92807e40d62b7f7ebf32d3f37b1a8.tar.bz2
uGFX-214c2d2d0bf92807e40d62b7f7ebf32d3f37b1a8.zip
Merged master into pcd8544
Diffstat (limited to 'src/gwin/sys_defs.h')
-rw-r--r--src/gwin/sys_defs.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/gwin/sys_defs.h b/src/gwin/sys_defs.h
index 830827b2..169b4498 100644
--- a/src/gwin/sys_defs.h
+++ b/src/gwin/sys_defs.h
@@ -601,6 +601,24 @@ extern "C" {
void gwinDrawLine(GHandle gh, coord_t x0, coord_t y0, coord_t x1, coord_t y1);
/**
+ * @brief Draw a thick line in the window
+ * @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.
+ * @note Uses the current foreground color to draw the line
+ *
+ * @param[in] gh The window handle
+ * @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 gwinDrawThickLine(GHandle gh, coord_t x0, coord_t y0, coord_t x1, coord_t y1, coord_t width, bool_t round);
+
+ /**
* @brief Draw a box in the window
* @note Uses the current foreground color to draw the box
* @note May leave GDISP clipping to this window's dimensions