Home | History | Annotate | Download | only in ui

Lines Matching defs:Rect

23 #include <android/rect.h>
27 class Rect : public ARect
35 inline Rect() {
37 inline Rect(int32_t w, int32_t h) {
40 inline Rect(int32_t l, int32_t t, int32_t r, int32_t b) {
43 inline Rect(const Point& lt, const Point& rb) {
58 // an empty rect has a zero width or height, or is invalid
63 inline void set(const Rect& rhs) {
87 // the following 4 functions return the 4 corners of the rect as Point
102 inline bool operator == (const Rect& rhs) const {
107 inline bool operator != (const Rect& rhs) const {
113 bool operator < (const Rect& rhs) const;
115 Rect& offsetToOrigin() {
121 Rect& offsetTo(const Point& p) {
124 Rect& offsetBy(const Point& dp) {
127 Rect& operator += (const Point& rhs) {
130 Rect& operator -= (const Point& rhs) {
133 const Rect operator + (const Point& rhs) const;
134 const Rect operator - (const Point& rhs) const;
140 Rect& offsetTo(int32_t x, int32_t y);
141 Rect& offsetBy(int32_t x, int32_t y);
142 bool intersect(const Rect& with, Rect* result) const;
145 ANDROID_BASIC_TYPES_TRAITS(Rect)