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

123

/haiku-fatelf/src/preferences/screen/
H A DScreenSettings.cpp24 BRect screenFrame = screen.Frame(); local
37 if (fWindowFrame.Width() > screenFrame.Width())
39 if (fWindowFrame.Height() > screenFrame.Height())
42 if (screenFrame.right >= fWindowFrame.left + 40
43 && screenFrame.bottom >= fWindowFrame.top + 40
44 && screenFrame.left <= fWindowFrame.right - 40
45 && screenFrame.top <= fWindowFrame.bottom - 40)
52 screenFrame.left + (screenFrame.Width() - fWindowFrame.Width()) / 2,
53 screenFrame
[all...]
/haiku-fatelf/src/kits/interface/
H A DToolTipManager.cpp182 BRect screenFrame = screen.Frame().InsetBySelf(2, 2); local
187 if (size.width > screenFrame.Width())
188 size.width = screenFrame.Width();
190 if (size.width > where.x - screenFrame.left
191 && size.width > screenFrame.right - where.x) {
194 if (size.height > where.y - screenFrame.top
195 && where.y - screenFrame.top > screenFrame.Height() / 2) {
196 size.height = where.y - offset.y - screenFrame.top;
197 } else if (size.height > screenFrame
[all...]
/haiku-fatelf/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-fatelf/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-fatelf/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-fatelf/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.cpp522 BRect screenFrame = screen.Frame(); local
523 fScreenPosition.x = center.x / screenFrame.Width();
524 fScreenPosition.y = center.y / screenFrame.Height();
528 fBorderDist = frame.left - screenFrame.left;
530 fBorderDist = screenFrame.right - frame.right;
534 fBorderDist = frame.top - screenFrame.top;
536 fBorderDist = screenFrame.bottom - frame.bottom;
545 BRect screenFrame = screen.Frame(); local
546 BPoint center(fScreenPosition.x * screenFrame.Width(),
547 fScreenPosition.y * screenFrame
[all...]
/haiku-fatelf/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-fatelf/src/apps/deskcalc/
H A DCalcWindow.cpp161 BRect screenFrame = screen.Frame(); local
162 if (forceCenter || !screenFrame.Contains(frame)) {
163 float left = (screenFrame.Width() - frame.Width()) / 2.0;
164 float top = (screenFrame.Height() - frame.Height()) / 2.0;
165 left += screenFrame.left;
166 top += screenFrame.top;
/haiku-fatelf/src/tests/kits/net/DialUpPreflet/
H A DInterfaceUtils.cpp22 BRect screenFrame = BScreen(window).Frame(); local
23 BPoint point((screenFrame.Width() - rect.Width()) / 2.0,
24 (screenFrame.Height() - rect.Height()) / 2.0);
25 if(!screenFrame.Contains(point))
/haiku-fatelf/src/tests/kits/net/preflet/DialUpAddOn/
H A DInterfaceUtils.cpp38 BRect screenFrame = (BScreen(window).Frame()); local
39 BPoint point((screenFrame.Width() - rect.Width()) / 2.0,
40 (screenFrame.Height() - rect.Height()) / 2.0);
41 if(!screenFrame.Contains(point))
/haiku-fatelf/src/tests/servers/app/newClipping/
H A DWinBorder.cpp67 BRect screenFrame(Bounds());
68 ConvertToScreen2(&screenFrame);
69 reg.Set(screenFrame);
/haiku-fatelf/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-fatelf/src/apps/pulse/
H A DPulseWindow.cpp131 BRect screenFrame = BScreen().Frame(); local
133 if (frame.left > screenFrame.right)
134 MoveBy(screenFrame.right - frame.right - 10, 0);
138 if (frame.top > screenFrame.bottom)
139 MoveBy(0, screenFrame.bottom - frame.bottom - 10);
/haiku-fatelf/src/apps/deskbar/
H A DBarView.cpp289 BRect screenFrame = (BScreen(Window())).Frame(); local
290 if ((where.x == screenFrame.left || where.x == screenFrame.right
291 || where.y == screenFrame.top || where.y == screenFrame.bottom)
440 BRect screenFrame = (BScreen(Window())).Frame(); local
441 statusLoc.x = screenFrame.right - fDragRegion->Bounds().Width();
467 BRect screenFrame = (BScreen(Window())).Frame(); local
469 SizeWindow(screenFrame);
470 PositionWindow(screenFrame);
535 GetPreferredWindowSize(BRect screenFrame, float* width, float* height) argument
586 SizeWindow(BRect screenFrame) argument
595 PositionWindow(BRect screenFrame) argument
793 BRect screenFrame = (BScreen(Window())).Frame(); local
[all...]
/haiku-fatelf/src/apps/screenshot/
H A DScreenshot.cpp351 BRect screenFrame(BScreen().Frame());
352 if (fUtility->activeWindowFrame.left < screenFrame.left)
353 fUtility->activeWindowFrame.left = screenFrame.left;
354 if (fUtility->activeWindowFrame.top < screenFrame.top)
355 fUtility->activeWindowFrame.top = screenFrame.top;
356 if (fUtility->activeWindowFrame.right > screenFrame.right)
357 fUtility->activeWindowFrame.right = screenFrame.right;
358 if (fUtility->activeWindowFrame.bottom > screenFrame.bottom)
359 fUtility->activeWindowFrame.bottom = screenFrame.bottom;
/haiku-fatelf/src/preferences/fonts/
H A DMainWindow.cpp153 BRect screenFrame = BScreen(this).Frame(); local
157 (screenFrame.Width() - windowRect.Width()) / 2,
158 (screenFrame.Height() - windowRect.Height()) / 2);
/haiku-fatelf/src/apps/expander/
H A DPasswordAlert.cpp70 BRect screenFrame = BScreen(B_MAIN_SCREEN_ID).Frame(); local
72 pt.x = screenFrame.Width() / 2 - Bounds().Width() / 2;
73 pt.y = screenFrame.Height() / 2 - Bounds().Height() / 2;
75 if (screenFrame.Contains(pt))
/haiku-fatelf/src/preferences/media/
H A DMediaAlert.cpp71 BRect screenFrame = BScreen(B_MAIN_SCREEN_ID).Frame(); local
73 pt.x = screenFrame.Width() / 2 - Bounds().Width() / 2;
74 pt.y = screenFrame.Height() / 2 - Bounds().Height() / 2;
76 if (screenFrame.Contains(pt))
/haiku-fatelf/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-fatelf/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-fatelf/src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/test/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-fatelf/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 206 milliseconds

123