BRect Class Summary


Method Summary

Method Description
!= Compares the components of one BRect with another for inequality
& Returns the intersection of two BRects
= Copies the coordinates of one BRect to another
== Compares the components of one BRect with another for equality
Contains() Tests whether a BPoint or a BRect lies entirely within the rectangle
Height() Returns the difference between the top and bottom coordinates
InsetBy() Shrinks rectangle on all sides by given amounts
IntegerHeight() Returns height of the rectangle, rounded up to the next whole number
IntegerWidth() Returns width of the rectangle, rounded up to the next whole number
Intersects() Tests whether a BRect intersects the rectangle
IsValid() Tests whether the rectangle's coordinates are valid
LeftBottom() Returns the coordinates of the left bottom corner of the rectangle
LeftTop() Returns the coordinates of the left top corner of the rectangle
OffsetBy() Repositions the rectangle by a given amount
OffsetTo() Moves the rectangle to a given position
PrintToStream() Prints the coordinates of the rectangle to standard output
BRect() Constructor
RightBottom() Returns the coordinates of the right bottom corner of the rectangle
RightTop() Returns the coordinates of the right top corner of the rectangle
Set() Sets new values for the rectangle's coordinates
SetLeftBottom() Sets the coordinates of the left bottom corner of the rectangle
SetLeftTop() Sets the coordinates of the left top corner of the rectangle
SetRightBottom() Sets the coordinates of the right bottom corner of the rectangle
SetRightTop() Sets the coordinates of the right top corner of the rectangle
Width() Returns the difference between the left and right coordinates
| Returns the smallest rectangle enclosing two BRects





The Be Book, in lovely HTML, for BeOS Release 4.

Copyright © 1998 Be, Inc. All rights reserved.

Last modified December 23, 1998.