Lines Matching refs:location
207 BPoint location = where;
212 location.x -= size.width + offset.x;
213 if (location.x < screenFrame.left) {
214 location.x = screenFrame.left;
219 location.x -= size.width / 2 - offset.x;
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;
230 location.x += offset.x;
231 if (location.x + size.width > screenFrame.right) {
232 location.x = screenFrame.right - size.width;
251 location.y = where.y - size.height - offset.y;
252 if (location.y < screenFrame.top) {
261 location.y -= size.height / 2 - offset.y;
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;
269 location.y = where.y + offset.y;
270 if (location.y + size.height > screenFrame.bottom) {
281 where = location;
324 // figure out size and location