Lines Matching refs:Shape
23 * Shape is effectively a std::variant over different geometric shapes, with the most complex
27 class Shape {
34 Shape() {}
35 Shape(const Shape& shape) { *this = shape; }
36 Shape(Shape&&) = delete;
38 Shape(SkPoint p0, SkPoint p1) { this->setLine(p0, p1); }
39 Shape(SkV2 p0, SkV2 p1) { this->setLine(p0, p1); }
40 Shape(float2 p0, float2 p1) { this->setLine(p0, p1); }
41 explicit Shape(const Rect& rect) { this->setRect(rect); }
42 explicit Shape(const SkRect& rect) { this->setRect(rect); }
43 explicit Shape(const SkRRect& rrect) { this->setRRect(rrect); }
44 explicit Shape(const SkPath& path) { this->setPath(path); }
46 ~Shape() { this->reset(); }
49 // defining a move assignment operator for Shape.
50 Shape& operator=(Shape&&) = delete;
51 Shape& operator=(const Shape&);
53 // Return the type of the data last stored in the Shape, which does not incorporate any possible
111 // Update the geometry stored in the Shape and update its associated type to match. This
113 // true will still be considered an rrect by Shape.