Documents > BPS V2 C++ API
BpsGraphicsRectItem Class Reference

Rectangle item with roundness. More...

#include <bpsgraphicsitem.h>

List of all members.

Public Member Functions

 BpsGraphicsRectItem (QGraphicsItem *aParent=0)
 Constructor for the class.
QRectF rect () const
int roundness () const
void setRect (const QRectF &aRect)
 Set a new rectangle for the item.
void setRoundness (int aRoundness)
 Define a new roundness for the rectangle corners.

Detailed Description

Rectangle item with roundness.


Constructor & Destructor Documentation

BpsGraphicsRectItem::BpsGraphicsRectItem ( QGraphicsItem *  aParent = 0)

Constructor for the class.

Parameters:
[in]aParentParent item.

Member Function Documentation

QRectF BpsGraphicsRectItem::rect ( ) const
Returns:
The rectangle of the item.
int BpsGraphicsRectItem::roundness ( ) const
Returns:
The current roundness factor.
void BpsGraphicsRectItem::setRect ( const QRectF &  aRect)

Set a new rectangle for the item.

Parameters:
[in]aRectThe new rectangle.
void BpsGraphicsRectItem::setRoundness ( int  aRoundness)

Define a new roundness for the rectangle corners.

The roundness is expressed in percent and can range from 0 to 99, where 0 is no roundness and 99 is maximum. The radius is calculated as percentage of the half of the shorter side of the rectangle.

Parameters:
[in]aRoundnessThe new roundness to set.

The documentation for this class was generated from the following file: