refactored DrawBitmap to support a version BBitmaps and one for ServerBitmaps, implemented InvertRect, but that was a while ago, and I didn't test it
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11961 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a0c67cdb39
commit
f6e20515b3
|
@ -14,6 +14,8 @@ class BBitmap;
|
||||||
class BRegion;
|
class BRegion;
|
||||||
class PatternHandler;
|
class PatternHandler;
|
||||||
class RenderingBuffer;
|
class RenderingBuffer;
|
||||||
|
class ServerBitmap;
|
||||||
|
class ServerFont;
|
||||||
|
|
||||||
class Painter {
|
class Painter {
|
||||||
public:
|
public:
|
||||||
|
@ -152,12 +154,18 @@ class Painter {
|
||||||
BRect bitmapRect,
|
BRect bitmapRect,
|
||||||
BRect viewRect) const;
|
BRect viewRect) const;
|
||||||
|
|
||||||
|
void DrawBitmap( const ServerBitmap* bitmap,
|
||||||
|
BRect bitmapRect,
|
||||||
|
BRect viewRect) const;
|
||||||
|
|
||||||
|
// some convenience stuff
|
||||||
|
void FillRegion( const BRegion* region,
|
||||||
|
const pattern& p = B_SOLID_HIGH) const;
|
||||||
|
|
||||||
|
void InvertRect( const BRect& r) const;
|
||||||
|
|
||||||
// MISSING:
|
// MISSING:
|
||||||
/* void FillRegion( const BRegion* region,
|
/*
|
||||||
const pattern& p = B_SOLID_HIGH);
|
|
||||||
|
|
||||||
void InvertRect( BRect r);
|
|
||||||
|
|
||||||
|
|
||||||
// "screen blits"
|
// "screen blits"
|
||||||
|
@ -189,6 +197,7 @@ class Painter {
|
||||||
bool centerOffset = true) const;
|
bool centerOffset = true) const;
|
||||||
void _Transform(float* width) const;
|
void _Transform(float* width) const;
|
||||||
float _Transform(const float& width) const;
|
float _Transform(const float& width) const;
|
||||||
|
void _Transform(BRect* rect) const;
|
||||||
|
|
||||||
void _RebuildClipping();
|
void _RebuildClipping();
|
||||||
|
|
||||||
|
@ -215,6 +224,18 @@ class Painter {
|
||||||
const pattern& p,
|
const pattern& p,
|
||||||
bool fill) const;
|
bool fill) const;
|
||||||
|
|
||||||
|
void _DrawBitmap( const agg::rendering_buffer& srcBuffer,
|
||||||
|
color_space format,
|
||||||
|
BRect actualBitmapRect,
|
||||||
|
BRect bitmapRect,
|
||||||
|
BRect viewRect) const;
|
||||||
|
void _DrawBitmap32( const agg::rendering_buffer& srcBuffer,
|
||||||
|
BRect actualBitmapRect,
|
||||||
|
BRect bitmapRect,
|
||||||
|
BRect viewRect) const;
|
||||||
|
|
||||||
|
void _InvertRect32(BRect r) const;
|
||||||
|
|
||||||
|
|
||||||
template<class VertexSource>
|
template<class VertexSource>
|
||||||
void _StrokePath(VertexSource& path,
|
void _StrokePath(VertexSource& path,
|
||||||
|
|
Loading…
Reference in New Issue