Home | History | Annotate | Download | only in geometry

Lines Matching refs:FloatRect

47 class PLATFORM_EXPORT FloatRect {
54 FloatRect() { }
55 FloatRect(const FloatPoint& location, const FloatSize& size)
57 FloatRect(float x, float y, float width, float height)
59 FloatRect(const IntRect&);
60 FloatRect(const LayoutRect&);
61 FloatRect(const SkRect&);
63 static FloatRect narrowPrecision(double x, double y, double width, double height);
126 bool intersects(const FloatRect&) const;
127 bool contains(const FloatRect&) const;
130 void intersect(const FloatRect&);
131 void unite(const FloatRect&);
132 void uniteEvenIfEmpty(const FloatRect&);
133 void uniteIfNonZero(const FloatRect&);
157 FloatRect transposedRect() const { return FloatRect(m_location.transposedPoint(), m_size.transposedSize()); }
165 FloatRect(const CGRect&);
168 FloatRect(const NSRect&);
187 inline FloatRect intersection(const FloatRect& a, const FloatRect& b)
189 FloatRect c = a;
194 inline FloatRect unionRect(const FloatRect& a, const FloatRect& b)
196 FloatRect c = a;
201 FloatRect unionRect(const Vector<FloatRect>&);
203 inline FloatRect& operator+=(FloatRect& a, const FloatRect& b)
211 inline FloatRect operator+(const FloatRect& a, const FloatRect& b)
213 FloatRect c = a;
218 inline bool operator==(const FloatRect& a, const FloatRect& b)
223 inline bool operator!=(const FloatRect& a, const FloatRect& b)
228 PLATFORM_EXPORT IntRect enclosingIntRect(const FloatRect&);
230 // Returns a valid IntRect contained within the given FloatRect.
231 PLATFORM_EXPORT IntRect enclosedIntRect(const FloatRect&);
233 PLATFORM_EXPORT IntRect roundedIntRect(const FloatRect&);
236 PLATFORM_EXPORT FloatRect mapRect(const FloatRect&, const FloatRect& srcRect, const FloatRect& destRect);