Searched refs:shape (Results 1 - 25 of 84) sorted by last modified time

1234

/haiku/src/kits/interface/
H A DHaikuControlLook.cpp1461 BShape shape; local
1463 shape.MoveTo(BPoint(rect.left + 0.5, rect.bottom + 0.5));
1464 shape.LineTo(BPoint(rect.right + 0.5, rect.bottom + 0.5));
1465 shape.LineTo(BPoint(rect.right + 0.5, rect.bottom - 1 + 0.5));
1466 shape.LineTo(BPoint(centerh + 0.5, rect.top + 0.5));
1467 shape.LineTo(BPoint(rect.left + 0.5, rect.bottom - 1 + 0.5));
1469 shape.MoveTo(BPoint(rect.right + 0.5, rect.top + 0.5));
1470 shape.LineTo(BPoint(rect.right + 0.5, rect.bottom + 0.5));
1471 shape.LineTo(BPoint(rect.right - 1 + 0.5, rect.bottom + 0.5));
1472 shape
[all...]
/haiku/src/apps/icon-o-matic/gui/
H A DStyleListView.cpp218 virtual void ItemAdded(Shape* shape, int32 index) argument
222 virtual void ItemRemoved(Shape* shape) argument
228 void SetShape(PathSourceShape* shape) argument
230 if (fShape == shape)
236 fShape = shape;
407 // set the style on the shape
734 StyleListView::SetCurrentShape(Shape* shape) argument
736 PathSourceShape* pathSourceShape = dynamic_cast<PathSourceShape*>(shape);
H A DPathListView.cpp219 virtual void ItemAdded(Shape* shape, int32 index) argument
224 virtual void ItemRemoved(Shape* shape) argument
231 void SetShape(PathSourceShape* shape) argument
233 if (fShape == shape)
239 fShape = shape;
349 // add or remove the path to the shape
830 PathListView::SetCurrentShape(Shape* shape) argument
832 if (fCurrentShape == shape)
835 fCurrentShape = dynamic_cast<PathSourceShape*>(shape);
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 DTransformerListView.cpp142 const char* message1 = B_TRANSLATE_COMMENT("Click on a shape above",
473 TransformerListView::SetShape(Shape* shape) argument
475 if (fShape == shape)
484 fShape = shape;
H A DTransformerListView.h67 void SetShape(Shape* shape);
H A DStyleListView.h74 void SetCurrentShape(Shape* shape);
98 // is referenced by this shape
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;
H A DPathListView.h76 void SetCurrentShape(Shape* shape);
111 // are referenced by this shape
/haiku/src/servers/app/
H A DServerWindow.cpp2212 shape_data shape; local
2213 link.Read<int32>(&shape.opCount);
2214 link.Read<int32>(&shape.ptCount);
2215 shape.opSize = shape.opCount * sizeof(uint32);
2216 shape.ptSize = shape.ptCount * sizeof(BPoint);
2217 shape.opList = new(nothrow) uint32[shape.opCount];
2218 shape
4004 shape_data shape; local
[all...]
/haiku/src/preferences/keymap/
H A DKeyboardLayoutView.cpp740 if (key->shape == kRectangleKeyShape) {
749 } else if (key->shape == kEnterKeyShape) {
/haiku/src/apps/haikudepot/textview/
H A DTextDocumentView.h85 void _GetSelectionShape(BShape& shape,
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/libs/icon/transformer/
H A DPerspectiveTransformer.cpp27 PerspectiveTransformer::PerspectiveTransformer(VertexSource& source, Shape* shape) argument
31 fShape(shape)
47 VertexSource& source, Shape* shape, BMessage* archive)
51 fShape(shape)
46 PerspectiveTransformer( VertexSource& source, Shape* shape, BMessage* archive) argument
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);
H A DPerspectiveTransformer.h54 A valid perspective transformation can be rendered invalid if the shape
55 changes. Listens to \a shape for updates and determines if the
60 Shape* shape);
63 Shape* shape,
/haiku/src/libs/icon/flat_icon/
H A DFlatIconImporter.cpp442 _ReadTransformer(LittleEndianBuffer& buffer, VertexSource& source, Shape* shape) argument
486 = new (nothrow) PerspectiveTransformer(source, shape);
540 // find out which style this shape uses
554 "shape references non-existing style %d\n", styleIndex);
558 // create the shape
559 PathSourceShape* shape = new (nothrow) PathSourceShape(style); local
560 ObjectDeleter<Shape> shapeDeleter(shape);
562 if (!shape || shape->InitCheck() < B_OK)
565 // find out which paths this shape use
[all...]
/haiku/src/apps/icon-o-matic/
H A DMainWindow.cpp457 PathSourceShape* shape = new (nothrow) PathSourceShape(style); local
459 fDocument->Icon()->Shapes(), (Shape**) &shape, 1,
462 if (path && shape)
463 shape->Paths()->AddItem(path);
473 B_TRANSLATE_CONTEXT("Add shape with path & style",
481 B_TRANSLATE_CONTEXT("Add shape with style",
489 B_TRANSLATE_CONTEXT("Add shape with path",
540 Shape* shape; local
541 if (message->FindPointer("shape", (void**)&shape) < B_O
[all...]
/haiku/src/libs/icon/
H A DIconRenderer.cpp563 Shape* shape = fIcon->Shapes()->ItemAtFast(i); local
565 if (!shape->Visible(fGlobalTransform.scale())) {
569 Transformable transform(*shape);
572 Style* style = shape->Style();
586 style, transform, shape->Transformers());
594 // if this is not the first shape, and the style contains
608 shape->SetGlobalScale(max_c(1.0, transform.scale()));
609 ScaledPath scaledPath(shape->VertexSource(), transform);
610 if (shape->Hinting()) {
/haiku/src/apps/icon-o-matic/import_export/flat_icon/
H A DFlatIconExporter.cpp65 "--shape section size: %" B_PRId32 "\n"
115 "The HVIF format supports a maximum of 255 paths per shape.");
118 "The HVIF format supports a maximum of 255 transformers per shape.");
519 _WritePathSourceShape(LittleEndianBuffer& buffer, PathSourceShape* shape, argument
522 // find out which style this shape uses
523 Style* style = shape->Style();
531 if (shape->Paths()->CountItems() > 255)
533 uint8 pathCount = min_c(255, shape->Paths()->CountItems());
535 // write shape type and style index
541 // find out which paths this shape use
620 Shape* shape = shapes->ItemAtFast(i); local
633 Shape* shape = shapes->ItemAtFast(i); local
[all...]
/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);
H A DStyledTextImporter.cpp348 PathSourceShape* shape = new (nothrow) PathSourceShape(NULL); local
349 if (shape == NULL)
351 shape->SetName(glyphName.String());
352 if (!icon->Shapes()->AddItem(shape)) {
353 delete shape;
358 shape->SetStyle(fStyleMap[j].style);
362 ShapeIterator iterator(icon, shape, offset, glyphName.String());
421 StyledTextImporter::_AddPaths(Icon *icon, BShape *shape) argument
429 StyledTextImporter::_AddShape(Icon *icon, BShape *shape, text_run *run) argument
/haiku/src/apps/icon-o-matic/style/
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]);
H A DAssignStyleCommand.cpp24 AssignStyleCommand::AssignStyleCommand(PathSourceShape* shape, argument
27 fShape(shape),
28 fOldStyle(shape ? shape->Style() : NULL),

Completed in 94 milliseconds

1234