Public Types | |
enum | { ACCEPT_VIEWS = 0x0001, SHARE_FRAMEBUFFER = 0x0002, NO_ALPHA_CHANNEL = 0x0004 } |
Public Member Functions | |
Bitmap (int nWidth, int nHeight, color_space eColorSpc, uint32 nFlags=SHARE_FRAMEBUFFER) | |
Bitmap constructor. | |
Bitmap (int hHandle) | |
Create a bitmap from a handle. | |
virtual | ~Bitmap () |
bool | IsValid (void) const |
int | GetHandle (void) const |
Returns the appserver handle. | |
color_space | GetColorSpace () const |
Returns the colorspace of the bitmap. | |
Rect | GetBounds (void) const |
Returns the bounds of the bitmap. | |
int | GetBytesPerRow () const |
Returns the numer of bytes in one bitmap row. | |
virtual void | AddChild (View *pcView) |
Adds a view to the bitmap. | |
virtual bool | RemoveChild (View *pcView) |
Removes a view from the bitmap. | |
View * | FindView (const char *pzName) const |
Returns the view with the given name. | |
void | Sync (void) |
Flush rendering operations and wait until they have been finished. | |
void | Flush (void) |
Flush rendering operations. | |
uint8 * | LockRaster (void) |
Get a pointer to the raw raster data. | |
void | UnlockRaster () |
Friends | |
class | View |
class | Window |
class | Sprite |
class | Desktop |
Bitmap::Bitmap | ( | int | nWidth, | |
int | nHeight, | |||
color_space | eColorSpc, | |||
uint32 | nFlags = SHARE_FRAMEBUFFER | |||
) |
nWidth | - Width of the bitmap. | |
nHeight | - Height of the bitmap. | |
eColorSpc | - ColorSpace of the bitmap | |
nFlags | - See description of the class. |
Bitmap::Bitmap | ( | int | hHandle | ) |
hHandle | - The appserver handle of the bitmap. |
Bitmap::~Bitmap | ( | ) | [virtual] |
bool os::Bitmap::IsValid | ( | void | ) | const |
int Bitmap::GetHandle | ( | void | ) | const |
color_space Bitmap::GetColorSpace | ( | ) | const |
Rect Bitmap::GetBounds | ( | void | ) | const |
int Bitmap::GetBytesPerRow | ( | ) | const |
void Bitmap::AddChild | ( | View * | pcView | ) | [virtual] |
pcView | - The view. |
bool Bitmap::RemoveChild | ( | View * | pcView | ) | [virtual] |
pcView | - The view. |
View * Bitmap::FindView | ( | const char * | pzName | ) | const |
void Bitmap::Sync | ( | void | ) |
void Bitmap::Flush | ( | void | ) |
uint8* os::Bitmap::LockRaster | ( | void | ) | [inline] |
Returns | a pointer to the raster data, or NULL if the bitmap was not created with the SHARE_FRAMEBUFFER flag. |
void os::Bitmap::UnlockRaster | ( | ) | [inline] |
friend class View [friend] |
friend class Window [friend] |
friend class Sprite [friend] |
friend class Desktop [friend] |