Home | History | Annotate | Download | only in effects

Lines Matching refs:shape

83     /** Return the shape at the specified index. Note this does not affect the
84 owner count of the index'd shape. If index is out of range, returns NULL
88 /** Helper function to return the matrixref of the specified shape.
96 /** Ref the specified shape, and insert it into the child list at the
97 specified index. If index == countShapes(), then the shape will be
99 shape is not added. Either way, the shape parameter is returned.
101 Child shapes are drawn in order, after the parent, so the shape at index
102 0 will be drawn first, and the shape at index countShapes() - 1 will be
107 void addShape(int index, SkShape* shape, const SkMatrix& matrix) {
109 this->addShape(index, shape, mr);
113 /** Helper method to append a shape, passing countShapes() for the index
115 SkShape* appendShape(SkShape* shape, SkMatrixRef* mr = NULL) {
116 this->addShape(this->countShapes(), shape, mr);
117 return shape;
120 SkShape* appendShape(SkShape* shape, const SkMatrix& matrix) {
121 this->addShape(this->countShapes(), shape, matrix);
122 return shape;