Lines Matching defs:rect

462 	BRect rect = frame;
463 rect.right--;
464 rect.bottom--;
465 BBitmap* bitmap = new BBitmap(rect, B_RGBA32, true);
468 BView* view = new BView(rect, "drag", B_FOLLOW_NONE, 0);
696 KeyboardLayoutView::_DrawKeyButton(BView* view, BRect& rect, BRect updateRect,
701 be_control_look->DrawButtonFrame(view, rect, updateRect, 4.0f, base,
703 be_control_look->DrawButtonBackground(view, rect, updateRect, 4.0f,
710 BRect rect, bool pressed)
741 _DrawKeyButton(view, rect, updateRect, base, background, pressed);
743 rect.InsetBy(1, 1);
745 _GetAbbreviatedKeyLabelIfNeeded(view, rect, key, text, sizeof(text));
746 be_control_look->DrawLabel(view, text, rect, updateRect,
750 BRect topLeft = rect;
751 BRect topRight = rect;
752 BRect bottomLeft = rect;
753 BRect bottomRight = rect;
757 bottomLeft.top = floorf(rect.top
759 bottomLeft.right = floorf(rect.left
803 BRegion region(rect);
808 BRect bgRect = rect.InsetByCopy(2, 2);
812 rect.left = bottomLeft.right;
813 _GetAbbreviatedKeyLabelIfNeeded(view, rect, key, text, sizeof(text));
816 be_control_look->DrawLabel(view, text, rect, updateRect,
828 const Indicator* indicator, BRect rect, bool lit)
830 float rectTop = rect.top;
831 rect.top += 2 * rect.Height() / 3;
845 if (ceilf(rect.top - fontHeight.ascent + fontHeight.descent - 2)
851 view->TruncateString(&text, B_TRUNCATE_END, rect.Width());
853 BPoint(ceilf(rect.left + (rect.Width()
855 ceilf(rect.top - fontHeight.descent - 2)));
859 rect.left += rect.Width() / 4;
860 rect.right -= rect.Width() / 3;
865 be_control_look->DrawButtonFrame(view, rect, updateRect, base,
867 be_control_look->DrawButtonBackground(view, rect, updateRect,
988 KeyboardLayoutView::_GetAbbreviatedKeyLabelIfNeeded(BView* view, BRect rect,
991 if (floorf(rect.Width()) > ceilf(view->StringWidth(text)))
1222 BRect rect;
1223 rect.left = ceilf(keyFrame.left * fFactor);
1224 rect.top = ceilf(keyFrame.top * fFactor);
1225 rect.right = floorf((keyFrame.Width()) * fFactor + rect.left - fGap - 1);
1226 rect.bottom = floorf((keyFrame.Height()) * fFactor + rect.top - fGap - 1);
1227 rect.OffsetBy(fOffset);
1229 return rect;