Added ServerApp code for BBitmap handling

Added some support functions to ServerBitmap
BitmapManager now adds ID tokens to ServerBitmaps


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2898 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm
2003-03-12 14:29:59 +00:00
parent e30edc5826
commit 59a15bb433
4 changed files with 110 additions and 4 deletions
+8
View File
@@ -57,6 +57,9 @@ public:
*/
area_id Area(void) { return _area; }
// Returns the offset of the bitmap in its area
int32 AreaOffset(void) { return _offset; }
//! Returns the bitmap's buffer
uint8 *Bits(void) { return _buffer; }
uint32 BitsLength(void);
@@ -82,6 +85,9 @@ public:
//! Returns whether the bitmap is valid
bool InitCheck(void) { return _initialized; }
//! Returns the identifier token for the bitmap
int32 Token(void) { return _token; }
protected:
friend BitmapManager;
@@ -104,6 +110,8 @@ protected:
color_space _space;
int32 _flags;
int _bpp;
int32 _token;
int32 _offset;
};
#endif