Lines Matching refs:frame
96 BRect frame(Frame());
102 if (frame.right > windowBounds.right)
103 frame.right = windowBounds.right;
107 be_control_look->DrawMenuItemBackground(menu, frame, frame, base,
110 be_control_look->DrawButtonBackground(menu, frame, frame, base);
131 const BRect frame(Frame());
132 BRect iconRect(fIcon->Bounds().OffsetToCopy(frame.LeftTop()));
134 float widthOffset = rintf((frame.Width() - iconRect.Width()) / 2);
135 float heightOffset = rintf((frame.Height() - iconRect.Height()) / 2);
140 iconRect.OffsetBy(widthOffset, frame.Height() - iconRect.Height() + 2);
144 // clip to menu item frame
145 if (iconRect.Width() > frame.Width()) {
146 float diff = iconRect.Width() - frame.Width();