Flags should not be overlapping
This commit is contained in:
parent
74eaeba2eb
commit
0190d52d8e
1 changed files with 3 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ public:
|
|||
enum Flag {
|
||||
FLAG_NONE = 0x00,
|
||||
FLAG_BACKGROUND = 0x01,
|
||||
FLAG_HIGHLIGHT = 0x03
|
||||
FLAG_HIGHLIGHT = 0x02
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -23,6 +23,8 @@ public:
|
|||
Flag flag;
|
||||
|
||||
const BoundingBox &getBoundingBox() const { return this->bbox; }
|
||||
bool isHighlight() const { return this->flag & FLAG_HIGHLIGHT; }
|
||||
bool isBackground() const { return this->flag & FLAG_BACKGROUND; }
|
||||
|
||||
virtual std::string dump() = 0;
|
||||
protected:
|
||||
|
|
|
|||
Loading…
Reference in a new issue