added functions to quickly tell if the pattern is the solid high or low pattern

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15533 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2005-12-14 08:01:49 +00:00
parent c676b8fcc6
commit 025e63b08a

View File

@ -135,8 +135,12 @@ class PatternHandler {
bool IsHighColor(const BPoint& pt) const;
inline bool IsHighColor(int x, int y) const;
inline bool IsSolidHigh() const
{ return fPattern == B_SOLID_HIGH; }
inline bool IsSolidLow() const
{ return fPattern == B_SOLID_LOW; }
inline bool IsSolid() const
{ return fPattern == B_SOLID_HIGH || fPattern == B_SOLID_LOW; }
{ return IsSolidHigh() || IsSolidLow(); }
const pattern* GetR5Pattern(void) const
{ return (const pattern*)fPattern.GetInt8(); }