Lines Matching defs:frame
136 make_sure_frame_is_on_screen(BRect& frame, BWindow* window)
138 if (!frame.IsValid())
153 if (!screenFrame.Contains(frame)) {
154 // make sure frame fits in the screen
155 if (frame.Width() > screenFrame.Width())
156 frame.right -= frame.Width() - screenFrame.Width() + 10.0;
157 if (frame.Height() > screenFrame.Height())
158 frame.bottom -= frame.Height() - screenFrame.Height() + 30.0;
159 // frame is now at the most the size of the screen
160 if (frame.right > screenFrame.right)
161 frame.OffsetBy(-(frame.right - screenFrame.right), 0.0);
162 if (frame.bottom > screenFrame.bottom)
163 frame.OffsetBy(0.0, -(frame.bottom - screenFrame.bottom));
164 if (frame.left < screenFrame.left)
165 frame.OffsetBy((screenFrame.left - frame.left), 0.0);
166 if (frame.top < screenFrame.top)
167 frame.OffsetBy(0.0, (screenFrame.top - frame.top));