Lines Matching defs:rect
144 virtual void DrawField(BField* field, BRect rect,
381 PackageColumn::DrawField(BField* field, BRect rect, BView* parent)
394 float y = rect.top + ((rect.Height() - r.Height()) / 2) - 1;
401 x = rect.left + sTextMargin;
402 width = rect.right - (x + r.Width()) - (2 * sTextMargin);
403 r.Set(x + r.Width(), rect.top, rect.right - width, rect.bottom);
407 x = rect.right - sTextMargin - r.Width();
408 width = (x - rect.left - (2 * sTextMargin));
409 r.Set(rect.left, rect.top, rect.left + width, rect.bottom);
445 float width = rect.Width() - (2 * sTextMargin);
455 DrawString(stringField->ClippedString(), parent, rect);
461 float width = rect.Width() - (2 * kDefaultTextMargin);
476 rect.left += kDefaultTextMargin;
479 rect.left = rect.left + (width - stringWidth) / 2.0f;
483 rect.left = rect.right - (stringWidth + kDefaultTextMargin);
487 rect.left = floorf(rect.left);
488 rect.right = rect.left + stringWidth;
495 float y = rect.top + (rect.Height()
499 parent->DrawString(string, BPoint(rect.left, y));
502 rect.left = ceilf(rect.left
503 + (ratingField->Rating() / 5.0f) * rect.Width());
510 parent->FillRect(rect, B_SOLID_HIGH);