Home | History | Annotate | Download | only in geometry

Lines Matching defs:RectF

26 class GFX_EXPORT RectF {
28 constexpr RectF() = default;
29 constexpr RectF(float width, float height) : size_(width, height) {}
30 constexpr RectF(float x, float y, float width, float height)
32 constexpr explicit RectF(const SizeF& size) : size_(size) {}
33 constexpr RectF(const PointF& origin, const SizeF& size)
36 constexpr explicit RectF(const Rect& r)
37 : RectF(static_cast<float>(r.x()),
43 explicit RectF(const CGRect& r);
97 InsetsF InsetsFrom(const RectF& inner) const;
108 bool operator<(const RectF& other) const;
121 bool Contains(const RectF& rect) const;
125 bool Intersects(const RectF& rect) const;
128 void Intersect(const RectF& rect);
132 void Union(const RectF& rect);
136 void Subtract(const RectF& rect);
143 void AdjustToFit(const RectF& rect);
153 void SplitVertically(RectF* left_half, RectF* right_half) const;
157 bool SharesEdgeWith(const RectF& rect) const;
167 float ManhattanInternalDistance(const RectF& rect) const;
179 // This method reports if the RectF can be safely converted to an integer
180 // Rect. When it is false, some dimension of the RectF is outside the bounds
192 inline bool operator==(const RectF& lhs, const RectF& rhs) {
196 inline bool operator!=(const RectF& lhs, const RectF& rhs) {
200 inline RectF operator+(const RectF& lhs, const Vector2dF& rhs) {
201 return RectF(lhs.x() + rhs.x(), lhs.y() + rhs.y(),
205 inline RectF operator-(const RectF& lhs, const Vector2dF& rhs) {
206 return RectF(lhs.x() - rhs.x(), lhs.y() - rhs.y(),
210 inline RectF operator+(const Vector2dF& lhs, const RectF& rhs) {
214 GFX_EXPORT RectF IntersectRects(const RectF& a, const RectF& b);
215 GFX_EXPORT RectF UnionRects(const RectF& a, const RectF& b);
216 GFX_EXPORT RectF SubtractRects(const RectF& a, const RectF& b);
218 inline RectF ScaleRect(const RectF& r, float x_scale, float y_scale) {
219 return RectF(r.x() * x_scale, r.y() * y_scale,
223 inline RectF ScaleRect(const RectF& r, float scale) {
233 GFX_EXPORT RectF BoundingRect(const PointF& p1, const PointF& p2);
238 void PrintTo(const RectF& rect, ::std::ostream* os);