summaryrefslogtreecommitdiff
path: root/NxWidgets/libnxwidgets/include/ibitmap.hxx
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-10-15 11:09:20 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-10-15 11:09:20 -0600
commit24ee5014675d43c80c0580882fe5cc24ca17e7a8 (patch)
treee723687b37dcce6d8d582830c8ca0d52d057e9c6 /NxWidgets/libnxwidgets/include/ibitmap.hxx
parentb5a37a3e45ac9faea285cc252e742c1c7267a6d7 (diff)
downloadnuttx-24ee5014675d43c80c0580882fe5cc24ca17e7a8.tar.gz
nuttx-24ee5014675d43c80c0580882fe5cc24ca17e7a8.tar.bz2
nuttx-24ee5014675d43c80c0580882fe5cc24ca17e7a8.zip
NxWidgets::CScaledImage: New class that wraps any class that provides IBitMap and adds image scaling
Diffstat (limited to 'NxWidgets/libnxwidgets/include/ibitmap.hxx')
-rw-r--r--NxWidgets/libnxwidgets/include/ibitmap.hxx15
1 files changed, 8 insertions, 7 deletions
diff --git a/NxWidgets/libnxwidgets/include/ibitmap.hxx b/NxWidgets/libnxwidgets/include/ibitmap.hxx
index 923df407a..c4e235dc5 100644
--- a/NxWidgets/libnxwidgets/include/ibitmap.hxx
+++ b/NxWidgets/libnxwidgets/include/ibitmap.hxx
@@ -73,9 +73,10 @@
/****************************************************************************
* Included Files
****************************************************************************/
-
+
#include <nuttx/config.h>
+#include <sys/types.h>
#include <stdint.h>
#include <stdbool.h>
@@ -84,11 +85,11 @@
/****************************************************************************
* Pre-Processor Definitions
****************************************************************************/
-
+
/****************************************************************************
* Implementation Classes
****************************************************************************/
-
+
#if defined(__cplusplus)
namespace NXWidgets
@@ -114,7 +115,7 @@ namespace NXWidgets
/**
* Get the bitmap's color format.
*
- * @return The bitmap's width.
+ * @return The bitmap's color format.
*/
virtual const uint8_t getColorFormat(void) const = 0;
@@ -130,7 +131,7 @@ namespace NXWidgets
/**
* Get the bitmap's width (in pixels/columns).
*
- * @return The bitmap's pixel depth.
+ * @return The bitmap's width (in pixels/columns).
*/
virtual const nxgl_coord_t getWidth(void) const = 0;
@@ -138,7 +139,7 @@ namespace NXWidgets
/**
* Get the bitmap's height (in rows).
*
- * @return The bitmap's height.
+ * @return The bitmap's height (in rows).
*/
virtual const nxgl_coord_t getHeight(void) const = 0;
@@ -149,7 +150,7 @@ namespace NXWidgets
* @return The bitmap's width.
*/
- virtual const nxgl_coord_t getStride(void) const = 0;
+ virtual const size_t getStride(void) const = 0;
/**
* Use the colors associated with a selected image.