Lines Matching refs:Shape
34 class Shape : public SkRefCnt {
38 Shape(sk_sp<Xform> x = nullptr) : fXform(std::move(x)) {}
48 class GeoShape : public Shape {
52 GeoShape(sk_sp<Xform> x, const SkRect& r, SkColor c) : Shape(std::move(x)), fRect(r) {
57 static sk_sp<Shape> Make(sk_sp<Xform> x, const SkRect& r, SkColor c) {
58 return sk_sp<Shape>(new GeoShape(std::move(x), r, c));
64 class GroupShape : public Shape {
65 SkTDArray<Shape*> fArray;
67 GroupShape(sk_sp<Xform> x) : Shape(std::move(x)) {}
74 static sk_sp<GroupShape> Make(sk_sp<Xform> x, sk_sp<Shape> s) {
85 Shape* get(int index) const { return fArray[index]; }
86 void set(int index, sk_sp<Shape> s) {
90 void append(sk_sp<Shape> s) {
93 void insert(int index, sk_sp<Shape> s) {