Lines Matching refs:screenFrame

183 	BRect screenFrame = screen.Frame().InsetBySelf(2, 2);
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.bottom - where.y
199 && screenFrame.bottom - where.y > screenFrame.Height() / 2) {
200 size.height = screenFrame.bottom - where.y - offset.y;
213 if (location.x < screenFrame.left) {
214 location.x = screenFrame.left;
220 if (location.x < screenFrame.left) {
221 location.x = screenFrame.left;
223 } else if (location.x + size.width > screenFrame.right) {
224 location.x = screenFrame.right - size.width;
231 if (location.x + size.width > screenFrame.right) {
232 location.x = screenFrame.right - size.width;
252 if (location.y < screenFrame.top) {
262 if (location.y < screenFrame.top)
263 location.y = screenFrame.top;
264 else if (location.y + size.height > screenFrame.bottom)
265 location.y = screenFrame.bottom - size.height;
270 if (location.y + size.height > screenFrame.bottom) {
285 if (screenFrame.left > where.x) {
286 size.width -= where.x - screenFrame.left;
287 where.x = screenFrame.left;
288 } else if (screenFrame.right < where.x + size.width)
289 size.width = screenFrame.right - where.x;
291 if (screenFrame.top > where.y) {
292 size.height -= where.y - screenFrame.top;
293 where.y = screenFrame.top;
294 } else if (screenFrame.bottom < where.y + size.height)
295 size.height -= screenFrame.bottom - where.y;