Lines Matching refs:bounds

1164 	// bounds are invalid, set them based on text
2107 const BRect bounds(Bounds());
2123 bounds.right - fLayoutData->rightInset);
2131 bounds.left + fLayoutData->leftInset);
2134 bounds.right - fLayoutData->rightInset);
2141 bounds.left + fLayoutData->leftInset);
2153 BRect bounds = Bounds();
2159 if (point.x < bounds.left)
2160 scrollBy.x = point.x - bounds.right;
2161 else if (point.x > bounds.right)
2162 scrollBy.x = point.x - bounds.left;
2167 if (bounds.right + scrollBy.x > rightMax)
2168 scrollBy.x = rightMax - bounds.right;
2170 if (bounds.left + scrollBy.x < leftMin)
2171 scrollBy.x = leftMin - bounds.left;
2177 if (point.y < bounds.top - fLayoutData->topInset)
2178 scrollBy.y = point.y - bounds.top - fLayoutData->topInset;
2179 else if (point.y + lineHeight > bounds.bottom
2181 scrollBy.y = point.y + lineHeight - bounds.bottom
2259 // reset text rect to bounds minus insets ...
2424 // redraw text rect and update scroll bars if bounds have changed
3799 BRect bounds = Bounds();
3817 int32 fromVisible = _LineAt(BPoint(0.0f, bounds.top));
3818 int32 toVisible = _LineAt(BPoint(0.0f, bounds.bottom));
3827 BRect eraseRect = bounds;
3830 if (eraseRect.bottom > eraseRect.top && eraseRect.Intersects(bounds)) {
4552 const BRect bounds(Bounds());
4557 bounds.left + fLayoutData->leftInset);
4559 bounds.right - fLayoutData->rightInset);
4560 clipRect = bounds & clipRect;
4905 BRect bounds = Bounds();
4907 if (!bounds.Contains(dragRect))
4908 dragRect = bounds & dragRect;
4996 // Scroll the view a bit if mouse is outside the view bounds
4997 BRect bounds = Bounds();
5002 if (fWhere.x > bounds.right)
5003 scrollBy.x = fWhere.x - bounds.right;
5004 else if (fWhere.x < bounds.left)
5005 scrollBy.x = fWhere.x - bounds.left; // negative value
5008 if (fTextRect.left > bounds.left && fTextRect.right < bounds.right)
5013 if (fWhere.y > bounds.bottom)
5014 scrollBy.y = fWhere.y - bounds.bottom;
5015 else if (fWhere.y < bounds.top)
5016 scrollBy.y = fWhere.y - bounds.top; // negative value
5020 if (fTextRect.top > bounds.top && fTextRect.bottom < bounds.bottom)
5032 BRect bounds(Bounds());
5038 long viewWidth = bounds.IntegerWidth();
5053 long viewHeight = bounds.IntegerHeight();
5072 BRect bounds = Bounds();
5073 _ScrollTo(bounds.left + horizontal, bounds.top + vertical);
5077 //! Scrolls to the given position, making sure not to scroll out of bounds.
5081 BRect bounds = Bounds();
5082 long viewWidth = bounds.IntegerWidth();
5083 long viewHeight = bounds.IntegerHeight();
6008 const BRect& bounds = Bounds();
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)) {