Lines Matching refs:Rect
36 class Rect : public ARect, public LightFlattenablePod<Rect>
41 static const Rect INVALID_RECT;
42 static const Rect EMPTY_RECT;
47 inline Rect() : Rect(INVALID_RECT) {}
50 inline Rect(T w, T h) {
62 inline Rect(int32_t l, int32_t t, int32_t r, int32_t b) {
69 inline Rect(const Point& lt, const Point& rb) {
76 inline explicit Rect(const FloatRect& floatRect) {
85 inline explicit Rect(const ui::Size& size) {
123 inline Rect getBounds() const {
124 return Rect(right - left, bottom - top);
152 inline bool operator == (const Rect& rhs) const {
157 inline bool operator != (const Rect& rhs) const {
163 bool operator < (const Rect& rhs) const;
165 const Rect operator + (const Point& rhs) const;
166 const Rect operator - (const Point& rhs) const;
168 Rect& operator += (const Point& rhs) {
171 Rect& operator -= (const Point& rhs) {
175 Rect& offsetToOrigin() {
181 Rect& offsetTo(const Point& p) {
184 Rect& offsetBy(const Point& dp) {
188 Rect& offsetTo(int32_t x, int32_t y);
189 Rect& offsetBy(int32_t x, int32_t y);
194 Rect& inset(int32_t _left, int32_t _top, int32_t _right, int32_t _bottom);
196 bool intersect(const Rect& with, Rect* result) const;
198 // Create a new Rect by transforming this one using a graphics HAL
204 Rect transform(uint32_t xform, int32_t width, int32_t height) const;
206 Rect scale(float scaleX, float scaleY) const {
207 return Rect(FloatRect(left * scaleX, top * scaleY, right * scaleX, bottom * scaleY));
210 Rect& scaleSelf(float scaleX, float scaleY) {
216 Rect reduce(const Rect& exclude) const;
221 inline void set(const Rect& rhs) { operator = (rhs); }
229 std::string to_string(const android::Rect& rect);
232 void PrintTo(const Rect& rect, ::std::ostream* os);
234 ANDROID_BASIC_TYPES_TRAITS(Rect)
240 struct hash<android::Rect> {
241 size_t operator()(const android::Rect& rect) const {