xref: /haiku/src/servers/app/drawing/MallocBuffer.h (revision 1deede7388b04dbeec5af85cae7164735ea9e70d)
1 // MallocBuffer.h
2 
3 #ifndef MALLOC_BUFFER_H
4 #define MALLOC_BUFFER_H
5 
6 #include "RenderingBuffer.h"
7 
8 class BBitmap;
9 
10 class MallocBuffer : public RenderingBuffer {
11  public:
12 								MallocBuffer(uint32 width,
13 											 uint32 height);
14 	virtual						~MallocBuffer();
15 
16 	virtual	status_t			InitCheck() const;
17 
18 	virtual	color_space			ColorSpace() const;
19 	virtual	void*				Bits() const;
20 	virtual	uint32				BytesPerRow() const;
21 	virtual	uint32				Width() const;
22 	virtual	uint32				Height() const;
23 
24  private:
25 
26 			void*				fBuffer;
27 			uint32				fWidth;
28 			uint32				fHeight;
29 };
30 
31 #endif // MALLOC_BUFFER_H
32