Lines Matching refs:frame
89 make_sure_frame_is_on_screen(BRect& frame, BWindow* window) in make_sure_frame_is_on_screen() argument
95 if (frame.IsValid() && screen->IsValid()) { in make_sure_frame_is_on_screen()
97 if (!screenFrame.Contains(frame)) { in make_sure_frame_is_on_screen()
99 if (frame.Width() > screenFrame.Width()) in make_sure_frame_is_on_screen()
100 frame.right -= frame.Width() - screenFrame.Width() + 10.0; in make_sure_frame_is_on_screen()
101 if (frame.Height() > screenFrame.Height()) in make_sure_frame_is_on_screen()
102 frame.bottom -= frame.Height() - screenFrame.Height() + 30.0; in make_sure_frame_is_on_screen()
104 if (frame.right > screenFrame.right) in make_sure_frame_is_on_screen()
105 frame.OffsetBy(-(frame.right - screenFrame.right), 0.0); in make_sure_frame_is_on_screen()
106 if (frame.bottom > screenFrame.bottom) in make_sure_frame_is_on_screen()
107 frame.OffsetBy(0.0, -(frame.bottom - screenFrame.bottom)); in make_sure_frame_is_on_screen()
108 if (frame.left < screenFrame.left) in make_sure_frame_is_on_screen()
109 frame.OffsetBy((screenFrame.left - frame.left), 0.0); in make_sure_frame_is_on_screen()
110 if (frame.top < screenFrame.top) in make_sure_frame_is_on_screen()
111 frame.OffsetBy(0.0, (screenFrame.top - frame.top)); in make_sure_frame_is_on_screen()