From 97dba15f7843dc17efbdce7639b20fe46642f042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 26 Mar 2005 22:03:49 +0000 Subject: [PATCH] more support functions git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12047 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/servers/app/Painter.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/headers/private/servers/app/Painter.h b/headers/private/servers/app/Painter.h index 7bd8292253..3af1c26064 100644 --- a/headers/private/servers/app/Painter.h +++ b/headers/private/servers/app/Painter.h @@ -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 (?): /*