Home | History | Annotate | Download | only in gfx

Lines Matching full:rectf

20 class GFX_EXPORT RectF
21 : public RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float> {
23 RectF()
24 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float>
27 RectF(float width, float height)
28 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float>
31 RectF(float x, float y, float width, float height)
32 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float>
35 explicit RectF(const SizeF& size)
36 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float>
39 RectF(const PointF& origin, const SizeF& size)
40 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float>
43 ~RectF() {}
55 // This method reports if the RectF can be safely converted to an integer
56 // Rect. When it is false, some dimension of the RectF is outside the bounds
64 inline bool operator==(const RectF& lhs, const RectF& rhs) {
68 inline bool operator!=(const RectF& lhs, const RectF& rhs) {
72 inline RectF operator+(const RectF& lhs, const Vector2dF& rhs) {
73 return RectF(lhs.x() + rhs.x(), lhs.y() + rhs.y(),
77 inline RectF operator-(const RectF& lhs, const Vector2dF& rhs) {
78 return RectF(lhs.x() - rhs.x(), lhs.y() - rhs.y(),
82 inline RectF operator+(const Vector2dF& lhs, const RectF& rhs) {
86 GFX_EXPORT RectF IntersectRects(const RectF& a, const RectF& b);
87 GFX_EXPORT RectF UnionRects(const RectF& a, const RectF& b);
88 GFX_EXPORT RectF SubtractRects(const RectF& a, const RectF& b);
90 inline RectF ScaleRect(const RectF& r, float x_scale, float y_scale) {
91 return RectF(r.x() * x_scale, r.y() * y_scale,
95 inline RectF ScaleRect(const RectF& r, float scale) {
105 GFX_EXPORT RectF BoundingRect(const PointF& p1, const PointF& p2);
108 extern template class RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float>;