Home | History | Annotate | Download | only in ui

Lines Matching full:rect

24 #include <android/rect.h>
28 class Rect : public ARect, public LightFlattenablePod<Rect>
36 inline Rect() {
39 inline Rect(int32_t w, int32_t h) {
45 inline Rect(int32_t l, int32_t t, int32_t r, int32_t b) {
52 inline Rect(const Point& lt, const Point& rb) {
70 // an empty rect has a zero width or height, or is invalid
85 inline Rect getBounds() const {
86 return Rect(right - left, bottom - top);
99 // the following 4 functions return the 4 corners of the rect as Point
114 inline bool operator == (const Rect& rhs) const {
119 inline bool operator != (const Rect& rhs) const {
125 bool operator < (const Rect& rhs) const;
127 const Rect operator + (const Point& rhs) const;
128 const Rect operator - (const Point& rhs) const;
130 Rect& operator += (const Point& rhs) {
133 Rect& operator -= (const Point& rhs) {
137 Rect& offsetToOrigin() {
143 Rect& offsetTo(const Point& p) {
146 Rect& offsetBy(const Point& dp) {
150 Rect& offsetTo(int32_t x, int32_t y);
151 Rect& offsetBy(int32_t x, int32_t y);
153 bool intersect(const Rect& with, Rect* result) const;
155 // Create a new Rect by transforming this one using a graphics HAL
161 Rect transform(uint32_t xform, int32_t width, int32_t height) const;
164 Rect reduce(const Rect& exclude) const;
170 inline void set(const Rect& rhs) { operator = (rhs); }
173 ANDROID_BASIC_TYPES_TRAITS(Rect)