more support functions

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12047 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2005-03-26 22:03:49 +00:00
parent 7814396f35
commit 97dba15f78
+14 -2
View File
@@ -9,9 +9,12 @@
#include "defines.h"
#include "forwarding_pixfmt.h"
#include "RGBColor.h"
class AGGTextRenderer;
class BBitmap;
class BRegion;
class DrawData;
class PatternHandler;
class RenderingBuffer;
class ServerBitmap;
@@ -27,12 +30,17 @@ class Painter {
void DetachFromBuffer();
void ConstrainClipping(const BRegion& region);
void SetDrawData(const DrawData* data);
// object settings
void SetHighColor(const rgb_color& color);
void SetHighColor(uint8 r, uint8 g, uint8 b, uint8 a = 255);
inline void SetHighColor(uint8 r, uint8 g, uint8 b, uint8 a = 255);
inline void SetHighColor(const RGBColor& color)
{ SetHighColor(color.GetColor32()); }
void SetLowColor(const rgb_color& color);
void SetLowColor(uint8 r, uint8 g, uint8 b, uint8 a = 255);
inline void SetLowColor(uint8 r, uint8 g, uint8 b, uint8 a = 255);
inline void SetLowColor(const RGBColor& color)
{ SetLowColor(color.GetColor32()); }
void SetScale(float scale);
void SetPenSize(float size);
@@ -179,6 +187,10 @@ class Painter {
void InvertRect( const BRect& r) const;
BRect BoundingBox( const char* utf8String,
uint32 length,
const BPoint& baseLine) const;
// MISSING (?):
/*