roundf
extern float roundf(float value);
extern float roundf(float x);
BPoint center(roundf((rect.left + rect.right) / 2.0),
roundf((rect.top + rect.bottom) / 2.0));
const float spacing = (indicatorWidth <= 11.0f) ? 1.0f : roundf(indicatorWidth / 11.0f);
.AddStrut(roundf(be_control_look->DefaultItemSpacing() / 2))
.AddStrut(roundf(be_control_look->DefaultItemSpacing() / 2))
float creditsWidth = roundf(infoWidth * 1.25f);
fGap = (int32)roundf(fCharacterHeight / 8.0);
centered.y -= roundf(screenFrame.Height() / 16);
off = roundf((centerRect.Width() - rect.Width()) / 2);
off = roundf((centerRect.Width() - endRect.Width()) / 2);
off = roundf((centerRect.Width() - destRect.Width()) / 2);
where.x = roundf(where.x);
where.y = roundf(where.y);
where.x = roundf(where.x);
where.y = roundf(where.y);
offset.x = roundf(offset.x + canvasAnchor.x - anchor.x);
offset.y = roundf(offset.y + canvasAnchor.y - anchor.y);
offset.x = roundf(offset.x + dataRectCenter.x - boundsCenter.x);
offset.y = roundf(offset.y + dataRectCenter.y - boundsCenter.y);
unsigned r = (unsigned)roundf(radius);
center.Set(roundf(bounds.Width() / 2), bounds.bottom);
position = roundf(position);
x = fDivider - roundf(fLayoutData->label_width / 2.0f);
+ roundf((rect.Height() + 1.0f - fontHeight.ascent
float yOffset = roundf(lineHeight / 6.0f);
return (uint8)roundf(sqrtf(
BPoint center(roundf((rect.left + rect.right) / 2.0),
roundf((rect.top + rect.bottom) / 2.0));
const float metric = roundf(rect.Width() * 3.125f) / 10.0f,
const float spacing = (indicatorWidth <= 11.0f) ? 1.0f : roundf(indicatorWidth / 11.0f);
float inset = std::max(2.0f, roundf(font.Size() / 6));
float inset = roundf(font.Size() / 4);
float hcenter = rect.left + roundf(rect.Width() / 2);
float vmiddle = rect.top + roundf(rect.Height() / 2);
position = roundf(position);
if (roundf(frameWidth) >= roundf(labelWidth))
float symbolSize = roundf(Frame().Height() * 2 / 3);
return roundf(fMin + (offset / (maxSize - thumbSize)
value = roundf(value);
min = roundf(min);
max = roundf(max);
smallStep = roundf(smallStep);
largeStep = roundf(largeStep);
thickness = roundf(thickness);
return (int32)roundf(((position - min) * (fMaxValue - fMinValue)
return roundf(barFrame.left - 1
fTextRect.InsetBy(roundf((fTextRect.Width()
fContainerView->MoveBy(roundf(right / 2), 0);
where.x = roundf(where.x);
where.y = roundf(where.y);
MoveTo(fParentOffset.x + roundf(deltaX), fParentOffset.y + roundf(deltaY));
x = roundf(x);
y = roundf(y);
deltaWidth = roundf(deltaWidth);
deltaHeight = roundf(deltaHeight);
frame.left = roundf(frame.left);
frame.top = roundf(frame.top);
frame.right = roundf(frame.right);
frame.bottom = roundf(frame.bottom);
_MoveTo((int32)roundf(newFrame.left), (int32)roundf(newFrame.top));
zoomArea.InsetBy(0, roundf((zoomArea.Height() - maxZoomHeight) / 2));
zoomArea.InsetBy(roundf((zoomArea.Width() - maxZoomWidth) / 2), 0);
x = roundf(x);
y = roundf(y);
width = roundf(width);
height = roundf(height);
frame.left = roundf(frame.left);
frame.top = roundf(frame.top);
frame.right = roundf(frame.right);
frame.bottom = roundf(frame.bottom);
BRect rect(0, 0, roundf(itemHeight * M_PHI) - 1, itemHeight - 1);
SetExplicitSize(BSize(roundf(StringWidth("M") * 6), roundf(StringWidth("M") * 6)));
float x = roundf((dest->Bounds().Width() - size) / 2);
float y = roundf((dest->Bounds().Height() - size) / 2);
float leftText = roundf((view->StringWidth(nameString.String()) - Bounds().Width()) / 2);
rect.left += roundf((rect.Width() - textWidth) / 2.f);
rect.top = location.y + roundf((poseView->ListElemHeight() - iconSize) / 2);
BRect inner(where.x - roundf(kTransparentDragThreshold.x / 2),
where.y - roundf(kTransparentDragThreshold.y / 2),
where.x + roundf(kTransparentDragThreshold.x / 2),
where.y + roundf(kTransparentDragThreshold.y / 2));
rect.bottom = poseLoc.y + roundf((view->ListElemHeight() + ActualFontHeight(view)) / 2.f);
rect.left = poseLoc.x + roundf((column->Width() - viewWidth) / 2.f);
rect.bottom = poseLoc.y + roundf((view->ListElemHeight() + ActualFontHeight(view)) / 2.f);
rect.left = poseLoc.x + roundf((iconSize - viewWidth) / 2.f);
rect.bottom = poseLoc.y + roundf((iconSize + ActualFontHeight(view)) / 2.f);
scrollView->MoveBy(roundf(right / 2), 0);
float decenderHeight = roundf(view->FontInfo().descent);
lineRect.InsetBy(roundf(textRect.Width() - fText->Width(view)), 0);
roundf((bounds.top + bounds.bottom) / 2.0));
= roundf((view->StringWidth(nameString.String()) - fIconRect.Width()) / 2);
bounds.top += roundf(Spacing() / 2); // center inside menu field vertically
*minWidth = (int32)roundf(max_c(*minWidth,
*minHeight = (int32)roundf(max_c(*minHeight,
baseLine.x = roundf(baseLine.x);
baseLine.y = roundf(baseLine.y);
baseLine.x = roundf(baseLine.x);
baseLine.y = roundf(baseLine.y);
rect->right = roundf(rect->right);
rect->bottom = roundf(rect->bottom);
rect->OffsetTo(roundf(rect->left), roundf(rect->top));
where.x = roundf(where.x);
where.y = roundf(where.y);
return roundf(x);
return roundf(x);
fBaseRenderer->add_clip_box(roundf(lt.x),
roundf(lt.y),
roundf(rb.x),
roundf(rb.y));