Lines Matching refs:Rect

35 class Rect : public ARect, public LightFlattenablePod<Rect>
40 static const Rect INVALID_RECT;
41 static const Rect EMPTY_RECT;
46 inline Rect() : Rect(INVALID_RECT) {}
49 inline Rect(T w, T h) {
61 inline Rect(int32_t l, int32_t t, int32_t r, int32_t b) {
68 inline Rect(const Point& lt, const Point& rb) {
75 inline explicit Rect(const FloatRect& floatRect) {
84 inline explicit Rect(const ui::Size& size) {
122 inline Rect getBounds() const {
123 return Rect(right - left, bottom - top);
151 inline bool operator == (const Rect& rhs) const {
156 inline bool operator != (const Rect& rhs) const {
162 bool operator < (const Rect& rhs) const;
164 const Rect operator + (const Point& rhs) const;
165 const Rect operator - (const Point& rhs) const;
167 Rect& operator += (const Point& rhs) {
170 Rect& operator -= (const Point& rhs) {
174 Rect& offsetToOrigin() {
180 Rect& offsetTo(const Point& p) {
183 Rect& offsetBy(const Point& dp) {
187 Rect& offsetTo(int32_t x, int32_t y);
188 Rect& offsetBy(int32_t x, int32_t y);
193 Rect& inset(int32_t _left, int32_t _top, int32_t _right, int32_t _bottom);
195 bool intersect(const Rect& with, Rect* result) const;
197 // Create a new Rect by transforming this one using a graphics HAL
203 Rect transform(uint32_t xform, int32_t width, int32_t height) const;
206 Rect reduce(const Rect& exclude) const;
211 inline void set(const Rect& rhs) { operator = (rhs); }
220 static inline void PrintTo(const Rect& rect, ::std::ostream* os) {
221 *os << "Rect(" << rect.left << ", " << rect.top << ", " << rect.right << ", " << rect.bottom
225 ANDROID_BASIC_TYPES_TRAITS(Rect)