Lines Matching defs:Rect
32 class Rect : public ARect, public LightFlattenablePod<Rect>
37 static const Rect INVALID_RECT;
38 static const Rect EMPTY_RECT;
43 inline Rect() : Rect(INVALID_RECT) {}
46 inline Rect(T w, T h) {
58 inline Rect(int32_t l, int32_t t, int32_t r, int32_t b) {
65 inline Rect(const Point& lt, const Point& rb) {
98 inline Rect getBounds() const {
99 return Rect(right - left, bottom - top);
127 inline bool operator == (const Rect& rhs) const {
132 inline bool operator != (const Rect& rhs) const {
138 bool operator < (const Rect& rhs) const;
140 const Rect operator + (const Point& rhs) const;
141 const Rect operator - (const Point& rhs) const;
143 Rect& operator += (const Point& rhs) {
146 Rect& operator -= (const Point& rhs) {
150 Rect& offsetToOrigin() {
156 Rect& offsetTo(const Point& p) {
159 Rect& offsetBy(const Point& dp) {
163 Rect& offsetTo(int32_t x, int32_t y);
164 Rect& offsetBy(int32_t x, int32_t y);
166 bool intersect(const Rect& with, Rect* result) const;
168 // Create a new Rect by transforming this one using a graphics HAL
174 Rect transform(uint32_t xform, int32_t width, int32_t height) const;
177 Rect reduce(const Rect& exclude) const;
182 inline void set(const Rect& rhs) { operator = (rhs); }
190 ANDROID_BASIC_TYPES_TRAITS(Rect)