added some functions with optimized implementation

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12112 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2005-03-29 01:40:38 +00:00
parent 6e3baa44ff
commit 74516f2ac3
1 changed files with 15 additions and 1 deletions

View File

@ -68,7 +68,13 @@ class Painter {
void StrokeLine( BPoint b,
const pattern& p = B_SOLID_HIGH);
// return true if the line was either vertical or horizontal
// draws a solid one pixel wide line of color c, no blending
bool StraightLine( BPoint a,
BPoint b,
const rgb_color& c) const;
// triangles
void StrokeTriangle( BPoint pt1,
BPoint pt2,
@ -110,9 +116,17 @@ class Painter {
void StrokeRect( const BRect& r,
const pattern& p = B_SOLID_HIGH) const;
// strokes a one pixel wide solid rect, no blending
void StrokeRect( const BRect& r,
const rgb_color& c) const;
void FillRect( const BRect& r,
const pattern& p = B_SOLID_HIGH) const;
// fills a solid rect with color c, no blending
void FillRect( const BRect& r,
const rgb_color& c) const;
// round rects
void StrokeRoundRect(const BRect& r,
float xRadius,