Searched refs:screenFrame (Results 1 - 25 of 50) sorted by path

12

/haiku/src/add-ons/network_settings/dialup/
H A DInterfaceUtils.cpp23 BRect screenFrame = (BScreen(window).Frame()); local
24 BPoint point((screenFrame.Width() - rect.Width()) / 2.0,
25 (screenFrame.Height() - rect.Height()) / 2.0);
26 if(!screenFrame.Contains(point))
/haiku/src/add-ons/print/drivers/preview/
H A DJobSetupWindow.cpp114 BRect screenFrame(BScreen().Frame());
115 MoveTo((screenFrame.right - winFrame.right) / 2,
116 (screenFrame.bottom - winFrame.bottom) / 2);
H A DPageSetupWindow.cpp238 BRect screenFrame(BScreen().Frame());
239 MoveTo((screenFrame.right - winFrame.right) / 2,
240 (screenFrame.bottom - winFrame.bottom) / 2);
/haiku/src/apps/expander/
H A DPasswordAlert.cpp74 BRect screenFrame = BScreen(B_MAIN_SCREEN_ID).Frame(); local
76 point.x = screenFrame.Width() / 2 - Bounds().Width() / 2;
77 point.y = screenFrame.Height() / 2 - Bounds().Height() / 2;
78 if (screenFrame.Contains(point))
/haiku/src/apps/icon-o-matic/generic/support/
H A Dsupport_ui.cpp141 BRect screenFrame;
146 screenFrame = screen.Frame();
151 screenFrame = screen.Frame();
153 if (!screenFrame.Contains(frame)) {
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;
160 if (frame.right > screenFrame.right)
161 frame.OffsetBy(-(frame.right - screenFrame
[all...]
/haiku/src/apps/launchbox/
H A DMainWindow.cpp545 BRect screenFrame = screen.Frame(); local
546 fScreenPosition.x = center.x / screenFrame.Width();
547 fScreenPosition.y = center.y / screenFrame.Height();
551 fBorderDist = frame.left - screenFrame.left;
553 fBorderDist = screenFrame.right - frame.right;
557 fBorderDist = frame.top - screenFrame.top;
559 fBorderDist = screenFrame.bottom - frame.bottom;
568 BRect screenFrame = screen.Frame(); local
569 BPoint center(fScreenPosition.x * screenFrame.Width(),
570 fScreenPosition.y * screenFrame
[all...]
H A Dsupport.cpp96 BRect screenFrame = screen->Frame(); local
97 if (!screenFrame.Contains(frame)) {
99 if (frame.Width() > screenFrame.Width())
100 frame.right -= frame.Width() - screenFrame.Width() + 10.0;
101 if (frame.Height() > screenFrame.Height())
102 frame.bottom -= frame.Height() - screenFrame.Height() + 30.0;
104 if (frame.right > screenFrame.right)
105 frame.OffsetBy(-(frame.right - screenFrame.right), 0.0);
106 if (frame.bottom > screenFrame.bottom)
107 frame.OffsetBy(0.0, -(frame.bottom - screenFrame
[all...]
/haiku/src/apps/switcher/
H A DCaptureWindow.cpp97 BRect screenFrame = screen.Frame(); local
100 if (point.x <= screenFrame.left && fLastPoint.x > screenFrame.left)
102 else if (point.x >= screenFrame.right && fLastPoint.x < screenFrame.right)
104 else if (point.y <= screenFrame.top && fLastPoint.y > screenFrame.top)
106 else if (point.y >= screenFrame.bottom && fLastPoint.y < screenFrame.bottom)
H A DPanelWindow.cpp101 BRect screenFrame = screen.Frame(); local
108 from.y = screenFrame.top
109 + (screenFrame.Height() - Bounds().Height()) / 2.f;
114 from.x = screenFrame.left
115 + (screenFrame.Width() - Bounds().Width()) / 2.f;
122 from.x = screenFrame.left - Bounds().Width();
123 to.x = screenFrame.left;
126 from.x = screenFrame.right;
127 to.x = screenFrame.right - Bounds().Width();
130 from.y = screenFrame
[all...]
/haiku/src/apps/workspaces/
H A DWorkspaces.cpp105 void UpdateFramesForScreen(BRect screenFrame);
586 BRect screenFrame = screen.Frame(); local
591 if (where.x == screenFrame.left || where.x == screenFrame.right
592 || where.y == screenFrame.top || where.y == screenFrame.bottom) {
/haiku/src/bin/desklink/
H A DVolumeWindow.cpp54 BRect screenFrame(BScreen(B_MAIN_SCREEN_ID).Frame());
55 if (screenFrame.right < windowRect.right + kMargin)
56 MoveBy(- kMargin - windowRect.right + screenFrame.right, 0);
57 if (screenFrame.bottom < windowRect.bottom + kMargin)
58 MoveBy(0, - kMargin - windowRect.bottom + screenFrame.bottom);
59 if (screenFrame.left > windowRect.left - kMargin)
60 MoveBy(kMargin + screenFrame.left - windowRect.left, 0);
61 if (screenFrame.top > windowRect.top - kMargin)
62 MoveBy(0, kMargin + screenFrame.top - windowRect.top);
/haiku/src/kits/game/
H A DDirectWindow.cpp272 BDirectWindow::ScreenChanged(BRect screenFrame, color_space depth) argument
274 inherited::ScreenChanged(screenFrame, depth);
/haiku/src/kits/interface/
H A DToolTipManager.cpp183 BRect screenFrame = screen.Frame().InsetBySelf(2, 2); local
188 if (size.width > screenFrame.Width())
189 size.width = screenFrame.Width();
191 if (size.width > where.x - screenFrame.left
192 && size.width > screenFrame.right - where.x) {
195 if (size.height > where.y - screenFrame.top
196 && where.y - screenFrame.top > screenFrame.Height() / 2) {
197 size.height = where.y - offset.y - screenFrame.top;
198 } else if (size.height > screenFrame
[all...]
/haiku/src/preferences/datatranslations/
H A DDataTranslationsWindow.cpp70 BRect screenFrame = screen.Frame(); local
71 if (!screenFrame.Contains(Frame()))
/haiku/src/preferences/repositories/
H A DRepositoriesWindow.cpp44 BRect screenFrame = screen.Frame(); local
45 if (screenFrame.right < frame.right || screenFrame.left > frame.left
46 || screenFrame.top > frame.top || screenFrame.bottom < frame.bottom) {
/haiku/src/preferences/virtualmemory/
H A DSettingsWindow.cpp233 BRect screenFrame = screen.Frame(); local
234 if (!screenFrame.Contains(fSettings.WindowPosition()))
/haiku/src/servers/app/decorator/
H A DMagneticBorder.cpp58 BRect screenFrame = screen->Frame(); local
62 float leftDist = fabs(frame.left - screenFrame.left);
63 float topDist = fabs(frame.top - screenFrame.top);
64 float rightDist = fabs(frame.right - screenFrame.right);
65 float bottomDist = fabs(frame.bottom - screenFrame.bottom);
71 delta.x = screenFrame.left - originalFrame.left;
73 delta.x = screenFrame.right - originalFrame.right;
79 delta.y = screenFrame.top - originalFrame.top;
81 delta.y = screenFrame.bottom - originalFrame.bottom;
/haiku/src/servers/input/
H A DBottomlineWindow.cpp33 BRect screenFrame = (BScreen(B_MAIN_SCREEN_ID).Frame()); local
36 pt.y = screenFrame.Height()*2/3 - Bounds().Height()/2;
/haiku/src/tests/servers/app/newClipping/
H A DLayer.cpp506 BRect screenFrame(Bounds());
507 ConvertToScreen2(&screenFrame);
508 reg.Set(screenFrame);
H A DWinBorder.cpp67 BRect screenFrame(Bounds());
68 ConvertToScreen2(&screenFrame);
69 reg.Set(screenFrame);
/haiku/headers/os/game/
H A DDirectWindow.h91 virtual void ScreenChanged(BRect screenFrame,
/haiku/src/add-ons/kernel/file_systems/netfs/authentication_server/
H A DAuthenticationPanel.cpp225 BRect screenFrame = screen.Frame(); local
226 if (!screenFrame.Contains(frame)) {
230 center.x = screenFrame.left + screenFrame.Width() / 2.0;
231 center.y = screenFrame.top + screenFrame.Height() / 4.0;
/haiku/src/apps/deskbar/
H A DBarView.cpp413 BRect screenFrame = (BScreen(Window())).Frame(); local
414 bool onScreenEdge = whereScreen.x == screenFrame.left
415 || whereScreen.x == screenFrame.right
416 || whereScreen.y == screenFrame.top
417 || whereScreen.y == screenFrame.bottom;
557 BRect screenFrame = (BScreen(Window())).Frame(); local
558 statusLoc.x = screenFrame.right - fDragRegion->Bounds().Width();
587 BRect screenFrame = (BScreen(Window())).Frame(); local
592 SizeWindow(screenFrame);
593 PositionWindow(screenFrame);
637 GetPreferredWindowSize(BRect screenFrame, float* width, float* height) argument
693 SizeWindow(BRect screenFrame) argument
704 PositionWindow(BRect screenFrame) argument
836 BRect screenFrame = (BScreen(Window())).Frame(); local
[all...]
H A DBarView.h161 void GetPreferredWindowSize(BRect screenFrame,
163 void SizeWindow(BRect screenFrame);
164 void PositionWindow(BRect screenFrame);
H A DBarWindow.cpp304 BRect screenFrame = (BScreen(fBarView->Window())).Frame(); local
305 fBarView->SizeWindow(screenFrame);
306 fBarView->PositionWindow(screenFrame);
679 BRect screenFrame = (BScreen(this)).Frame(); local
687 BWindow::SetSizeLimits(screenFrame.Width(), screenFrame.Width(),
719 minWidth = maxWidth = screenFrame.Width();

Completed in 120 milliseconds

12