Oodle/src/CBounds.h
raw| 1 | #ifndef _CBOUNDS_ |
| 2 | #define _CBOUNDS_ |
| 3 | |
| 4 | #include "CRect.h" |
| 5 | |
| 6 | class CBounds : public CRect |
| 7 | { |
| 8 | public: |
| 9 | CBounds(double x, double y, double width, double height, CRect::Side flag = CRect::NONE); |
| 10 | bool contains(double x, double y); |
| 11 | bool checkLeft(double x); |
| 12 | bool checkRight(double x); |
| 13 | bool checkTop(double y); |
| 14 | bool checkBottom(double y); |
| 15 | |
| 16 | private: |
| 17 | CRect::Side flag; |
| 18 | }; |
| 19 | |
| 20 | #endif |