#include <BRoundedRectangle.h>

Public Member Functions | |
| BRoundRectangle (const BRoundRectangle &rect) | |
| Copy constructor. | |
| BRoundRectangle (const BRect &rect, double cornerRadius) | |
| Constructor. | |
| BRoundRectangle (void) | |
| Default constructor. | |
| virtual BGeometry * | Clone (void) const |
| Creates a deep-copy of this object. | |
| virtual size_t | ComputeSize (void) const |
| Computes the size of the BByteArray required to store this object. | |
| virtual void | FromByteArray (const BByteArray &bytes, size_t &startPos) |
| Initializes an instance of this object from a BByteArray. | |
| double | GetCornerRadius (void) const |
| Gets the corner radius. | |
| virtual BByteArray | ToByteArray (void) const |
| Stores this object in a BByteArray. | |
| virtual | ~BRoundRectangle (void) |
| Destructor. | |
Protected Attributes | |
| double | m_cornerRadius |
| The corner radius. | |
| BRoundRectangle | ( | void | ) | [inline] |
Default constructor.
| BRoundRectangle | ( | const BRect & | rect, | |
| double | cornerRadius | |||
| ) |
Constructor.
| rect | The BRect that gives the extents for this BRoundRectangle. | |
| cornerRadius | The radius value to be used for rounded corners. |
| BRoundRectangle | ( | const BRoundRectangle & | rect | ) | [inline] |
| virtual ~BRoundRectangle | ( | void | ) | [inline, virtual] |
Destructor.
| virtual BGeometry* Clone | ( | void | ) | const [inline, virtual] |
Creates a deep-copy of this object.
Reimplemented from BPolygon.
| virtual size_t ComputeSize | ( | void | ) | const [inline, virtual] |
Computes the size of the BByteArray required to store this object.
Reimplemented from BPolygon.
| virtual void FromByteArray | ( | const BByteArray & | bytes, | |
| size_t & | startPos | |||
| ) | [virtual] |
Initializes an instance of this object from a BByteArray.
| bytes | The BByteArray containing the byte representation of the object. | |
| startPos | The position in the BByteArray where the byte representation begins. This value will be updated to point to the byte past the end of this object in the byte array. |
Reimplemented from BPolygon.
| double GetCornerRadius | ( | void | ) | const [inline] |
Gets the corner radius.
| virtual BByteArray ToByteArray | ( | void | ) | const [virtual] |
Stores this object in a BByteArray.
Reimplemented from BPolygon.
double m_cornerRadius [protected] |
The corner radius.