Lines Matching defs:Rect
29 class Rect : public ARect, public LightFlattenablePod<Rect>
34 static const Rect INVALID_RECT;
35 static const Rect EMPTY_RECT;
40 inline Rect() : Rect(INVALID_RECT) {}
43 inline Rect(T w, T h) {
45 ALOG(LOG_WARN, "Rect",
46 "Width %u too large for Rect class, clamping", w);
50 ALOG(LOG_WARN, "Rect",
51 "Height %u too large for Rect class, clamping", h);
59 inline Rect(int32_t l, int32_t t, int32_t r, int32_t b) {
66 inline Rect(const Point& lt, const Point& rb) {
99 inline Rect getBounds() const {
100 return Rect(right - left, bottom - top);
128 inline bool operator == (const Rect& rhs) const {
133 inline bool operator != (const Rect& rhs) const {
139 bool operator < (const Rect& rhs) const;
141 const Rect operator + (const Point& rhs) const;
142 const Rect operator - (const Point& rhs) const;
144 Rect& operator += (const Point& rhs) {
147 Rect& operator -= (const Point& rhs) {
151 Rect& offsetToOrigin() {
157 Rect& offsetTo(const Point& p) {
160 Rect& offsetBy(const Point& dp) {
164 Rect& offsetTo(int32_t x, int32_t y);
165 Rect& offsetBy(int32_t x, int32_t y);
167 bool intersect(const Rect& with, Rect* result) const;
169 // Create a new Rect by transforming this one using a graphics HAL
175 Rect transform(uint32_t xform, int32_t width, int32_t height) const;
178 Rect reduce(const Rect& exclude) const;
184 inline void set(const Rect& rhs) { operator = (rhs); }
187 ANDROID_BASIC_TYPES_TRAITS(Rect)