|
NXWidgets
1.19
|
#include <cbitmap.hxx>

Public Member Functions | |
| CBitmap (const struct SBitmap *bitmap) | |
| ~CBitmap (void) | |
| const uint8_t | getColorFormat (void) const |
| const uint8_t | getBitsPerPixel (void) const |
| const nxgl_coord_t | getWidth (void) const |
| const nxgl_coord_t | getHeight (void) const |
| const size_t | getStride (void) const |
| void | setSelected (bool selected) |
| bool | getRun (nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t width, FAR void *data) |
Public Member Functions inherited from NXWidgets::IBitmap | |
| virtual | ~IBitmap (void) |
Protected Member Functions | |
| CBitmap (const CBitmap &bitmap) | |
Protected Attributes | |
| const struct SBitmap * | m_bitmap |
Class providing bitmap accessor for a bitmap represented by SBitmap.
Definition at line 117 of file cbitmap.hxx.
|
inlineprotected |
Copy constructor is protected to prevent usage.
Definition at line 126 of file cbitmap.hxx.
| CBitmap::CBitmap | ( | const struct SBitmap * | bitmap | ) |
Constructor.
| bitmap | The bitmap structure being wrapped. |
Definition at line 100 of file cbitmap.cxx.
|
inline |
Destructor.
Definition at line 142 of file cbitmap.hxx.
|
virtual |
Get the bitmap's color format.
Implements NXWidgets::IBitmap.
Definition at line 119 of file cbitmap.cxx.
|
virtual |
Get the bitmap's color format.
Implements NXWidgets::IBitmap.
Definition at line 108 of file cbitmap.cxx.
|
virtual |
Get the bitmap's height (in rows).
Implements NXWidgets::IBitmap.
Definition at line 141 of file cbitmap.cxx.
|
virtual |
Get one row from the bit map image.
| 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. |
Implements NXWidgets::IBitmap.
Definition at line 170 of file cbitmap.cxx.
|
virtual |
Get the bitmap's width (in bytes).
Implements NXWidgets::IBitmap.
Definition at line 152 of file cbitmap.cxx.
|
virtual |
Get the bitmap's width (in pixels/columns).
Implements NXWidgets::IBitmap.
Definition at line 130 of file cbitmap.cxx.
|
inlinevirtual |
Use the colors associated with a selected image.
| selected. | true: Use colors for a selected widget, false: Use normal (default) colors. |
Implements NXWidgets::IBitmap.
Definition at line 191 of file cbitmap.hxx.
|
protected |
The bitmap that is being managed
Definition at line 120 of file cbitmap.hxx.
1.8.13