Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

os::Bitmap Class Reference

Container for bitmap-image data. More...

#include <bitmap.h>

List of all members.

Public Types

enum  {
  ACCEPT_VIEWS = 0x0001,
  SHARE_FRAMEBUFFER = 0x0002
}

Public Methods

 Bitmap (int nWidth, int nHeight, color_space eColorSpc, uint32 nFlags=SHARE_FRAMEBUFFER)
virtual ~Bitmap ()
bool IsValid (void) const
color_space GetColorSpace () const
Rect GetBounds (void) const
int GetBytesPerRow () const
virtual void AddChild (View *pcView)
virtual bool RemoveChild (View *pcView)
ViewFindView (const char *pzName) const
void Sync (void)
void Flush (void)
uint8 * LockRaster (void)
void UnlockRaster ()

Friends

class View
class Window
class Sprite


Detailed Description

Description:
The Bitmap class make it possible to render bitmap graphics into view's and to make view's render into an offscreen buffer to implement things like double-buffering.

The bitmap class have two different ways to communicate with the application server. If the SHARE_FRAMEBUFFER flag is set the bitmaps raster memory is created in a memory-area shared between the application and the appserver. This makes it possible for the appserver to blit graphics written directly to the bitmaps raster buffer by the application into views on the screen (or inside other bitmaps). If the ACCEPT_VIEWS flag is set the bitmap will accept views to be added much like a os::Window object. All rendering performed by the views will then go into the bitmap's offscreen buffer rather than the screen. The rendered image can then be read out by the application (requiers the SHARE_FRAMEBUFFER flag to be set aswell) or it can be blited into other views.

See also:
View, Window
Author:
Kurt Skauen ([email protected])


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
ACCEPT_VIEWS  
SHARE_FRAMEBUFFER  


Constructor & Destructor Documentation

Bitmap::Bitmap int nWidth,
int nHeight,
color_space eColorSpc,
uint32 nFlags = SHARE_FRAMEBUFFER
 

Bitmap::~Bitmap [virtual]
 


Member Function Documentation

void Bitmap::AddChild View * pcView [virtual]
 

View * Bitmap::FindView const char * pzName const
 

void Bitmap::Flush void
 

Rect Bitmap::GetBounds void const
 

int Bitmap::GetBytesPerRow const
 

color_space Bitmap::GetColorSpace const
 

bool os::Bitmap::IsValid void const
 

uint8* os::Bitmap::LockRaster void [inline]
 

bool Bitmap::RemoveChild View * pcView [virtual]
 

void Bitmap::Sync void
 

void os::Bitmap::UnlockRaster [inline]
 


Friends And Related Function Documentation

friend class Sprite [friend]
 

friend class View [friend]
 

friend class Window [friend]
 


Generated at Tue Sep 11 15:27:45 2001 for AtheOS higlevel API by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001