summaryrefslogtreecommitdiff
path: root/NxWidgets/libnxwidgets/include/cimage.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'NxWidgets/libnxwidgets/include/cimage.hxx')
-rw-r--r--NxWidgets/libnxwidgets/include/cimage.hxx16
1 files changed, 11 insertions, 5 deletions
diff --git a/NxWidgets/libnxwidgets/include/cimage.hxx b/NxWidgets/libnxwidgets/include/cimage.hxx
index 0fe275624..6093c5f33 100644
--- a/NxWidgets/libnxwidgets/include/cimage.hxx
+++ b/NxWidgets/libnxwidgets/include/cimage.hxx
@@ -73,7 +73,7 @@
/****************************************************************************
* Included Files
****************************************************************************/
-
+
#include <nuttx/config.h>
#include <stdint.h>
@@ -86,11 +86,11 @@
/****************************************************************************
* Pre-Processor Definitions
****************************************************************************/
-
+
/****************************************************************************
* Implementation Classes
****************************************************************************/
-
+
#if defined(__cplusplus)
namespace NXWidgets
@@ -120,7 +120,7 @@ namespace NXWidgets
* @param port The CGraphicsPort to draw to.
* @see redraw()
*/
-
+
virtual void drawContents(CGraphicsPort *port);
/**
@@ -150,7 +150,7 @@ namespace NXWidgets
*/
virtual void onPreRelease(nxgl_coord_t x, nxgl_coord_t y);
-
+
/**
* Redraws the image.
*
@@ -202,6 +202,12 @@ namespace NXWidgets
virtual inline ~CImage() { }
/**
+ * Get pointer to the bitmap that this image contains.
+ */
+
+ inline FAR IBitmap *getBitmap() const { return m_bitmap; }
+
+ /**
* Insert the dimensions that this widget wants to have into the rect
* passed in as a parameter. All coordinates are relative to the
* widget's parent.