Lines Matching defs:rect

408 	BRect rect = Bounds();
409 be_control_look->DrawScrollBarBorder(this, rect, updateRect, base, flags,
413 rect.InsetBy(1, 1);
416 BRect thumbBG = rect;
418 BRect buttonFrame(rect.left, rect.top,
419 rect.left + rect.Height(), rect.bottom);
428 buttonFrame.OffsetBy(rect.Height() + 1, 0.0f);
435 buttonFrame.OffsetTo(rect.right - ((rect.Height() * 2) + 1),
436 rect.top);
443 thumbBG.left += rect.Height() * 2 + 2;
444 thumbBG.right -= rect.Height() * 2 + 2;
446 thumbBG.left += rect.Height() + 1;
447 thumbBG.right -= rect.Height() + 1;
450 buttonFrame.OffsetTo(rect.right - rect.Height(), rect.top);
457 BRect buttonFrame(rect.left, rect.top, rect.right,
458 rect.top + rect.Width());
467 buttonFrame.OffsetBy(0, rect.Width() + 1);
474 buttonFrame.OffsetTo(rect.left, rect.bottom
475 - ((rect.Width() * 2) + 1));
482 thumbBG.top += rect.Width() * 2 + 2;
483 thumbBG.bottom -= rect.Width() * 2 + 2;
485 thumbBG.top += rect.Width() + 1;
486 thumbBG.bottom -= rect.Width() + 1;
489 buttonFrame.OffsetTo(rect.left, rect.bottom - rect.Width());
498 rect = fPrivateData->fThumbFrame;
501 rect.left - 1, thumbBG.bottom);
502 BRect rightOfThumb(rect.right + 1, thumbBG.top,
508 thumbBG.right, rect.top - 1);
509 BRect bottomOfThumb(thumbBG.left, rect.bottom + 1,
516 rect = fPrivateData->fThumbFrame;
517 be_control_look->DrawScrollBarThumb(this, rect, updateRect,
1325 BRect rect(bounds.left, bounds.top,
1329 if (rect.Contains(where))
1333 rect.OffsetBy(0.0, buttonSize);
1334 if (rect.Contains(where))
1337 rect.OffsetTo(bounds.left, bounds.bottom - 2 * buttonSize);
1338 if (rect.Contains(where))
1341 rect.OffsetTo(bounds.left, bounds.bottom - buttonSize);
1342 if (rect.Contains(where))
1345 if (rect.Contains(where))
1349 rect.OffsetBy(buttonSize, 0.0);
1350 if (rect.Contains(where))
1353 rect.OffsetTo(bounds.right - 2 * buttonSize, bounds.top);
1354 if (rect.Contains(where))
1357 rect.OffsetTo(bounds.right - buttonSize, bounds.top);
1358 if (rect.Contains(where))
1376 BRect rect(bounds.left, bounds.top,
1385 rect.OffsetBy(0.0, buttonSize);
1389 rect.OffsetTo(bounds.left, bounds.bottom - 2 * buttonSize + 1);
1393 rect.OffsetTo(bounds.left, bounds.bottom - buttonSize + 1);
1402 rect.OffsetBy(buttonSize, 0.0);
1406 rect.OffsetTo(bounds.right - 2 * buttonSize + 1, bounds.top);
1410 rect.OffsetTo(bounds.right - buttonSize + 1, bounds.top);
1415 return rect;