Lines Matching refs:frame
147 BRect frame = window->Frame();
152 float width = frame.Width();
153 float height = frame.Height();
158 if (width != frame.Width() || height != frame.Height()) {
160 frame.right = frame.left + width;
161 frame.bottom = frame.top + height;
164 if (frame.right > screen.right)
165 window->MoveBy(screen.right-frame.right, 0);
166 if (frame.bottom > screen.bottom)
167 window->MoveBy(0, screen.bottom-frame.bottom);
168 if (frame.left < screen.left)
169 window->MoveTo(screen.left, frame.top);
170 if (frame.top < screen.top)
171 window->MoveBy(0, screen.top-frame.top);
176 bar_rect(BRect& frame, BFont* font)
178 BRect rect(frame);
182 rect.top = frame.top + (frame.Height() - barHeight) / 2;
183 rect.bottom = frame.top + (frame.Height() + barHeight) / 2;
185 rect.left = frame.right - kMargin - kBarWidth;
186 rect.right = frame.right - kMargin;