Lines Matching full:shape
8 #include "experimental/graphite/src/geom/Shape.h"
16 Shape& Shape::operator=(const Shape& shape) { in operator =() argument
17 switch (shape.type()) { in operator =()
19 case Type::kLine: this->setLine(shape.p0(), shape.p1()); break; in operator =()
20 case Type::kRect: this->setRect(shape.rect()); break; in operator =()
21 case Type::kRRect: this->setRRect(shape.rrect()); break; in operator =()
22 case Type::kPath: this->setPath(shape.path()); break; in operator =()
25 fInverted = shape.fInverted; in operator =()
29 bool Shape::conservativeContains(const Rect& rect) const { in conservativeContains()
40 bool Shape::conservativeContains(float2 point) const { in conservativeContains()
51 bool Shape::closed() const { in closed()
62 bool Shape::convex(bool simpleFill) const { in convex()
67 // Every other shape type is convex by construction. in convex()
72 Rect Shape::bounds() const { in bounds()
83 SkPath Shape::asPath() const { in asPath()