diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-04-05 08:50:01 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-04-05 08:50:01 -0600 |
commit | 0aa9b220495236e5ce855a2fd7565e3ccd94114a (patch) | |
tree | 53a6899895545101d71b84d18adef5c9ae19f0c1 /NxWidgets/libnxwidgets/include/inxwindow.hxx | |
parent | b49b2136f16a49b753e7824cb68f2294599179ac (diff) | |
download | px4-nuttx-0aa9b220495236e5ce855a2fd7565e3ccd94114a.tar.gz px4-nuttx-0aa9b220495236e5ce855a2fd7565e3ccd94114a.tar.bz2 px4-nuttx-0aa9b220495236e5ce855a2fd7565e3ccd94114a.zip |
Add a 'capped' boolean parameter to all drawline/drawLine functions/methods. The idea is that this will produce better joining between lines
Diffstat (limited to 'NxWidgets/libnxwidgets/include/inxwindow.hxx')
-rw-r--r-- | NxWidgets/libnxwidgets/include/inxwindow.hxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/NxWidgets/libnxwidgets/include/inxwindow.hxx b/NxWidgets/libnxwidgets/include/inxwindow.hxx index 3e2f6c4a1..23b99fe90 100644 --- a/NxWidgets/libnxwidgets/include/inxwindow.hxx +++ b/NxWidgets/libnxwidgets/include/inxwindow.hxx @@ -1,7 +1,7 @@ /**************************************************************************** * NxWidgets/libnxwidgets/include/inxwindow.hxx * - * Copyright (C) 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -249,13 +249,15 @@ namespace NXWidgets * @param vector - Describes the line to be drawn * @param width - The width of the line * @param color - The color to use to fill the line + * @param capped - Draw a circular cap both ends of the line to support + * better line joins * * @return True on success; false on failure. */ virtual bool drawLine(FAR struct nxgl_vector_s *vector, - nxgl_coord_t width, - nxgl_mxpixel_t color) = 0; + nxgl_coord_t width, nxgl_mxpixel_t color, + bool capped) = 0; /** * Draw a filled circle at the specified position, size, and color. |