/haiku/src/libs/icon/shape/ |
H A D | VectorPath.cpp | 102 fPath(NULL), in VectorPath() 118 fPath(NULL), in VectorPath() 135 fPath(NULL), in VectorPath() 149 memset((void*)fPath, 0, fAllocCount * sizeof(control_point)); in VectorPath() 160 fPath[i].point = point; in VectorPath() 161 fPath[i].point_in = pointIn; in VectorPath() 162 fPath[i].point_out = pointOut; in VectorPath() 163 fPath[i].connected = connected; in VectorPath() 174 if (fPath) in ~VectorPath() 175 obj_free(fPath); in ~VectorPath() [all …]
|
H A D | ReferenceImage.cpp | 29 fPath(NULL) in ReferenceImage() 54 fPath(NULL) in ReferenceImage() 74 fPath(NULL) in ReferenceImage() 197 if (fPath != NULL) { in SetImage() 199 delete fPath; in SetImage() 200 fPath = NULL; in SetImage() 208 fPath = new (nothrow) VectorPath(); in SetImage() 209 if (fPath == NULL) in SetImage() 214 fPath->AddPoint(BPoint(0, 0)); in SetImage() 215 fPath->AddPoint(BPoint(0, height)); in SetImage() [all …]
|
/haiku/src/apps/icon-o-matic/shape/commands/ |
H A D | InsertPointCommand.cpp | 36 if (fPath && (!fPath->GetPointsAt(fIndex, fPoint, fPointIn, fPointOut) in InsertPointCommand() 37 || !fPath->GetPointOutAt(fIndex - 1, fPreviousOut) in InsertPointCommand() 38 || !fPath->GetPointInAt(fIndex + 1, fNextIn))) { in InsertPointCommand() 39 fPath = NULL; in InsertPointCommand() 63 fPath->GetPointInAt(fIndex, fPointIn); in Perform() 64 fPath->GetPointOutAt(fIndex, fPointOut); in Perform() 77 AutoNotificationSuspender _(fPath); in Undo() 80 if (fPath->RemovePoint(fIndex)) { in Undo() 83 fPath->GetPointOutAt(fIndex - 1, fPreviousOut); in Undo() 84 fPath->SetPointOut(fIndex - 1, previousOut); in Undo() [all …]
|
H A D | UnassignPathCommand.cpp | 27 fPath(path), in UnassignPathCommand() 35 if (fPathRemoved && fPath) in ~UnassignPathCommand() 36 fPath->ReleaseReference(); in ~UnassignPathCommand() 43 return fShape && fPath ? B_OK : B_NO_INIT; in InitCheck() 51 fShape->Paths()->RemoveItem(fPath); in Perform() 62 fShape->Paths()->AddItem(fPath); in Undo()
|
H A D | RotatePathIndicesCommand.cpp | 38 if (ret == B_OK && fPath->CountPoints() < 2) in InitCheck() 76 removeIndex = fPath->CountPoints() - 1; in _Rotate() 80 addIndex = fPath->CountPoints() - 1; in _Rotate() 83 if (!fPath->GetPointsAt(removeIndex, point, pointIn, pointOut, &connected)) in _Rotate() 86 fPath->RemovePoint(removeIndex); in _Rotate() 87 fPath->AddPoint(point, addIndex); in _Rotate() 88 fPath->SetPoint(addIndex, point, pointIn, pointOut, connected); in _Rotate()
|
H A D | RemovePointsCommand.cpp | 104 AutoNotificationSuspender _(fPath); in Undo() 108 if (fPath->AddPoint(fPoint[i], fIndex[i])) { in Undo() 109 fPath->SetPoint(fIndex[i], in Undo() 120 fPath->SetClosed(fWasClosed); in Undo() 138 AutoNotificationSuspender _(fPath); in Redo() 145 if (!fPath->RemovePoint(fIndex[i] - i)) { in Redo() 151 fPath->SetClosed(fWasClosed && fPath->CountPoints() > 1); in Redo() 189 if (!fPath->GetPointsAt(fIndex[i], in _Init() 194 fPath = NULL; in _Init() 199 if (fPath) in _Init() [all …]
|
H A D | SplitPointsCommand.cpp | 55 if (!fPath->GetPointsAt(fIndex[i], in SplitPointsCommand() 60 fPath = NULL; in SplitPointsCommand() 94 AutoNotificationSuspender _(fPath); in Perform() 102 if (fPath->AddPoint(fPoint[i], index)) { in Perform() 103 fPath->SetPoint(index - 1, in Perform() 108 fPath->SetPoint(index, in Perform() 128 AutoNotificationSuspender _(fPath); in Undo() 134 if (fPath->RemovePoint(index)) { in Undo() 135 fPath->SetPoint(index - 1, in Undo()
|
H A D | CleanUpPathCommand.cpp | 28 if (fPath) in CleanUpPathCommand() 29 fOriginalPath = *fPath; in CleanUpPathCommand() 41 fPath->CleanUp(); in Perform() 50 *fPath = fOriginalPath; in Undo()
|
/haiku/src/tests/add-ons/print/pdf/bezierbounds/ |
H A D | BBView.cpp | 18 if (fPath.CountPoints() > 3) { in Draw() 19 const int n = 3 * ((fPath.CountPoints()-1) / 3); in Draw() 21 shape.MoveTo(fPath.PointAt(0)); in Draw() 23 BPoint bezier[3] = { fPath.PointAt(i), fPath.PointAt(i+1), fPath.PointAt(i+2) }; in Draw() 26 if (fPath.IsClosed()) shape.Close(); in Draw() 35 …BPoint bezier[4] = { fPath.PointAt(i), fPath.PointAt(i+1), fPath.PointAt(i+2), fPath.PointAt(i+3) … in Draw() 43 if (fPath.IsClosed()) { in Draw() 50 for (i = 0; i < fPath.CountPoints(); i++) { in Draw() 51 BPoint p = fPath.PointAt(i); in Draw() 63 fCurPoint = fPath.CountPoints(); in MouseDown() [all …]
|
/haiku/src/servers/package/ |
H A D | FSUtils.h | 107 fPath(path) in Path() 109 if (fPath.IsEmpty()) { in Path() 114 char* buffer = fPath.LockBuffer(fPath.Length()); in Path() 126 fPath.LockBuffer(k); in Path() 132 if (fPath.IsEmpty()) { in AppendComponent() 133 fPath = component; in AppendComponent() 134 if (fPath.IsEmpty() && component[0] != '\0') in AppendComponent() 137 int32 length = fPath.Length(); in AppendComponent() 138 if (fPath[length - 1] != '/') { in AppendComponent() 139 fPath += '/'; in AppendComponent() [all …]
|
/haiku/src/kits/storage/ |
H A D | EntryOperationEngineBase.cpp | 20 fPath(path), in Entry() 32 fPath(path), in Entry() 43 fPath(NULL), in Entry() 54 fPath(NULL), in Entry() 66 fPath(path), in Entry() 88 error = buffer.SetTo(fDirectory, fPath); in GetPath() 95 error = buffer.SetTo(&directory, fPath); in GetPath() 96 } else if (fPath != NULL) { in GetPath() 97 _path = fPath; in GetPath() 137 if (fPath != NULL && fPath[0] == '/') { in GetPathOrName() [all …]
|
/haiku/src/system/boot/loader/ |
H A D | PathBlocklist.cpp | 19 fPath(NULL), in BlockedPath() 28 free(fPath); in ~BlockedPath() 43 memcpy(fPath, path, length); in SetTo() 44 fPath[length] = '\0'; in SetTo() 66 fPath[oldLength++] = '/'; in Append() 67 memcpy(fPath + oldLength, component, componentLength); in Append() 76 free(fPath); in _Resize() 77 fPath = NULL; in _Resize() 84 fPath[length] = '\0'; in _Resize() 94 path = (char*)realloc(fPath, capacity); in _Resize() [all …]
|
/haiku/src/kits/package/ |
H A D | UserSettingsFileInfo.cpp | 17 fPath(), in BUserSettingsFileInfo() 26 fPath(infoData.path), in BUserSettingsFileInfo() 36 fPath(path), in BUserSettingsFileInfo() 46 fPath(path), in BUserSettingsFileInfo() 61 return fPath.IsEmpty() ? B_NO_INIT : B_OK; in InitCheck() 68 return fPath; in Path() 89 fPath = path; in SetTo() 98 fPath = path; in SetTo()
|
H A D | GlobalWritableFileInfo.cpp | 17 fPath(), in BGlobalWritableFileInfo() 26 fPath(infoData.path), in BGlobalWritableFileInfo() 36 fPath(path), in BGlobalWritableFileInfo() 51 if (fPath.IsEmpty()) in InitCheck() 60 return fPath; in Path() 89 fPath = path; in SetTo()
|
/haiku/src/tests/kits/translation/multitest/ |
H A D | WorkView.cpp | 18 fPath = kPath1; in WorkView() 29 pBitmap = BTranslationUtils::GetBitmap(fPath, pRoster); in AttachedToWindow() 42 if (fPath == kPath1) in Pulse() 43 fPath = kPath2; in Pulse() 45 fPath = kPath1; in Pulse() 48 BBitmap *pBitmap = BTranslationUtils::GetBitmapFile(fPath); in Pulse() 54 BPath Path(fPath); in Pulse()
|
/haiku/src/tests/add-ons/print/pdf/linepathbuilder/ |
H A D | PathView.cpp | 57 const int n = fPath.CountPoints(); in Draw() 61 shape.MoveTo(fPath.PointAt(i)); in Draw() 63 shape.LineTo(fPath.PointAt(i)); in Draw() 65 if (fPath.IsClosed()) shape.Close(); in Draw() 69 ShapeLPB path(&fPath, fWidth, LineCapMode(), LineJoinMode(), LineMiterLimit()); in Draw() 96 fCurPoint = fPath.CountPoints(); in MouseDown() 97 fPath.AddPoint(point); in MouseDown() 100 for (int i = 0; i < fPath.CountPoints(); i++) { in MouseDown() 101 BPoint p = point - fPath.PointAt(i); in MouseDown() 105 fPath.AtPut(fCurPoint, point); in MouseDown() [all …]
|
/haiku/src/kits/debugger/files/ |
H A D | LocatableDirectory.cpp | 13 fPath(path), in LocatableDirectory() 27 if (fPath.Length() <= 1) in Name() 28 return fPath; in Name() 30 int32 lastSlash = fPath.FindLast('/'); in Name() 32 return fPath.String() + (lastSlash + 1); in Name() 39 return fPath.String(); in Path() 46 _path = fPath; in GetPath()
|
/haiku/src/apps/haikudepot/model/ |
H A D | DeskbarLink.cpp | 33 fPath(path), in DeskbarLink() 41 fPath(other.fPath), in DeskbarLink() 49 if (from->FindString(kPathKey, &fPath) != B_OK) { in DeskbarLink() 70 return fPath; in Path() 106 result = into->AddString(kPathKey, fPath); in Archive() 118 fPath = other.Path(); in operator =() 127 return fPath == other.fPath && fLink == other.fLink; in operator ==()
|
/haiku/src/apps/icon-o-matic/shape/ |
H A D | PathManipulator.cpp | 213 fPath(path), in PathManipulator() 228 fPath->AcquireReference(); in PathManipulator() 229 fPath->AddListener(this); in PathManipulator() 230 fPath->AddObserver(this); in PathManipulator() 246 fPath->RemoveObserver(this); in ~PathManipulator() 247 fPath->RemoveListener(this); in ~PathManipulator() 248 fPath->ReleaseReference(); in ~PathManipulator() 315 fPath->Iterate(&iterator, fCanvasView->ZoomLevel()); in Draw() 327 for (int32 i = 0; fPath->GetPointsAt(i, point, pointIn, pointOut); i++) { in Draw() 446 fChangePointCommand = new ChangePointCommand(fPath, in MouseDown() [all …]
|
/haiku/src/tools/ |
H A D | rm_attrs.cpp | 29 strcpy(fPath, path); in Init() 37 return fPath; in GetPath() 42 return fPath; in Buffer() 47 fPathLen = strlen(fPath); in BufferChanged() 54 int separatorLen = (fPath[fPathLen - 1] == '/' ? 0 : 1); in PushLeaf() 59 fPath[fPathLen++] = '/'; in PushLeaf() 61 strcpy(fPath + fPathLen, leaf); in PushLeaf() 69 char* lastSlash = strrchr(fPath, '/'); in PopLeaf() 70 if (lastSlash == NULL || lastSlash == fPath) in PopLeaf() 74 fPathLen = lastSlash - fPath; in PopLeaf() [all …]
|
/haiku/src/kits/debugger/ids/ |
H A D | FunctionID.cpp | 21 archive.FindString("FunctionID::path", &fPath); in FunctionID() 28 fPath(path), in FunctionID() 46 error = archive->AddString("FunctionID::path", fPath); in Archive() 56 return fPath.HashValue() * 17 in ComputeHashValue() 64 return fPath.Length() != 0 && fFunctionName.Length() != 0; in IsValid() 115 return other != NULL && fPath == other->fPath in operator ==() 167 return other != NULL && fPath == other->fPath in operator ==()
|
/haiku/src/tests/servers/app/painter/ |
H A D | ShapeConverter.cpp | 16 fPath(NULL) in ShapeConverter() 24 fPath(path) in ShapeConverter() 32 fPath = path; in SetPath() 43 fPath->move_to(x, y); in IterateMoveTo() 58 fPath->line_to(x, y); in IterateLineTo() 85 fPath->curve4(x1, y1, x2, y2, x3, y3); in IterateBezierTo() 96 fPath->close_polygon(); in IterateClose()
|
/haiku/src/bin/mkfs/ |
H A D | FsCreator.cpp | 56 fPath(path), in FsCreator() 74 status_t status = roster.GetPartitionForPath(fPath, &device, in Run() 77 if (!strncmp(fPath, "/dev", 4)) { in Run() 79 << fPath << ": " << strerror(status) << std::endl; in Run() 85 partition_id id = roster.RegisterFileDevice(fPath); in Run() 88 "path " << fPath << ": " << strerror(status) << std::endl; in Run() 95 if (!strncmp(fPath, "/dev", 4)) { in Run() 97 "for path " << fPath << ": " << strerror(status) in Run() 158 std::cout << "\nAbout to initialize " << fPath << " with " in Run() 161 << "\nALL YOUR DATA in " << fPath << " will be lost forever.\n"; in Run()
|
/haiku/src/apps/icon-o-matic/import_export/styled_text/ |
H A D | StyledTextImporter.cpp | 61 VectorPath *fPath; member in ShapeIterator 74 fPath = NULL; in ShapeIterator() 85 if (fPath) in IterateMoveTo() 102 fPath->AddPoint(fOffset + *linePts); in IterateLineTo() 123 fPath->AddPoint(firstPoint, in IterateBezierTo() 126 fPath->SetClosed(true); in IterateBezierTo() 128 fPath->AddPoint(firstPoint, firstPoint, fOffset + bezierPts[0], false); in IterateBezierTo() 133 fPath->AddPoint(fOffset + bezierPts[i + 1], in IterateBezierTo() 139 fPath->AddPoint(fLastPoint, in IterateBezierTo() 153 fPath->SetClosed(true); in IterateClose() [all …]
|
/haiku/src/tests/system/boot/loader/ |
H A D | Handle.cpp | 30 fPath(NULL) in Handle() 38 fPath(NULL) in Handle() 46 fPath = strdup(path); in Handle() 62 free(fPath); in ~Handle() 102 if (fPath == NULL) in GetName() 105 strncpy(nameBuffer, fPath, bufferSize - 1); in GetName()
|