Lines Matching defs:rect

202 	BRect rect;
204 rect = widget->CalcClickRect(poseLoc, column, poseView);
206 rect = widget->CalcClickRect(pose->Location(poseView), NULL, poseView);
208 if (rect.Contains(where)) {
209 widget->MouseUp(rect, poseView, pose, where);
347 BRect rect;
349 rect = CalcRect(poseLoc, poseView);
350 rect.left += poseView->ListOffset();
351 rect.right = rect.left + iconSize;
352 rect.top = rect.bottom - iconSize;
355 rect.left = location.x;
356 rect.top = location.y;
357 rect.right = rect.left + iconSize;
358 rect.bottom = rect.top + iconSize;
361 poseView->Invalidate(rect);
487 // check icon rect, then actual icon pixel
488 BRect rect(location, location);
489 rect.right += poseView->IconSizeInt() - 1;
490 rect.bottom += poseView->IconSizeInt() - 1;
492 if (rect.Contains(where)) {
500 rect.left += (poseView->IconSizeInt() - textWidth) / 2;
501 rect.right = rect.left + textWidth;
504 rect.top = location.y + poseView->IconSizeInt();
505 rect.bottom = rect.top + ActualFontHeight(poseView);
507 return rect.Contains(where);
510 // MINI_ICON_MODE rect calc
511 BRect rect(location, location);
512 rect.right += B_MINI_ICON + kMiniIconSeparator;
513 rect.bottom += poseView->IconPoseHeight();
516 rect.right += ceil(widget->TextWidth(poseView) + 1);
518 return rect.Contains(where);
530 BRect rect = _IconRect(poseView, where);
531 if (rect.Contains(point))
554 BPose::Draw(BRect rect, const BRect& updateRect, BPoseView* poseView,
561 poseView->Invalidate(rect);
575 BRect iconRect = _IconRect(poseView, rect.LeftTop());
597 BRect widgetRect(widget->ColumnRect(rect.LeftTop(), column,
602 BRect widgetTextRect(widget->CalcRect(rect.LeftTop(),
661 rect = widget->CalcRect(location, NULL, poseView);
671 widget->Draw(rect, rect, rect.Width(), poseView, drawView,
678 rect.OffsetBy(offset);
679 drawView->InvertRect(rect);
684 drawView->FillRect(rect);
852 BRect rect(where.x + size - barWidth,where.y + yOffset,
854 view->StrokeRect(rect);
867 rect.InsetBy(1,1);
868 BRect bar(rect);
875 bar.bottom = rect.bottom;
923 BRect rect;
924 rect.left = loc.x;
925 rect.top = loc.y;
926 rect.right = loc.x + column->Offset() + column->Width();
927 rect.bottom = rect.top + poseView->ListElemHeight();
932 rect.right = widget->CalcRect(loc, poseView->FirstColumn(),
937 return rect;
946 BRect rect;
949 rect.left = location.x;
950 rect.right = rect.left + poseView->IconSizeInt();
956 rect.left += (poseView->IconSizeInt() - textWidth) / 2;
957 rect.right = rect.left + textWidth;
961 rect.top = location.y;
962 rect.bottom = rect.top + poseView->IconPoseHeight();
964 // MINI_ICON_MODE rect calc
965 rect.left = location.x;
966 rect.right = rect.left + B_MINI_ICON + kMiniIconSeparator;
969 rect.bottom = location.y
971 rect.top = rect.bottom - floorf(ActualFontHeight(poseView));
974 rect.right += ceil(widget->TextWidth(poseView) + 1);
977 return rect;
985 BRect rect;
986 rect.left = location.x + poseView->ListOffset();
987 rect.right = rect.left + size;
988 rect.top = location.y + (poseView->ListElemHeight() - size) / 2.f;
989 rect.bottom = rect.top + size;
990 return rect;