Documents > BPS V2 C++ API
BpsGraphicsPixmapItem Class Reference

Pixmap item. More...

#include <bpsgraphicsitem.h>

List of all members.

Public Types

enum  Sizing {
  SizeFixed,
  SizeFit,
  SizeFill
}
 Sizing mode. More...

Public Member Functions

Bps::Alignment alignment () const
 BpsGraphicsPixmapItem (QGraphicsItem *aParent=0)
 Constructor for the class.
QPixmap pixmap () const
int ppi () const
QRectF rect () const
Bps::Rotation rotation () const
void setAlignment (Bps::Alignment aAlignment)
 Set new alignment.
void setPixmap (const QPixmap &aPixmap)
 Set the current pixmap.
void setPpi (int aPpi)
 Set new pixel per inch value.
void setRect (const QRectF &aRect)
 Set a new rectangle for the item.
void setRotation (Bps::Rotation aRotation)
 Set new rotation.
void setSizing (Sizing aSizing)
 Set new sizing mode.
Sizing sizing () const

Detailed Description

Pixmap item.


Member Enumeration Documentation

Sizing mode.

Enumerator:
SizeFixed 

Size to fixed pixel per inch (ppi), clipping overflow.

SizeFit 

Scale to fit into rectangle keeping aspect, no larger than original size (default)

SizeFill 

Scale pixmap to completely fill the rectangle.


Constructor & Destructor Documentation

BpsGraphicsPixmapItem::BpsGraphicsPixmapItem ( QGraphicsItem *  aParent = 0)

Constructor for the class.

Parameters:
[in]aParentParent item.

Member Function Documentation

Bps::Alignment BpsGraphicsPixmapItem::alignment ( ) const
Returns:
The current alignment.
QPixmap BpsGraphicsPixmapItem::pixmap ( ) const
Returns:
The current pixmap.
int BpsGraphicsPixmapItem::ppi ( ) const
Returns:
The current pixel per inch value.
QRectF BpsGraphicsPixmapItem::rect ( ) const
Returns:
The bounding rectangle of the item.
Bps::Rotation BpsGraphicsPixmapItem::rotation ( ) const
Returns:
The current rotation.
void BpsGraphicsPixmapItem::setAlignment ( Bps::Alignment  aAlignment)

Set new alignment.

Parameters:
[in]aAlignmentThe new alignment to set.
void BpsGraphicsPixmapItem::setPixmap ( const QPixmap &  aPixmap)

Set the current pixmap.

Parameters:
[in]aPixmapThe new pixmap to set.
void BpsGraphicsPixmapItem::setPpi ( int  aPpi)

Set new pixel per inch value.

Parameters:
[in]aPpiThe new ppi set.
void BpsGraphicsPixmapItem::setRect ( const QRectF &  aRect)

Set a new rectangle for the item.

Parameters:
[in]aRectThe new rectangle.
void BpsGraphicsPixmapItem::setRotation ( Bps::Rotation  aRotation)

Set new rotation.

Parameters:
[in]aRotationThe new rotation to set.
void BpsGraphicsPixmapItem::setSizing ( Sizing  aSizing)

Set new sizing mode.

Parameters:
[in]aSizingThe new sizing mode.
Sizing BpsGraphicsPixmapItem::sizing ( ) const
Returns:
The current sizing mode.

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