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/crlepalettebitmap.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/crlepalettebitmap.hxx')
-rw-r--r-- | NxWidgets/libnxwidgets/include/crlepalettebitmap.hxx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/NxWidgets/libnxwidgets/include/crlepalettebitmap.hxx b/NxWidgets/libnxwidgets/include/crlepalettebitmap.hxx index 2b1e4f065..451b472f4 100644 --- a/NxWidgets/libnxwidgets/include/crlepalettebitmap.hxx +++ b/NxWidgets/libnxwidgets/include/crlepalettebitmap.hxx @@ -84,7 +84,7 @@ namespace NXWidgets uint8_t nlut; /**< Number of colors in the Look-Up Table (LUT) */ nxgl_coord_t width; /**< Width in pixels */ nxgl_coord_t height; /**< Height in rows */ - FAR const void *lut; /**< Pointer to the beginning of the Look-Up Table (LUT) */ + FAR const void *lut[2]; /**< Pointers to the beginning of the Look-Up Tables (LUTs) */ /** * The pointer to the beginning of the RLE data @@ -113,6 +113,7 @@ namespace NXWidgets nxgl_coord_t m_row; /**< Logical row number */ nxgl_coord_t m_col; /**< Logical column number */ uint8_t m_remaining; /**< Number of bytes remaining in current entry */ + FAR const void *m_lut; /**< The selected LUT */ FAR const struct SRlePaletteBitmapEntry *m_rle; /**< RLE entry being processed */ /** @@ -237,7 +238,16 @@ namespace NXWidgets const nxgl_coord_t getStride(void) const; /** - * Get one row from the bit map image. + * Use the colors associated with a selected image. + * + * @param selected. true: Use colors for a selected widget, + * false: Use normal (default) colors. + */ + + void setSelected(bool selected); + + /** + * Get one row from the bit map image using the selected colors. * * @param x The offset into the row to get * @param y The row number to get |