|
Public Member Functions |
| | BRect (const BRect &r) |
| | Copy constructor.
|
| | BRect (double xmin, double ymin, double xmax, double ymax) |
| | Constructor.
|
| | BRect () |
| | Default constructor.
|
| void | Clear (void) |
| | Reset the rectangle to an uninitialized state.
|
| virtual size_t | ComputeSize (void) const |
| | Computes the size of the BByteArray required to store this object.
|
| virtual bool | Contains (const BRect &area) const |
| | Determines if this BRect completely contains this specified BRect.
|
| virtual bool | Contains (const double &x, const double &y) const |
| | Determines if this BRect contains the specified point.
|
| virtual bool | Contains (const BPoint &point) const |
| | Determines if this BRect contains the specified BPoint.
|
| virtual void | FromByteArray (const BByteArray &bytes, size_t &startPos) |
| | Initializes an instance of this object from a BByteArray.
|
| BPoint | GetBottomLeft (void) const |
| | Gets the BPoint that represents the bottom left corner of this BRect.
|
| BPoint | GetBottomRight (void) const |
| | Gets the BPoint that represents the bottom right corner of this BRect.
|
| BPoint | GetCenter (void) const |
| | Gets the center point of this BRect.
|
| double | GetDiagonal () const |
| | Gets the distance from the top left corner to the bottom right corner.
|
| double | GetHeight (void) const |
| | Gets the height of this BRect.
|
| double | GetMaxX (void) const |
| | Gets the maximum X value.
|
| double | GetMaxY (void) const |
| | Gets the maximum Y value.
|
| double | GetMinX (void) const |
| | Gets the minimum X value.
|
| double | GetMinY (void) const |
| | Gets the minimum Y value.
|
| BPoint | GetTopLeft (void) const |
| | Gets the BPoint that represents the top left corner of this BRect.
|
| BPoint | GetTopRight (void) const |
| | Gets the BPoint that represents the top right corner of this BRect.
|
| double | GetWidth (void) const |
| | Gets the width of this BRect.
|
| virtual bool | Intersects (const BRect &rect) const |
| | Determines whether or not the specified BRect intersects this BRect.
|
| bool | IsValid (void) const |
| | Indicates whether or not this BRect is valid.
|
| void | Normalize () |
| | Ensures that this BRect is valid, and swaps the minimum and maximum values if it is necessary to make this BRect valid.
|
| bool | operator!= (const BRect &rhs) |
| | Inequality operator.
|
| BRect & | operator= (const BRect &rhs) |
| | Assignment operator.
|
| bool | operator== (const BRect &rhs) |
| | Equality operator.
|
| void | SetMaxX (double val) |
| | Sets the maximum X value.
|
| void | SetMaxY (double val) |
| | Sets the maximum Y value.
|
| void | SetMinX (double val) |
| | Sets the minimum X value.
|
| void | SetMinY (double val) |
| | Sets the minimum Y value.
|
| virtual BByteArray | ToByteArray (void) const |
| | Stores this object in a BByteArray.
|
| virtual void | Transform (const BTransform &cst) |
| | Transforms the coordinates in this BRect to a different coordinate system.
|
| virtual void | TransformReverse (const BTransform &cst) |
| | Transforms the coordinates in this BRect to a different coordinate system using the "reverse" of the BTransform.
|
| void | Union (double x, double y) |
| | If the specified point does not lie within the extents of this BRect, the extents will be expanded to ensure that the point is contained within this BRect.
|
| void | Union (const BRect &rect) |
| | If the specified BRect does not lie completely within the extents of this BRect, the extents will be expanded to ensure that the BRect is completely contained in this BRect.
|
| void | Union (const BPoint &pt) |
| | If the specified BPoint does not lie within the extents of this BRect, the extents will be expanded to ensure that the BPoint is contained within this BRect.
|
| virtual | ~BRect () |
| | Destructor.
|
Static Public Member Functions |
| static size_t | SizeOf (void) |
| | Returns the size of a BRect in bytes.
|