Searched refs:shape (Results 1 - 25 of 84) sorted by relevance

1234

/haiku/src/tests/servers/app/shape_test/
H A Dmain.cpp111 BShape shape; local
112 shape.MoveTo(BPoint(20, 10));
113 shape.LineTo(BPoint(10, 90));
114 shape.LineTo(BPoint(90, 100));
115 shape.ArcTo(arcRX, arcRY, 45, true, true, BPoint(100, 20));
116 shape.Close();
118 StrokeShape(&shape);
120 shape.Clear();
121 shape.MoveTo(BPoint(20, 10));
122 shape
[all...]
/haiku/src/apps/icon-o-matic/style/
H A DAssignStyleCommand.cpp24 AssignStyleCommand::AssignStyleCommand(PathSourceShape* shape, argument
27 fShape(shape),
28 fOldStyle(shape ? shape->Style() : NULL),
H A DRemoveStylesCommand.cpp42 PathSourceShape* shape local
44 if (shape != NULL)
45 fShapes[i].AddItem((void*)shape);
80 PathSourceShape* shape = (PathSourceShape*)fShapes[i].ItemAtFast(j); local
81 shape->SetStyle(fContainer->ItemAt(0));
106 PathSourceShape* shape = (PathSourceShape*)fShapes[i].ItemAtFast(j); local
107 shape->SetStyle(fItems[i]);
/haiku/src/libs/icon/transformer/
H A DTransformerFactory.cpp28 TransformerFactory::TransformerFor(uint32 type, VertexSource& source, Shape* shape) argument
34 return new PerspectiveTransformer(source, shape);
46 TransformerFactory::TransformerFor(BMessage* message, VertexSource& source, Shape* shape) argument
52 return new PerspectiveTransformer(source, shape, message);
H A DTransformerFactory.h40 Shape* shape);
44 Shape* shape);
/haiku/src/apps/mediaplayer/interface/
H A DTransportControlGroup.cpp651 BShape* shape = new BShape(); local
655 shape->MoveTo(BPoint(-stopWidth, height));
656 shape->LineTo(BPoint(0, height));
657 shape->LineTo(BPoint(0, 0));
658 shape->LineTo(BPoint(-stopWidth, 0));
659 shape->Close();
661 shape->MoveTo(BPoint(0, height / 2));
662 shape->LineTo(BPoint(height, height));
663 shape->LineTo(BPoint(height, 0));
664 shape
678 BShape* shape = new BShape(); local
705 BShape* shape = new BShape(); local
724 BShape* shape = new BShape(); local
743 BShape* shape = new BShape(); local
759 BShape* shape = new BShape(); local
782 BShape* shape = new BShape(); local
795 add_bow(BShape* shape, float offset, float size, float height, float step) argument
835 BShape* shape = new BShape(); local
[all...]
/haiku/src/apps/icon-o-matic/import_export/svg/
H A DDocumentBuilder.cpp102 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)); local
113 if (shape
137 AddPathsFromVertexSource(Icon* icon, PathSourceShape* shape, NSVGshape* svgShape) argument
197 PathSourceShape* shape = new (nothrow) PathSourceShape(NULL); local
[all...]
/haiku/src/apps/icon-o-matic/gui/
H A DShapeListView.cpp56 shape(NULL),
76 if (s == shape)
79 if (shape) {
80 shape->RemoveObserver(this);
81 shape->ReleaseReference();
84 shape = s;
86 if (shape) {
87 shape->AcquireReference();
88 shape->AddObserver(this);
95 SetText(shape
103 Shape* shape; member in class:ShapeListItem
200 Shape* shape = (Shape*)shapes.ItemAtFast(i); local
222 Shape* shape = (Shape*) shapes.ItemAtFast(i); local
355 PathSourceShape* shape = new(std::nothrow) PathSourceShape(styleToAssign); local
409 ReferenceImage* shape = new (std::nothrow) ReferenceImage(&shapeMessage); local
543 Shape* shape = dynamic_cast<Shape*>(selectable); local
581 ItemAdded(Shape* shape, int32 index) argument
598 ItemRemoved(Shape* shape) argument
738 _AddShape(Shape* shape, int32 index) argument
757 _RemoveShape(Shape* shape) argument
[all...]
H A DShapeListView.h68 virtual void ItemAdded(Shape* shape, int32 index);
69 virtual void ItemRemoved(Shape* shape);
79 bool _AddShape(Shape* shape, int32 index);
80 bool _RemoveShape(Shape* shape);
82 ShapeListItem* _ItemForShape(Shape* shape) const;
/haiku/src/libs/icon/
H A DIcon.cpp79 Shape* shape = other.fShapes.ItemAtFast(i); local
80 Shape* clone = shape->Clone();
87 PathSourceShape* pathSourceShape = dynamic_cast<PathSourceShape*>(shape);
90 // the cloned shape references styles and paths in
135 Icon::ItemAdded(Shape* shape, int32 index) argument
137 shape->AddObserver(this);
138 _NotifyAreaInvalidated(shape->Bounds(true));
143 Icon::ItemRemoved(Shape* shape) argument
145 shape->RemoveObserver(this);
146 _NotifyAreaInvalidated(shape
153 const Shape* shape = dynamic_cast<const Shape*>(object); local
[all...]
/haiku/src/tests/kits/interface/
H A DSetDiskModeTest.cpp28 BShape shape; local
30 shape.MoveTo(BPoint(150,0));
31 shape.LineTo(BPoint(200,100));
32 shape.BezierTo(bezier);
33 shape.Close();
34 view->StrokeShape(&shape);
/haiku/src/apps/icon-o-matic/shape/commands/
H A DUnassignPathCommand.cpp23 UnassignPathCommand::UnassignPathCommand(PathSourceShape* shape, argument
26 fShape(shape),
50 // remove path from shape
61 // add path to shape
H A DMoveTransformersCommand.h27 Container<Transformer>* shape,
H A DFreezeTransformationCommand.cpp123 "one{shape} other{shapes}}"));
131 FreezeTransformationCommand::_ApplyTransformation(PathSourceShape* shape, argument
134 // apply inverse of old shape transformation to every assigned path
135 int32 pathCount = shape->Paths()->CountItems();
137 VectorPath* path = shape->Paths()->ItemAtFast(i);
145 // shape has it assigned
151 "have it assigned.\n", shape->Name(), path->Name(),
156 if (shape->Style() && shape->Style()->Gradient()) {
157 // TODO: not if more than one shape hav
[all...]
H A DRemovePathsCommand.cpp45 PathSourceShape* shape local
47 if (shape)
48 fShapes[i].AddItem((void*)shape);
83 PathSourceShape* shape = (PathSourceShape*)fShapes[i].ItemAtFast(j); local
84 shape->Paths()->RemoveItem(fItems[i]);
108 PathSourceShape* shape = (PathSourceShape*)fShapes[i].ItemAtFast(j); local
109 shape->Paths()->AddItem(fItems[i]);
H A DUnassignPathCommand.h26 UnassignPathCommand(PathSourceShape* shape,
H A DFreezeTransformationCommand.h39 void _ApplyTransformation(PathSourceShape* shape,
/haiku/src/apps/icon-o-matic/import_export/styled_text/
H A DStyledTextImporter.h49 status_t _AddPaths(Icon *icon, BShape *shape);
50 status_t _AddShape(Icon *icon, BShape *shape, text_run *run);
/haiku/src/libs/icon/message/
H A DMessageImporter.cpp187 allShapes.FindMessage("shape", i, &shapeArchive) == B_OK; i++) {
213 // create shape
214 PathSourceShape* shape = new (nothrow) PathSourceShape(style); local
215 if (shape == NULL || shape->InitCheck() < B_OK || !shapes->AddItem(shape)) {
216 delete shape;
238 shape->Paths()->AddItem(path);
243 shape->Unarchive(&shapeArchive);
247 ReferenceImage* shape local
[all...]
/haiku/src/apps/haikudepot/textview/
H A DTextDocumentView.cpp565 BShape shape; local
566 _GetSelectionShape(shape, start, end);
575 FillShape(&shape);
579 StrokeShape(&shape);
584 TextDocumentView::_GetSelectionShape(BShape& shape, int32 start, int32 end) argument
619 shape.MoveTo(lt);
620 shape.LineTo(rt);
621 shape.LineTo(rb);
622 shape.LineTo(lb);
623 shape
[all...]
/haiku/src/tests/add-ons/print/pdf/linepathbuilder/
H A DPathView.cpp58 BShape shape; local
61 shape.MoveTo(fPath.PointAt(i));
63 shape.LineTo(fPath.PointAt(i));
65 if (fPath.IsClosed()) shape.Close();
67 StrokeShape(&shape);
/haiku/src/tests/kits/interface/picture/
H A DSVGViewView.cpp328 void Svg2PictureView::GetPolygonAttribute(const XML_Char **attributes, const char *name, BShape &shape) {
362 shape.MoveTo(point);
366 shape.LineTo(point);
475 void Svg2PictureView::GetShapeAttribute(const XML_Char **attributes, const char *name, BShape &shape) { argument
503 shape.Close();
515 shape.MoveTo(pos);
527 shape.MoveTo(pos);
537 shape.LineTo(pos);
548 shape.LineTo(pos);
587 shape
1052 BShape shape; local
1065 BShape shape; local
1079 BShape shape; local
1164 BShape shape; local
[all...]
H A DPictureTest.cpp50 BShape shape; local
52 shape.MoveTo(BPoint(150,0));
53 shape.LineTo(BPoint(200,100));
54 shape.BezierTo(bezier);
55 shape.Close();
56 view->StrokeShape(&shape);
/haiku/src/apps/icon-o-matic/import_export/message/
H A DMessageExporter.cpp91 Shape* shape = shapes->ItemAtFast(i); local
93 ret = _Export(shape, paths, styles, &shapeArchive);
96 ret = allShapes.AddMessage("shape", &shapeArchive);
150 MessageExporter::_Export(const Shape* shape, argument
157 const PathSourceShape* pathSourceShape = dynamic_cast<const PathSourceShape*>(shape);
186 const ReferenceImage* referenceImage = dynamic_cast<const ReferenceImage*>(shape);
193 ret = shape->Archive(into);
/haiku/src/servers/app/drawing/
H A DAlphaMaskCache.h32 ShapeAlphaMask* Get(const shape_data& shape,
45 ShapeMaskElement(const shape_data* shape, argument
49 fShape(shape),

Completed in 204 milliseconds

1234