even more convenience functions
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12413 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -70,6 +70,9 @@ class Pattern {
|
|||||||
bool operator==(const Pattern& other) const
|
bool operator==(const Pattern& other) const
|
||||||
{ return fPattern.type64 == other.fPattern.type64; }
|
{ return fPattern.type64 == other.fPattern.type64; }
|
||||||
|
|
||||||
|
bool operator==(const pattern& other) const
|
||||||
|
{ return fPattern.type64 == *(uint64*)other.data; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
typedef union
|
typedef union
|
||||||
@@ -129,6 +132,8 @@ class PatternHandler {
|
|||||||
|
|
||||||
bool IsHighColor(const BPoint& pt) const;
|
bool IsHighColor(const BPoint& pt) const;
|
||||||
inline bool IsHighColor(int x, int y) const;
|
inline bool IsHighColor(int x, int y) const;
|
||||||
|
inline bool IsSolid() const
|
||||||
|
{ return fPattern == B_SOLID_HIGH || fPattern == B_SOLID_LOW; }
|
||||||
|
|
||||||
const pattern* GetR5Pattern(void) const
|
const pattern* GetR5Pattern(void) const
|
||||||
{ return (const pattern*)fPattern.GetInt8(); }
|
{ return (const pattern*)fPattern.GetInt8(); }
|
||||||
|
|||||||
Reference in New Issue
Block a user