diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-04-28 17:36:53 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-04-28 17:36:53 +0000 |
commit | fbfd97c209f99cf1a9e8190ba835c1b3bef64c2a (patch) | |
tree | ab42679f8868bdeaa101f569dab7500e2206ddf7 /NxWidgets/libnxwidgets/include/cimage.hxx | |
parent | dd5155bc0f4765ad35cb485fb4eb9930ae365a7d (diff) | |
download | nuttx-fbfd97c209f99cf1a9e8190ba835c1b3bef64c2a.tar.gz nuttx-fbfd97c209f99cf1a9e8190ba835c1b3bef64c2a.tar.bz2 nuttx-fbfd97c209f99cf1a9e8190ba835c1b3bef64c2a.zip |
A few pieces of what may become an NX window manager
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4669 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/libnxwidgets/include/cimage.hxx')
-rw-r--r-- | NxWidgets/libnxwidgets/include/cimage.hxx | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/NxWidgets/libnxwidgets/include/cimage.hxx b/NxWidgets/libnxwidgets/include/cimage.hxx index 47f4d557f..a1c282393 100644 --- a/NxWidgets/libnxwidgets/include/cimage.hxx +++ b/NxWidgets/libnxwidgets/include/cimage.hxx @@ -109,8 +109,9 @@ namespace NXWidgets class CImage : public CNxWidget { protected: - FAR IBitmap *m_bitmap; /**< Source bitmap image */ - struct nxgl_point_s m_origin; /**< Origin for offset image display position */ + FAR IBitmap *m_bitmap; /**< Source bitmap image */ + struct nxgl_point_s m_origin; /**< Origin for offset image display position */ + bool m_highlighted; /**< Image is highlighted */ /** * Draw the area of this widget that falls within the clipping region. @@ -191,6 +192,17 @@ namespace NXWidgets */ void setImageTop(nxgl_coord_t row); + + /** + * Control the highlight state. + * + * @param highlightOn True(1), the image will be highlighted + */ + + inline void highlight(bool highlightOn) + { + m_highlighted = highlightOn; + } }; } |