added some convenience functions, mainly used by the test app
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11102 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
4f6cd6ef55
commit
6f2b941acf
@ -36,9 +36,18 @@ class Painter {
|
||||
void SetPenSize(float size);
|
||||
void SetOrigin(const BPoint& origin);
|
||||
void SetDrawingMode(drawing_mode mode);
|
||||
void SetBlendingMode(source_alpha alphaSrcMode,
|
||||
alpha_function alphaFncMode);
|
||||
void SetPenLocation(const BPoint& location);
|
||||
void SetFont(const BFont& font);
|
||||
|
||||
// BView API compatibility (for easier testing)
|
||||
void Sync() {}
|
||||
inline void MovePenTo(const BPoint& location)
|
||||
{ SetPenLocation(location); }
|
||||
inline void SetFont(const BFont* font)
|
||||
{ if (font) SetFont(*font); }
|
||||
|
||||
// painting functions
|
||||
|
||||
// lines
|
||||
@ -241,6 +250,8 @@ class Painter {
|
||||
BPoint fOrigin;
|
||||
BRegion* fClippingRegion; // NULL indicates no clipping at all
|
||||
drawing_mode fDrawingMode;
|
||||
source_alpha fAlphaSrcMode;
|
||||
alpha_function fAlphaFncMode;
|
||||
BPoint fPenLocation;
|
||||
PatternHandler* fPatternHandler;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user