Lines Matching defs:rect

335 	BRect rect;
337 if (archive->FindRect("_trect", &rect) != B_OK)
338 rect.Set(0, 0, 0, 0);
340 _InitObject(rect, NULL, NULL);
813 // will update scroll bars if text rect changes
817 // move text rect into position and redraw.
822 // align rect
823 BRect rect(fLayoutData->leftInset, fLayoutData->topInset,
827 rect = BLayoutUtils::AlignOnRect(rect,
830 fTextRect.OffsetTo(rect.left, rect.top);
1813 // convert from text rect coordinates
1843 // special case: if point is within the text rect and PixelToLine()
1853 // convert to text rect coordinates
2188 // Update text rect position and scroll bars
2230 BTextView::SetTextRect(BRect rect)
2232 if (rect == fTextRect)
2236 rect.right = Bounds().right;
2237 rect.bottom = Bounds().bottom;
2240 _UpdateInsets(rect);
2242 fTextRect = rect;
2259 // reset text rect to bounds minus insets ...
2267 // rect)
2424 // redraw text rect and update scroll bars if bounds have changed
2503 // text rect position and scroll bars may change
2744 // Restore the text rect since we were not supposed to change it in this method.
3177 \param textRect The BTextView's text rect.
3219 // NOTE: The only places where text rect is changed:
3221 // text rect maintains constant insets, use SetInsets() to change.
3858 // don't try to compute anything if the text rect is not set
3928 // update text rect
3932 // always set text rect bottom
3970 // text rect right must be greater than left
3973 // text rect bottom must be greater than top
5007 // prevent horizontal scrolling if text rect is inside view rect
5019 // prevent vertical scrolling if text rect is inside view rect
5131 // scroll rect to start, there is room for full text
6002 BTextView::_UpdateInsets(const BRect& rect)
6012 fLayoutData->leftInset = rect.left >= bounds.left
6013 ? rect.left - bounds.left : 0;
6014 fLayoutData->topInset = rect.top >= bounds.top
6015 ? rect.top - bounds.top : 0;
6016 fLayoutData->rightInset = bounds.right >= rect.right
6017 ? bounds.right - rect.right : 0;
6018 fLayoutData->bottomInset = bounds.bottom >= rect.bottom
6019 ? bounds.bottom - rect.bottom : 0;
6021 // only add default insets if text rect is set to bounds
6022 if (rect == bounds && (fEditable || fSelectable)) {
6055 BRect rect(Bounds());
6056 rect.left += fLayoutData->leftInset;
6057 rect.top += fLayoutData->topInset;
6058 rect.right -= fLayoutData->rightInset;
6059 rect.bottom -= fLayoutData->bottomInset;
6061 return rect;
6086 BRect rect(fTextRect);
6087 rect.left -= fLayoutData->leftInset;
6088 rect.top -= fLayoutData->topInset;
6089 rect.right += fLayoutData->rightInset;
6090 rect.bottom += fLayoutData->bottomInset;
6092 return rect;