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:
parent
6e3baa44ff
commit
74516f2ac3
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user