fViewBounds
fViewBounds = view->Bounds();
view->StrokeLine(BPoint(fViewBounds.left + 1, y),
BPoint(fViewBounds.right - 1, y));
if (y > fViewBounds.bottom)
printf("Line width: %ld\n", fViewBounds.IntegerWidth() + 1 - 2);
printf("Lines per iteration: %ld\n", fViewBounds.IntegerHeight() / 2);
BRect fViewBounds;
fViewBounds = view->Bounds();
float vMiddle = (fViewBounds.top + fViewBounds.bottom) / 2;
a.x = random_number_between(fViewBounds.left, fViewBounds.right);
a.y = random_number_between(fViewBounds.top, vMiddle);
b.x = random_number_between(fViewBounds.left, fViewBounds.right);
b.y = random_number_between(vMiddle, fViewBounds.bottom);
BRect fViewBounds;
fViewBounds = view->Bounds();
while (view->StringWidth(string.String()) < fViewBounds.Width() - 10)
while (view->StringWidth(string.String()) > fViewBounds.Width() - 10)
if (textLocation.y > fViewBounds.bottom)
BRect fViewBounds;
fViewBounds = view->Bounds();
view->StrokeLine(BPoint(x, fViewBounds.top + 1),
BPoint(x, fViewBounds.bottom - 1));
if (x > fViewBounds.right)
printf("Line height: %ld\n", fViewBounds.IntegerHeight() + 1 - 2);
printf("Lines per iteration: %ld\n", fViewBounds.IntegerWidth() / 2);
BRect fViewBounds;