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

12

/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...]
H A DAboutWindow.cpp442 BRect screenFrame(0, 0, 640, 480);
444 screenFrame = screen.Frame();
447 result.x = screenFrame.left + (screenFrame.Width() / 2.0) - (width / 2.0);
450 result.y = screenFrame.top + (screenFrame.Height() / 4.0)
/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/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/apps/switcher/
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...]
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)
/haiku/src/apps/launchbox/
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...]
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...]
/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/deskcalc/
H A DCalcWindow.cpp157 BRect screenFrame = screen.Frame(); local
158 if (forceCenter || !screenFrame.Contains(frame)) {
159 float left = (screenFrame.Width() - frame.Width()) / 2.0;
160 float top = (screenFrame.Height() - frame.Height()) / 2.0;
161 left += screenFrame.left;
162 top += screenFrame.top;
/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/apps/deskbar/
H A DStatusView.cpp1616 const BRect screenFrame((BScreen(Window())).Frame());
1619 float hDivider = floorf(screenFrame.Width() / 4);
1620 float halfScreen = floorf(screenFrame.Height() / 2);
1623 fTopLeftVertical.Set(BRect(screenFrame.left,
1624 screenFrame.top + menuBarHeight, screenFrame.left + hDivider,
1625 screenFrame.top + floorf(menuBarHeight * kVerticalMiniMultiplier)));
1626 fTopRightVertical.Set(BRect(screenFrame.right - hDivider,
1627 screenFrame.top + menuBarHeight, screenFrame
[all...]
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();
/haiku/src/tests/servers/app/newClipping/
H A DWinBorder.cpp67 BRect screenFrame(Bounds());
68 ConvertToScreen2(&screenFrame);
69 reg.Set(screenFrame);
/haiku/src/servers/app/
H A DWorkspacesView.h42 const BRect& screenFrame, const BRect& windowFrame,
46 const BRect& workspaceFrame, const BRect& screenFrame,
H A DWorkspacesView.cpp141 const BRect& screenFrame, const BRect& windowFrame,
148 float factor = workspaceFrame.Width() / screenFrame.Width();
152 factor = workspaceFrame.Height() / screenFrame.Height();
169 const BRect& workspaceFrame, const BRect& screenFrame, ::Window* window,
176 BRect frame = _WindowFrame(workspaceFrame, screenFrame, window->Frame(),
183 tabFrame = _WindowFrame(workspaceFrame, screenFrame,
317 BRect screenFrame = _ScreenFrame(index); local
337 _DrawWindow(drawingEngine, rect, screenFrame, window,
445 BRect screenFrame = _ScreenFrame(index); local
454 BRect frame = _WindowFrame(workspaceFrame, screenFrame, windo
140 _WindowFrame(const BRect& workspaceFrame, const BRect& screenFrame, const BRect& windowFrame, BPoint windowPosition) argument
168 _DrawWindow(DrawingEngine* drawingEngine, const BRect& workspaceFrame, const BRect& screenFrame, ::Window* window, BPoint windowPosition, BRegion& backgroundRegion, bool workspaceActive) argument
566 BRect screenFrame = _ScreenFrame(index); local
[all...]
/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/apps/screenshot/
H A DScreenshot.cpp350 BRect screenFrame(BScreen().Frame());
351 if (fUtility->activeWindowFrame.left < screenFrame.left)
352 fUtility->activeWindowFrame.left = screenFrame.left;
353 if (fUtility->activeWindowFrame.top < screenFrame.top)
354 fUtility->activeWindowFrame.top = screenFrame.top;
355 if (fUtility->activeWindowFrame.right > screenFrame.right)
356 fUtility->activeWindowFrame.right = screenFrame.right;
357 if (fUtility->activeWindowFrame.bottom > screenFrame.bottom)
358 fUtility->activeWindowFrame.bottom = screenFrame.bottom;
H A DUtility.cpp271 BRect screenFrame = screen.Frame(); local
272 tabSpace.OffsetBy(-screenFrame.left, -screenFrame.top);
/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/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/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/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);

Completed in 258 milliseconds

12