Lines Matching defs:shape
102 for (NSVGshape* shape = fSource->shapes; shape != NULL; shape = shape->next) {
103 if (shape->fill.type != NSVG_PAINT_NONE)
104 _AddShape(shape, false, transform, icon);
105 if (shape->stroke.type != NSVG_PAINT_NONE)
106 _AddShape(shape, true, transform, icon);
112 PathSourceShape* shape = dynamic_cast<PathSourceShape*>(icon->Shapes()->ItemAtFast(i));
113 if (shape == NULL)
116 Style* style = shape->Style();
123 shape->SetStyle(earlierStyle);
137 AddPathsFromVertexSource(Icon* icon, PathSourceShape* shape, NSVGshape* svgShape)
149 if (!shape->Paths()->AddItem(path))
197 PathSourceShape* shape = new (nothrow) PathSourceShape(NULL);
198 if (!shape || !icon->Shapes()->AddItem(shape)) {
199 delete shape;
203 if (AddPathsFromVertexSource(icon, shape, svgShape) < B_OK)
206 shape->SetName(svgShape->id);
207 shape->Multiply(transform);
212 stroke = new (nothrow) StrokeTransformer(shape->VertexSource());
242 if (!shape->Transformers()->AddItem(stroke)) {
250 shape->SetFillingRule(FILL_MODE_EVEN_ODD);
252 shape->SetFillingRule(FILL_MODE_NON_ZERO);
302 gradient.Multiply(*shape);
332 int32 pathCount = shape->Paths()->CountItems();
334 VectorPath* path = shape->Paths()->ItemAtFast(i);
335 path->ApplyTransform(*shape);
339 stroke->width(stroke->width() * shape->scale());
344 shape->Reset();
346 shape->SetStyle(style);