Searched refs:center (Results 1 - 25 of 68) sorted by last modified time

123

/haiku/src/kits/interface/
H A DHaikuControlLook.cpp3003 BPoint center(roundf((rect.left + rect.right) / 2.0),
3008 triangle[0] = center + BPoint(-metric, -offset);
3009 triangle[1] = center + BPoint(metric, -offset);
3010 triangle[2] = center + BPoint(0.0, metric * 0.8f);
H A DMenuItem.cpp721 BPoint center(floorf((r.left + r.right) / 2.0),
725 r.top = floorf(center.y - size / 2 + 0.5);
726 r.bottom = floorf(center.y + size / 2 + 0.5);
727 r.left = floorf(center.x - size / 2 + 0.5);
728 r.right = floorf(center.x + size / 2 + 0.5);
731 center.x += 0.5;
732 center.y += 0.5;
734 arrowShape.MoveTo(BPoint(center.x - size, center.y - size * 0.25));
735 arrowShape.LineTo(BPoint(center
[all...]
H A DColorControl.cpp518 BPoint center = _SelectorPosition(_RampFrame(i), components[i]); local
521 target->StrokeEllipse(center, kSelectorSize / 2, kSelectorSize / 2);
523 target->StrokeEllipse(center, kSelectorSize, kSelectorSize,
526 target->StrokeEllipse(center,
H A DTabView.cpp280 BPoint center(frame.left + frame.Width() / 2,
301 frame.top = center.y - originalFrame.Width() / 2;
302 frame.bottom = center.y + originalFrame.Width() / 2;
303 frame.left = center.x - originalFrame.Height() / 2;
304 frame.right = center.x + originalFrame.Height() / 2;
308 transform.RotateBy(center, rotation * M_PI / 180.0f);
H A DView.cpp3335 BView::StrokeEllipse(BPoint center, float xRadius, float yRadius, argument
3338 StrokeEllipse(BRect(center.x - xRadius, center.y - yRadius,
3339 center.x + xRadius, center.y + yRadius), pattern);
3360 BView::FillEllipse(BPoint center, float xRadius, float yRadius, argument
3363 FillEllipse(BRect(center.x - xRadius, center.y - yRadius,
3364 center.x + xRadius, center
3369 FillEllipse(BPoint center, float xRadius, float yRadius, const BGradient& gradient) argument
3410 StrokeArc(BPoint center, float xRadius, float yRadius, float startAngle, float arcAngle, ::pattern pattern) argument
3438 FillArc(BPoint center,float xRadius, float yRadius, float startAngle, float arcAngle, ::pattern pattern) argument
3447 FillArc(BPoint center,float xRadius, float yRadius, float startAngle, float arcAngle, const BGradient& gradient) argument
[all...]
H A DPicturePlayer.cpp96 draw_arc(void* _context, const BPoint& center, const BPoint& radii, argument
101 context->function_table[fill ? 10 : 9])(context->user_data, center,
111 BPoint center = rect.LeftTop() + radii; local
113 context->function_table[fill ? 12 : 11])(context->user_data, center,
559 draw_arc_gradient(void* _context, const BPoint& center, const BPoint& radii, argument
564 context->function_table[fill ? 62 : 63])(context->user_data, center,
574 BPoint center = rect.LeftTop() + radii; local
576 context->function_table[fill ? 64 : 65])(context->user_data, center,
999 const BPoint* center; local
1003 if (callbacks.draw_arc == NULL || !reader.Get(center)
1176 const BPoint* center; local
[all...]
/haiku/src/apps/deskbar/
H A DSwitcher.cpp750 // center the window
1339 float center = (bounds.right + bounds.left) / 2; local
1365 AddLine(box.LeftTop(), BPoint(center - kWedge, box.top), veryDarkGray);
1366 AddLine(BPoint(center + kWedge, box.top), box.RightTop(), veryDarkGray);
1368 AddLine(box.LeftBottom(), BPoint(center - kWedge, box.bottom),
1370 AddLine(BPoint(center + kWedge, box.bottom), box.RightBottom(),
1373 BPoint(center - kWedge, box.bottom + 1), white);
1374 AddLine(BPoint(center + kWedge, box.bottom) + BPoint(0, 1),
1383 BPoint point(center - kWedge, box.top);
1385 AddLine(point + BPoint(kWedge, kWedge), BPoint(center
[all...]
H A DTimeView.cpp234 BPoint center(bounds.LeftTop());
235 center += BPoint(bounds.Width() / 2, bounds.Height() / 2);
236 ShowCalendar(center);
470 // center vertically
/haiku/src/add-ons/control_look/FlatControlLook/
H A DFlatControlLook.cpp1804 BPoint center(roundf((rect.left + rect.right) / 2.0),
1807 triangle[0] = center + BPoint(-2.5, -0.5);
1808 triangle[1] = center + BPoint(2.5, -0.5);
1809 triangle[2] = center + BPoint(0.0, 2.0);
/haiku/src/kits/tracker/
H A DUtilities.cpp745 float center = (bounds.right - bounds.left) / 2; local
746 loc.x = center - (width/2);
H A DPoseView.cpp3082 // Try to lock the center of the pose view when scaling icons, but not
3089 BPoint center(bounds.LeftTop());
3090 center.x += bounds.Width() / 2.0;
3091 center.y += bounds.Height() / 2.0;
3092 // convert the center into "unscaled icon placement" space
3094 BPoint unscaledCenter(center.x / oldScale, center.y / oldScale);
3095 // get the new center in "scaled icon placement" place
3099 scaleOffset = newCenter - center;
7941 // center aroun
[all...]
H A DTitleView.cpp531 BPoint center(titleLocation.x - 6,
535 triangle[0] = center + BPoint(-3.5, 1.5);
536 triangle[1] = center + BPoint(3.5, 1.5);
537 triangle[2] = center + BPoint(0.0, -2.0);
539 triangle[0] = center + BPoint(-3.5, -1.5);
540 triangle[1] = center + BPoint(3.5, -1.5);
541 triangle[2] = center + BPoint(0.0, 2.0);
/haiku/src/servers/app/
H A DServerWindow.cpp3467 BPoint center = rect.LeftTop() + radii; local
3469 picture->WriteDrawArc(center, radii, startTheta, arcTheta,
3553 BPoint center = rect.LeftTop() + radii; local
3555 picture->WriteDrawArcGradient(center, radii, startTheta, arcTheta, *gradient,
H A DServerPicture.cpp342 draw_arc(void* _canvas, const BPoint& center, const BPoint& radii, argument
347 BRect rect(center.x - radii.x, center.y - radii.y,
348 center.x + radii.x - 1, center.y + radii.y - 1);
451 draw_arc_gradient(void* _canvas, const BPoint& center, const BPoint& radii, argument
456 BRect rect(center.x - radii.x, center.y - radii.y,
457 center.x + radii.x - 1, center
[all...]
H A DPictureBoundingBoxPlayer.cpp327 determine_bounds_draw_arc(void* _state, const BPoint& center, argument
330 BRect rect(center.x - radii.x, center.y - radii.y,
331 center.x + radii.x - 1, center.y + radii.y - 1);
/haiku/src/apps/cortex/ValControl/
H A DValControl.cpp296 BPoint center; local
297 center.x = e.frame.left + 1;
298 center.y = baselineOffset() - 1;
301 StrokeLine(center, center);
303 StrokeLine(center - BPoint(0, 1), center + BPoint(1, 0));
304 StrokeLine(center - BPoint(1, 0), center + BPoint(0, 1));
307 // StrokeLine(center
[all...]
/haiku/headers/os/interface/
H A DView.h418 void StrokeEllipse(BPoint center, float xRadius,
423 void FillEllipse(BPoint center, float xRadius,
428 void FillEllipse(BPoint center, float xRadius,
433 void StrokeArc(BPoint center, float xRadius,
440 void FillArc(BPoint center, float xRadius,
447 void FillArc(BPoint center, float xRadius,
/haiku/src/servers/app/drawing/Painter/
H A DPainter.cpp509 // "false" means not to do the pixel center offset,
549 // Do the pixel center offset here
851 // shift coords to center of pixels
1211 BPoint center(r.left + xRadius, r.top + yRadius);
1219 agg::ellipse path(center.x, center.y, xRadius, yRadius, divisions);
1238 BPoint center(r.left + xRadius, r.top + yRadius);
1246 agg::ellipse path(center.x, center.y, xRadius, yRadius, divisions);
1254 Painter::StrokeArc(BPoint center, floa argument
1275 FillArc(BPoint center, float xRadius, float yRadius, float angle, float span) const argument
1312 FillArc(BPoint center, float xRadius, float yRadius, float angle, float span, const BGradient& gradient) argument
1982 _CalcRadialGradientTransform(BPoint center, agg::trans_affine& matrix, float gradient_d2) const argument
[all...]
H A DPainter.h197 BRect StrokeArc(BPoint center, float xRadius,
201 BRect FillArc(BPoint center, float xRadius,
204 BRect FillArc(BPoint center, float xRadius,
309 void _CalcRadialGradientTransform(BPoint center,
/haiku/src/apps/mediaplayer/interface/
H A DSeekSlider.cpp59 float center = (frame.left + frame.right) / 2.0f; local
63 frame.left = floorf(center - width / 2) + 1;
/haiku/src/servers/app/drawing/
H A DDrawingEngine.cpp728 BPoint center(r.left + xRadius,
732 fPainter->FillArc(center, xRadius, yRadius, angle, span);
734 fPainter->StrokeArc(center, xRadius, yRadius, angle, span);
752 BPoint center(r.left + xRadius,
755 fPainter->FillArc(center, xRadius, yRadius, angle, span, gradient);
/haiku/src/bin/
H A Dsetmime.cpp371 } else if (strcasecmp(value, "center") == 0) {
396 : (fAlignment == B_ALIGN_LEFT ? "left" : "center");
/haiku/src/kits/print/
H A DPicturePrinter.cpp146 void PicturePrinter::StrokeArc(BPoint center, BPoint radii, float startTheta, float arcTheta) { argument
147 Indent(); Print("StrokeArc center="); Print(&center); Print("radii="); Print(&radii); Print("arcTheta=", arcTheta); Cr();
151 void PicturePrinter::FillArc(BPoint center, BPoint radii, float startTheta, float arcTheta) { argument
152 Indent(); Print("FillArc center="); Print(&center); Print("radii="); Print(&radii); Print("arcTheta=", arcTheta); Cr();
156 void PicturePrinter::StrokeEllipse(BPoint center, BPoint radii) { argument
157 Indent(); Print("StrokeEllipse center="); Print(&center); Print("radii="); Print(&radii); Cr();
161 void PicturePrinter::FillEllipse(BPoint center, BPoin argument
[all...]
H A DTemplate.cpp68 void Template::StrokeArc(BPoint center, BPoint radii, float startTheta, float arcTheta) { argument
72 void Template::FillArc(BPoint center, BPoint radii, float startTheta, float arcTheta) { argument
76 void Template::StrokeEllipse(BPoint center, BPoint radii) { argument
80 void Template::FillEllipse(BPoint center, BPoint radii) { argument
H A DPictureIterator.cpp43 static void _StrokeArc(void *p, BPoint center, BPoint radii, float startTheta, float arcTheta) { return ((PictureIterator *) p)->StrokeArc(center, radii, startTheta, arcTheta); } argument
44 static void _FillArc(void *p, BPoint center, BPoint radii, float startTheta, float arcTheta) { return ((PictureIterator *) p)->FillArc(center, radii, startTheta, arcTheta); } argument
45 static void _StrokeEllipse(void *p, BPoint center, BPoint radii) { return ((PictureIterator *) p)->StrokeEllipse(center, radii); } argument
46 static void _FillEllipse(void *p, BPoint center, BPoint radii) { return ((PictureIterator *) p)->FillEllipse(center, radii); } argument
103 (void *)_StrokeArc, // 9 StrokeArc(void *user, BPoint center, BPoint radii, float startTheta, float arcTheta)
104 (void *)_FillArc, // 10 FillArc(void *user, BPoint center, BPoin
[all...]

Completed in 245 milliseconds

123