Lines Matching refs:rect

151 	// maximum size of the transparent drag bitmap, use a drag rect
318 BRect rect(Frame());
319 rect.bottom = rect.top + kTitleViewHeight;
320 fTitleView = new BTitleView(rect, this);
2051 BRect rect(bounds);
2052 rect.top = rect.bottom + 1;
2053 rect.bottom = rect.top + (float)B_H_SCROLL_BAR_HEIGHT;
2054 rect.right++;
2055 fHScrollBar = new BHScrollBar(rect, "HScrollBar", this);
2062 rect = bounds;
2063 rect.left = rect.right + 1;
2064 rect.right = rect.left + (float)B_V_SCROLL_BAR_WIDTH;
2065 rect.bottom++;
2066 fVScrollBar = new BScrollBar(rect, "VScrollBar", this, 0, 100, B_VERTICAL);
2089 BRect rect(Frame());
2090 rect.right = rect.left + kCountViewWidth;
2091 rect.top = rect.bottom + 1;
2092 rect.bottom = rect.top + (float)B_H_SCROLL_BAR_HEIGHT - 1;
2093 fCountView = new BCountView(rect, this);
2642 BRect rect(Bounds());
2643 rect.left = offset;
2644 Invalidate(rect);
2703 BRect rect(Bounds());
2708 int32 startIndex = (int32)(rect.top / fListElemHeight);
2717 if (loc.y > rect.bottom)
2733 rect.left = offset;
2734 Invalidate(rect);
3484 BRect rect(pose->CalcRect(this));
3485 BPoint deltaFromBounds(fHintLocation - rect.LeftTop());
3487 // make pose rect a little bigger to ensure space between poses
3488 rect.InsetBy(-3, 0);
3493 while (SlotOccupied(rect, viewBounds)
3495 || (checkValidLocation && !IsValidLocation(rect))) {
3496 NextSlot(pose, rect, viewBounds);
3499 if (checkValidLocation && !rect.Intersects(viewBounds)) {
3502 rect = pose->CalcRect(this);
3507 rect.InsetBy(3, 0);
3511 pose->SetLocation(rect.LeftTop() + deltaFromBounds, this);
3522 BRect rect(pose->CalcRect(this));
3523 rect.InsetBy(-3, 0);
3524 return IsValidLocation(rect);
3529 BPoseView::IsValidLocation(const BRect& rect)
3535 if (!Bounds().Contains(rect))
3542 if (deskbarFrame.Intersects(rect))
3550 if (childFrame.Intersects(rect))
3649 BRect rect(pose->CalcRect(this));
3650 if (!rect.Intersects(bounds)) {
3654 Invalidate(rect);
3700 BRect rect(fVSPoseList->ItemAt(index)->CalcRect(this));
3701 if (poseRect.Intersects(rect))
6845 fSelectionRectInfo.rect = BRect(point, point - BPoint(1, 1));
6849 StrokeRect(fSelectionRectInfo.rect, B_MIXED_COLORS);
6853 fSelectionRectInfo.lastRect = fSelectionRectInfo.rect;
6881 // erase last rect
6884 StrokeRect(fSelectionRectInfo.rect, B_MIXED_COLORS);
6888 fSelectionRectInfo.rect.top = std::min(point.y,
6890 fSelectionRectInfo.rect.left = std::min(point.x,
6892 fSelectionRectInfo.rect.bottom = std::max(point.y,
6894 fSelectionRectInfo.rect.right = std::max(point.x,
6901 SelectPosesListMode(fSelectionRectInfo.rect,
6904 SelectPosesIconMode(fSelectionRectInfo.rect,
6910 // draw new rect
6913 StrokeRect(fSelectionRectInfo.rect, B_MIXED_COLORS);
6919 bool sameWidth = fSelectionRectInfo.rect.Width()
6921 bool sameHeight = fSelectionRectInfo.rect.Height()
6924 updateRegion1.Include(fSelectionRectInfo.rect);
6928 updateRegion2.Exclude(fSelectionRectInfo.rect.InsetByCopy(
6931 BRect unionRect = fSelectionRectInfo.rect
6940 fSelectionRectInfo.lastRect = fSelectionRectInfo.rect;
6959 // do final erase of selection rect
6962 StrokeRect(fSelectionRectInfo.rect, B_MIXED_COLORS);
6964 fSelectionRectInfo.rect.Set(0, 0, -1, -1);
6966 Invalidate(fSelectionRectInfo.rect);
6967 fSelectionRectInfo.rect.Set(0, 0, -1, -1);
7287 // setup tracking rect by unioning all selected pose rects
7373 BRect rect(inner);
7374 rect.OffsetTo(B_ORIGIN);
7376 BBitmap* bitmap = new BBitmap(rect, B_RGBA32, true);
7445 FadeRGBA32Horizontal(bits, width, int32(rect.bottom), 0, 64);
7447 FadeRGBA32Horizontal(bits, width, int32(rect.bottom),
7448 int32(rect.right), int32(rect.right) - 64);
7451 FadeRGBA32Vertical(bits, width, int32(rect.bottom), 0, 64);
7453 FadeRGBA32Vertical(bits, width, int32(rect.bottom),
7454 int32(rect.bottom), int32(rect.bottom) - 64);
7471 // get starting rect of clicked pose
7489 // get starting rect of clicked pose
7518 // collect all the poses which are enclosed inside the selection rect
7586 // collect all the poses which are enclosed inside the selection rect
7688 // Things will get odd if we don't 'fix' the selection rect.
7701 // If the selection rect is not at least 1 pixel high/wide, things
8001 BPoseView::DrawOpenAnimation(BRect rect)
8005 BRect box1(rect);
8006 box1.InsetBy(rect.Width() / 2 - 2, rect.Height() / 2 - 2);
8542 BPoseView::RemoveFromExtent(const BRect &rect)
8546 if (rect.left <= fExtent.left || rect.right >= fExtent.right
8547 || rect.top <= fExtent.top || rect.bottom >= fExtent.bottom)
8567 BRect rect;
8572 rect.left = rect.top = 0;
8573 rect.right = column->Offset() + column->Width()
8575 rect.bottom = fListElemHeight * CurrentPoseList()->CountItems();
8577 rect.Set(LeftTop().x, LeftTop().y, LeftTop().x, LeftTop().y);
8580 rect = fExtent;
8581 rect.left -= fOffset.x;
8582 rect.top -= fOffset.y;
8583 rect.right += fOffset.x;
8584 rect.bottom += fOffset.y;
8585 if (!rect.IsValid())
8586 rect.Set(LeftTop().x, LeftTop().y, LeftTop().x, LeftTop().y);
8589 return rect;
8700 BRect rect = CalcPoseRect(pose, index, fullDraw);
8704 Invalidate(rect);
8706 pose->Draw(rect, rect, this, fullDraw);
8777 if (fTransparentSelection && fSelectionRectInfo.rect.IsValid()) {
8780 if (fSelectionRectInfo.rect.Width() == 0
8781 || fSelectionRectInfo.rect.Height() == 0) {
8782 StrokeLine(fSelectionRectInfo.rect.LeftTop(),
8783 fSelectionRectInfo.rect.RightBottom());
8785 StrokeRect(fSelectionRectInfo.rect);
8786 BRect interior = fSelectionRectInfo.rect;
9746 // Force selection rect update to account for the new scrolled coords