Simple text item. More...
#include <bpsgraphicsitem.h>
Public Member Functions | |
| Bps::Alignment | alignment () const |
| BpsGraphicsSimpletextItem (QGraphicsItem *aParent=0) | |
| Constructor for the class. | |
| QColor | color () const |
| Bps::Direction | direction () const |
| QFont | font () const |
| BpsMargins | margins () const |
| QRectF | rect () const |
| int | roundness () const |
| void | setAlignment (Bps::Alignment aAlignment) |
| Set new alignment withing the bounding rectangle. | |
| void | setColor (const QColor &aColor) |
| Set a new text color (default = Qt::black). | |
| void | setDirection (Bps::Direction aDirection) |
| Set a new direction. | |
| void | setFont (const QFont &aFont) |
| Set a new font. | |
| void | setMargins (const BpsMargins &aMargins) |
| Set new margins. | |
| void | setRect (const QRectF &aRect) |
| Set a new rectangle for the item. | |
| void | setRoundness (int aRoundness) |
| Define a new roundness for the rectangle corners. | |
| void | setText (const QString &aText) |
| Set a new text. | |
| QString | text () const |
Simple text item.
Simple text item allows plain text in a fixed rectangle. It has options for printing in all four directions, margins, a frame, background, and positioning within the frame rectangle.
| BpsGraphicsSimpletextItem::BpsGraphicsSimpletextItem | ( | QGraphicsItem * | aParent = 0 | ) |
Constructor for the class.
| [in] | aParent | Parent item. |
| Bps::Alignment BpsGraphicsSimpletextItem::alignment | ( | ) | const |
| QColor BpsGraphicsSimpletextItem::color | ( | ) | const |
| Bps::Direction BpsGraphicsSimpletextItem::direction | ( | ) | const |
| QFont BpsGraphicsSimpletextItem::font | ( | ) | const |
| BpsMargins BpsGraphicsSimpletextItem::margins | ( | ) | const |
| QRectF BpsGraphicsSimpletextItem::rect | ( | ) | const |
| int BpsGraphicsSimpletextItem::roundness | ( | ) | const |
| void BpsGraphicsSimpletextItem::setAlignment | ( | Bps::Alignment | aAlignment | ) |
Set new alignment withing the bounding rectangle.
| [in] | aAlignment | The new alignment to set. |
| void BpsGraphicsSimpletextItem::setColor | ( | const QColor & | aColor | ) |
Set a new text color (default = Qt::black).
| [in] | aColor | The new color. |
| void BpsGraphicsSimpletextItem::setDirection | ( | Bps::Direction | aDirection | ) |
Set a new direction.
| [in] | aDirection | The new direction to set. |
| void BpsGraphicsSimpletextItem::setFont | ( | const QFont & | aFont | ) |
Set a new font.
| [in] | aFont | The new font. |
| void BpsGraphicsSimpletextItem::setMargins | ( | const BpsMargins & | aMargins | ) |
Set new margins.
| [in] | aMargins | The new margins to set. |
| void BpsGraphicsSimpletextItem::setRect | ( | const QRectF & | aRect | ) |
Set a new rectangle for the item.
| [in] | aRect | The new rectangle. |
| void BpsGraphicsSimpletextItem::setRoundness | ( | int | aRoundness | ) |
Define a new roundness for the rectangle corners.
The roundness is expressed in percent and can range from 0 to 100, where 0 is no roundness and 100 is maximum. The radius is calculated as percentage of the half of the shorter side of the rectangle.
| [in] | aRoundness | The new roundness to set. |
| void BpsGraphicsSimpletextItem::setText | ( | const QString & | aText | ) |
Set a new text.
| [in] | aText | The new text to set. |
| QString BpsGraphicsSimpletextItem::text | ( | ) | const |