Documents > BPS V2 C++ API
BpsGraphicsBarcodeItem Class Reference

Barcode item. More...

#include <bpsgraphicsitem.h>

List of all members.

Public Member Functions

Bps::Barcode barcodeType () const
 BpsGraphicsBarcodeItem (QGraphicsItem *aParent=0)
 Constructor for the class.
QString codeText () const
QColor color () const
Bps::Direction direction () const
QFont font () const
QString humanText () const
qreal module () const
QRectF rect () const
void setBarcodeType (Bps::Barcode aBarcodeType)
 Set a new barcode type.
void setColor (const QColor &aColor)
 Set a new bar color (default = Qt::black).
void setDirection (Bps::Direction aDirection)
 Set a new direction.
void setFont (const QFont &aFont)
 Set a new font for the text line.
void setModule (qreal aModule)
 Define a new module.
void setRect (const QRectF &aRect)
 Set a new rectangle for the item.
void setText (const QString &aText)
 Set a new barcode text.
void setTextprinted (bool aEnable)
 Enable and disable text line printing.
QString text () const
bool textprinted () const

Detailed Description

Barcode item.


Constructor & Destructor Documentation

BpsGraphicsBarcodeItem::BpsGraphicsBarcodeItem ( QGraphicsItem *  aParent = 0)

Constructor for the class.

Parameters:
[in]aParentParent item.

Member Function Documentation

Bps::Barcode BpsGraphicsBarcodeItem::barcodeType ( ) const
Returns:
The current barcode type.
QString BpsGraphicsBarcodeItem::codeText ( ) const
Returns:
The text used for the barcode.
QColor BpsGraphicsBarcodeItem::color ( ) const
Returns:
The current bar color.
Bps::Direction BpsGraphicsBarcodeItem::direction ( ) const
Returns:
The current direction.
QFont BpsGraphicsBarcodeItem::font ( ) const
Returns:
The current text font.
QString BpsGraphicsBarcodeItem::humanText ( ) const
Returns:
The text used for human readable representation.
qreal BpsGraphicsBarcodeItem::module ( ) const
Returns:
The current barcode module.
QRectF BpsGraphicsBarcodeItem::rect ( ) const
Returns:
The rectangle of the item.
void BpsGraphicsBarcodeItem::setBarcodeType ( Bps::Barcode  aBarcodeType)

Set a new barcode type.

Parameters:
[in]aBarcodeTypeThe new barcode type to set.
void BpsGraphicsBarcodeItem::setColor ( const QColor &  aColor)

Set a new bar color (default = Qt::black).

Parameters:
[in]aColorThe new color.
void BpsGraphicsBarcodeItem::setDirection ( Bps::Direction  aDirection)

Set a new direction.

Parameters:
[in]aDirectionThe new direction to set.
void BpsGraphicsBarcodeItem::setFont ( const QFont &  aFont)

Set a new font for the text line.

Parameters:
[in]aFontThe new font.
void BpsGraphicsBarcodeItem::setModule ( qreal  aModule)

Define a new module.

Parameters:
[in]aModuleThe new module to set.
void BpsGraphicsBarcodeItem::setRect ( const QRectF &  aRect)

Set a new rectangle for the item.

Parameters:
[in]aRectThe new rectangle.
void BpsGraphicsBarcodeItem::setText ( const QString &  aText)

Set a new barcode text.

Parameters:
[in]aTextThe new text to set.
void BpsGraphicsBarcodeItem::setTextprinted ( bool  aEnable)

Enable and disable text line printing.

Parameters:
[in]aEnableTrue to enable, false to disable.
QString BpsGraphicsBarcodeItem::text ( ) const
Returns:
The current text as set by application.
bool BpsGraphicsBarcodeItem::textprinted ( ) const
Returns:
True if the text line is printed.

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