Add a 'capped' boolean parameter to all drawline/drawLine functions/methods. The idea is that this will produce better joining between lines
This commit is contained in:
parent
fed3c04fcb
commit
752ab56bc0
@ -12,7 +12,7 @@
|
|||||||
<h1><big><font color="#3c34ec">
|
<h1><big><font color="#3c34ec">
|
||||||
<i>NX Graphics Subsystem</i>
|
<i>NX Graphics Subsystem</i>
|
||||||
</font></big></h1>
|
</font></big></h1>
|
||||||
<p>Last Updated: December 28, 2013</p>
|
<p>Last Updated: April 5, 2015</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@ -1759,7 +1759,8 @@ int nx_filltrapezoid(NXWINDOW hwnd, FAR const struct nxgl_rect_s *clip,
|
|||||||
#include <nuttx/nx/nx.h>
|
#include <nuttx/nx/nx.h>
|
||||||
|
|
||||||
int nx_drawline(NXWINDOW hwnd, FAR struct nxgl_vector_s *vector,
|
int nx_drawline(NXWINDOW hwnd, FAR struct nxgl_vector_s *vector,
|
||||||
nxgl_coord_t width, nxgl_mxpixel_t color[CONFIG_NX_NPLANES]);
|
nxgl_coord_t width, nxgl_mxpixel_t color[CONFIG_NX_NPLANES],
|
||||||
|
bool capped);
|
||||||
</pre></ul>
|
</pre></ul>
|
||||||
<p>
|
<p>
|
||||||
<b>Description:</b>
|
<b>Description:</b>
|
||||||
@ -1780,6 +1781,8 @@ int nx_drawline(NXWINDOW hwnd, FAR struct nxgl_vector_s *vector,
|
|||||||
<dd>The width of the line
|
<dd>The width of the line
|
||||||
<dt><code>color</code>
|
<dt><code>color</code>
|
||||||
<dd>The color to use to fill the line
|
<dd>The color to use to fill the line
|
||||||
|
<dt><code>capped</code>
|
||||||
|
<dd>Draw a circular cap both ends of the line to support better line joins
|
||||||
</dl></ul>
|
</dl></ul>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
@ -2385,7 +2388,8 @@ int nxtk_filltrapwindow(NXTKWINDOW hfwnd,
|
|||||||
#include <nuttx/nx/nxtk.h>
|
#include <nuttx/nx/nxtk.h>
|
||||||
|
|
||||||
int nxtk_drawlinewindow(NXTKWINDOW hfwnd, FAR struct nxgl_vector_s *vector,
|
int nxtk_drawlinewindow(NXTKWINDOW hfwnd, FAR struct nxgl_vector_s *vector,
|
||||||
nxgl_coord_t width, nxgl_mxpixel_t color[CONFIG_NX_NPLANES]);
|
nxgl_coord_t width, nxgl_mxpixel_t color[CONFIG_NX_NPLANES],
|
||||||
|
bool capped);
|
||||||
</pre></ul>
|
</pre></ul>
|
||||||
<p>
|
<p>
|
||||||
<b>Description:</b>
|
<b>Description:</b>
|
||||||
@ -2406,6 +2410,8 @@ int nxtk_drawlinewindow(NXTKWINDOW hfwnd, FAR struct nxgl_vector_s *vector,
|
|||||||
<dd>The width of the line
|
<dd>The width of the line
|
||||||
<dt><code>color</code>
|
<dt><code>color</code>
|
||||||
<dd>The color to use to fill the line
|
<dd>The color to use to fill the line
|
||||||
|
<dt><code>capped</code>
|
||||||
|
<dd>Draw a circular cap both ends of the line to support better line joins
|
||||||
</dl></ul>
|
</dl></ul>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
@ -2738,7 +2744,8 @@ int nxtk_filltraptoolbar(NXTKWINDOW hfwnd, FAR const struct nxgl_trapezoid_s *tr
|
|||||||
#include <nuttx/nx/nxtk.h>
|
#include <nuttx/nx/nxtk.h>
|
||||||
|
|
||||||
int nxtk_drawlinetoolbar(NXTKWINDOW hfwnd, FAR struct nxgl_vector_s *vector,
|
int nxtk_drawlinetoolbar(NXTKWINDOW hfwnd, FAR struct nxgl_vector_s *vector,
|
||||||
nxgl_coord_t width, nxgl_mxpixel_t color[CONFIG_NX_NPLANES]);
|
nxgl_coord_t width, nxgl_mxpixel_t color[CONFIG_NX_NPLANES],
|
||||||
|
capped);
|
||||||
|
|
||||||
</pre></ul>
|
</pre></ul>
|
||||||
<p>
|
<p>
|
||||||
@ -2759,6 +2766,8 @@ int nxtk_drawlinetoolbar(NXTKWINDOW hfwnd, FAR struct nxgl_vector_s *vector,
|
|||||||
<dd>The width of the line
|
<dd>The width of the line
|
||||||
<dt><code>color</code>
|
<dt><code>color</code>
|
||||||
<dd>The color to use to fill the line
|
<dd>The color to use to fill the line
|
||||||
|
<dt><code>capped</code>
|
||||||
|
<dd>Draw a circular cap both ends of the line to support better line joins
|
||||||
</dl></ul>
|
</dl></ul>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
|
Loading…
Reference in New Issue
Block a user