Searched refs:points (Results 1 - 25 of 50) sorted by relevance

12

/haiku/src/tests/add-ons/print/pdf/bezierbounds/
H A DBezierBounds.cpp35 BRect BezierBounds(BPoint* points, int numOfPoints) argument
38 for (int i = 0; i < numOfPoints; i ++, points ++) {
39 bounds.left = min_c(bounds.left, points->x);
40 bounds.right = max_c(bounds.right, points->x);
41 bounds.top = min_c(bounds.top, points->y);
42 bounds.bottom = max_c(bounds.bottom, points->y);
79 BRect BezierBounds(BPoint* points, int numOfPoints, float penSize, cap_mode capMode, join_mode joinMode, float miterLimit) argument
81 BRect bounds = BezierBounds(points, numOfPoints);
H A DBezierBounds.h37 BRect BezierBounds(BPoint* points, int numOfPoints);
38 BRect BezierBounds(BPoint* points, int numOfPoints, float penSize, cap_mode capMode, join_mode joinMode, float miterLimit);
/haiku/headers/os/interface/
H A DPolygon.h18 BPolygon(const BPoint* points, int32 count);
27 void AddPoints(const BPoint* points, int32 count);
41 bool _AddPoints(const BPoint* points, int32 count,
/haiku/src/tests/kits/interface/flatten_picture/
H A DPictureTestCases.cpp140 BPoint points[4]; local
141 points[0] = BPoint(frame.left, frame.bottom);
142 points[1] = BPoint(frame.left, frame.top);
143 points[1] = BPoint(frame.left, frame.top);
144 points[3] = BPoint(frame.right, frame.top);
145 view->FillBezier(points);
151 BPoint points[4]; local
152 points[0] = BPoint(frame.left, frame.bottom);
153 points[1] = BPoint(frame.left, frame.top);
154 points[
185 BPoint points[4]; local
198 BPoint points[4]; local
392 BPoint points[3]; local
405 BPoint points[3]; local
418 BPoint points[3]; local
431 BPoint points[3]; local
444 BPoint points[3]; local
457 BPoint points[3]; local
467 BPoint points[3]; local
[all...]
/haiku/src/add-ons/screen_savers/spider/
H A DPolygon.cpp32 Polygon::Polygon(BRect bounds, BList points) argument
33 : fPoints(points.CountItems()),
36 fPoints = points;
50 BList points(CountPoints());
63 points.AddItem((void*)npv);
65 return new Polygon(fBounds, points);
H A DPolygon.h22 Polygon(BRect bounds, BList points);
/haiku/src/kits/interface/
H A DControlLook.cpp71 BPoint points[4];
72 points[0] = rect.LeftTop();
73 points[1] = rect.RightBottom();
74 points[2] = rect.LeftBottom();
75 points[3] = rect.RightTop();
77 view->TransformTo(B_VIEW_COORDINATES).Apply(points, 4);
80 dest.left = dest.right = points[0].x;
81 dest.top = dest.bottom = points[0].y;
83 dest.left = std::min(dest.left, points[i].x);
84 dest.right = std::max(dest.right, points[
[all...]
H A DPolygon.cpp25 BPolygon::BPolygon(const BPoint* points, int32 count) argument
31 _AddPoints(points, count, true);
97 BPolygon::AddPoints(const BPoint* points, int32 count) argument
99 _AddPoints(points, count, true);
157 BPolygon::_AddPoints(const BPoint* points, int32 count, bool computeBounds) argument
159 if (points == NULL || count <= 0)
162 fprintf(stderr, "BPolygon::_AddPoints(%" B_PRId32 ") - too many points"
176 memcpy((void*)(fPoints + fCount), points, count * sizeof(BPoint));
H A DShape.cpp43 BPoint* points = data->ptList; local
49 IterateMoveTo(points);
50 points++;
55 IterateLineTo(count, points);
56 points += count;
61 IterateBezierTo(count / 3, points);
62 points += count;
70 IterateArcTo(points[0].x, points[0].y, points[
[all...]
/haiku/src/apps/icon-o-matic/shape/commands/
H A DNudgePointsCommand.cpp42 const control_point* points,
59 if (fCount > 0 && points) {
61 memcpy((void*)fPoints, points, fCount * sizeof(control_point));
40 NudgePointsCommand(VectorPath* path, const int32* indices, const control_point* points, int32 count) argument
H A DTransformPointsCommand.cpp25 const control_point* points,
45 fPoints(points && count > 0 ?
53 memcpy((void*)fPoints, points, fCount * sizeof(control_point));
110 // restore original points and apply transformation
20 TransformPointsCommand( TransformBox* box, VectorPath* path, const int32* indices, const control_point* points, int32 count, BPoint pivot, BPoint translation, double rotation, double xScale, double yScale, const char* name) argument
H A DNudgePointsCommand.h31 const control_point* points,
H A DTransformPointsCommand.h34 const control_point* points,
/haiku/src/apps/remotedesktop/
H A DRemoteView.cpp840 BPoint points[4]; local
841 if (message.ReadList(points, 4) != B_OK)
844 BRect bounds = _BuildInvalidateRect(points, 4);
846 offscreen->StrokeBezier(points, pattern);
849 offscreen->FillBezier(points, pattern);
855 offscreen->FillBezier(points, *gradient);
902 BPoint points[numPoints]; local
904 message.Read(points[i]);
907 offscreen->StrokePolygon(points, numPoints, bounds, closed,
911 offscreen->FillPolygon(points, numPoint
1049 BPoint points[3]; local
1078 BPoint points[2]; local
1157 BPoint points[2]; local
1319 _BuildInvalidateRect(BPoint *points, int32 pointCount) argument
[all...]
/haiku/src/apps/icon-o-matic/import_export/svg/
H A DDocumentBuilder.cpp155 float* points = svgPath->pts; local
157 // First entry in the points list is always a "move" to the path
159 if (!path->AddPoint(BPoint(points[0], points[1])))
164 points += 2;
167 BPoint vector1(points[0], points[1]);
168 BPoint vector2(points[2], points[3]);
169 BPoint endPoint(points[
[all...]
/haiku/src/system/libroot/os/arch/x86/
H A Dsyscalls.inc13 * esp + 4 points to the syscall parameters
/haiku/src/servers/app/
H A DPictureBoundingBoxPlayer.cpp146 get_polygon_frame(const BPoint* points, int32 numPoints, BRect* frame) argument
150 float left = points->x;
151 float top = points->y;
155 points++;
159 if (points->x < left)
160 left = points->x;
161 if (points->x > right)
162 right = points->x;
163 if (points->y < top)
164 top = points
268 BPoint points[4]; local
347 BPoint* points = (BPoint*)data; local
355 BPoint* points = (BPoint*)malloc(numPoints * sizeof(BPoint)); local
[all...]
H A DServerPicture.cpp241 get_polygon_frame(const BPoint* points, uint32 numPoints, BRect* _frame) argument
245 float left = points->x;
246 float top = points->y;
250 points++;
254 if (points->x < left)
255 left = points->x;
256 if (points->x > right)
257 right = points->x;
258 if (points->y < top)
259 top = points
[all...]
/haiku/src/tests/servers/app/unit_tests/
H A DSimpleTransformTest.cpp165 BPoint points[3]; local
166 points[0].Set(10.0, 20.0);
167 points[1].Set(30.0, 40.0);
168 points[2].Set(50.0, 60.0);
172 specimen.Apply(&transformedPoints[0], &points[0], 3);
/haiku/src/servers/app/drawing/interface/remote/
H A DRemoteDrawingEngine.h77 virtual void DrawBezier(BPoint* points, bool filled);
78 virtual void FillBezier(BPoint* points,
125 virtual void DrawTriangle(BPoint* points,
127 virtual void FillTriangle(BPoint* points,
160 BRect _BuildBounds(BPoint* points, int32 pointCount);
H A DRemoteDrawingEngine.cpp431 RemoteDrawingEngine::DrawBezier(BPoint* points, bool filled) argument
433 BRect bounds = _BuildBounds(points, 4);
443 message.AddList(points, 4);
448 RemoteDrawingEngine::FillBezier(BPoint* points, const BGradient& gradient) argument
450 BRect bounds = _BuildBounds(points, 4);
457 message.AddList(points, 4);
558 BPoint points[2] = { start, end }; local
559 BRect bounds = _BuildBounds(points, 2);
567 message.AddList(points, 2);
778 RemoteDrawingEngine::DrawTriangle(BPoint* points, cons argument
797 FillTriangle(BPoint* points, const BRect& bounds, const BGradient& gradient) argument
815 BPoint points[2] = { start, end }; local
1058 _BuildBounds(BPoint* points, int32 pointCount) argument
[all...]
/haiku/headers/private/print/
H A DPicturePrinter.h56 virtual void StrokePolygon(int32 numPoints, BPoint *points, bool isClosed);
57 virtual void FillPolygon(int32 numPoints, BPoint *points, bool isClosed);
95 void Print(int numPoints, BPoint* points);
H A DTemplate.h51 virtual void StrokePolygon(int32 numPoints, BPoint *points, bool isClosed);
52 virtual void FillPolygon(int32 numPoints, BPoint *points, bool isClosed);
H A DPictureIterator.h57 virtual void StrokePolygon(int32 numPoints, BPoint *points, bool isClosed) { } argument
58 virtual void FillPolygon(int32 numPoints, BPoint *points, bool isClosed) { } argument
/haiku/src/kits/print/
H A DTemplate.cpp84 void Template::StrokePolygon(int32 numPoints, BPoint *points, bool isClosed) { argument
88 void Template::FillPolygon(int32 numPoints, BPoint *points, bool isClosed) { argument

Completed in 182 milliseconds

12