|
NXWidgets
1.19
|
#include <ibitmap.hxx>

Public Member Functions | |
| virtual | ~IBitmap (void) |
| virtual const uint8_t | getColorFormat (void) const =0 |
| virtual const uint8_t | getBitsPerPixel (void) const =0 |
| virtual const nxgl_coord_t | getWidth (void) const =0 |
| virtual const nxgl_coord_t | getHeight (void) const =0 |
| virtual const size_t | getStride (void) const =0 |
| virtual void | setSelected (bool selected)=0 |
| virtual bool | getRun (nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t width, FAR void *data)=0 |
Abstract class defining the basic properties of a source bitmap. The primary intent of this class is two support a variety of sources of bitmap data with various kinds of compression.
Definition at line 103 of file ibitmap.hxx.
|
inlinevirtual |
A virtual destructor is required in order to override the IBitmap destructor. We do this because if we delete IBitmap, we want the destructor of the class that inherits from IBitmap to run, not this one.
Definition at line 113 of file ibitmap.hxx.
|
pure virtual |
Get the bitmap's color format.
Implemented in NXWidgets::CRlePaletteBitmap, NXWidgets::CBitmap, and NXWidgets::CScaledBitmap.
|
pure virtual |
Get the bitmap's color format.
Implemented in NXWidgets::CRlePaletteBitmap, NXWidgets::CBitmap, and NXWidgets::CScaledBitmap.
|
pure virtual |
Get the bitmap's height (in rows).
Implemented in NXWidgets::CRlePaletteBitmap, NXWidgets::CBitmap, and NXWidgets::CScaledBitmap.
|
pure virtual |
Get one row from the bit map image using the selected colors.
| x | The offset into the row to get |
| y | The row number to get |
| width | The number of pixels to get from the row |
| data | The memory location provided by the caller in which to return the data. This should be at least (getWidth()*getBitsPerPixl() + 7)/8 bytes in length and properly aligned for the pixel color format. |
| True | if the run was returned successfully. |
Implemented in NXWidgets::CRlePaletteBitmap, NXWidgets::CBitmap, and NXWidgets::CScaledBitmap.
|
pure virtual |
Get the bitmap's width (in bytes).
Implemented in NXWidgets::CRlePaletteBitmap, NXWidgets::CBitmap, and NXWidgets::CScaledBitmap.
|
pure virtual |
Get the bitmap's width (in pixels/columns).
Implemented in NXWidgets::CRlePaletteBitmap, NXWidgets::CBitmap, and NXWidgets::CScaledBitmap.
|
pure virtual |
Use the colors associated with a selected image.
| selected. | true: Use colors for a selected widget, false: Use normal (default) colors. |
Implemented in NXWidgets::CRlePaletteBitmap, NXWidgets::CBitmap, and NXWidgets::CScaledBitmap.
1.8.13