LunaSysMgr
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Pixmap9TileObject Class Reference

#include <pixmap9tileobject.h>

Inheritance diagram for Pixmap9TileObject:
[legend]
Collaboration diagram for Pixmap9TileObject:
[legend]

Public Member Functions

 Pixmap9TileObject ()
 
 Pixmap9TileObject (const quint32 width, const quint32 height, const QString &imageFilename, const QVector< QRect > &sliceCoordinates, PixmapTilingStyle::Enum sideTilingStyle=PixmapTilingStyle::Scale, PixmapTilingStyle::Enum centerTilingStyle=PixmapTilingStyle::Scale, const char *format=0, Qt::ImageConversionFlags flags=Qt::AutoColor)
 
 Pixmap9TileObject (const quint32 width, const quint32 height, const QString &imageFilename, const quint32 topIn, const quint32 bottomIn, const quint32 leftIn, const quint32 rightIn, PixmapTilingStyle::Enum sideTilingStyle=PixmapTilingStyle::Scale, PixmapTilingStyle::Enum centerTilingStyle=PixmapTilingStyle::Scale, const char *format=0, Qt::ImageConversionFlags flags=Qt::AutoColor)
 
virtual ~Pixmap9TileObject ()
 
virtual QSize size () const
 
virtual int width () const
 
virtual int height () const
 
virtual QSizeF sizeF () const
 
virtual void paint (QPainter *painter, const QPointF &targetOriginInPainterCS)
 
virtual bool resize (const QSize &size)
 
virtual bool resize (const quint32 w, const quint32 h)
 
virtual bool retile (const quint32 topIn, const quint32 bottomIn, const quint32 leftIn, const quint32 rightIn, PixmapTilingStyle::Enum sideTilingStyle=PixmapTilingStyle::Scale, PixmapTilingStyle::Enum centerTilingStyle=PixmapTilingStyle::Scale)
 
virtual bool retile (const QVector< QRect > &sliceCoordinates, PixmapTilingStyle::Enum sideTilingStyle=PixmapTilingStyle::Scale, PixmapTilingStyle::Enum centerTilingStyle=PixmapTilingStyle::Scale)
 
- Public Member Functions inherited from PixmapObject
 PixmapObject ()
 
 PixmapObject (int width, int height)
 
 PixmapObject (const QString &fileName, const char *format=0, Qt::ImageConversionFlags flags=Qt::AutoColor)
 
 PixmapObject (const QString &fileName, const QSize &desiredSize, bool limitOnly=true, const char *format=0, Qt::ImageConversionFlags flags=Qt::AutoColor)
 
virtual PixmapObjectclone ()
 
virtual ~PixmapObject ()
 
virtual bool valid () const
 
virtual QUuid id () const
 
virtual void setId (const QUuid &uid)
 
virtual void setId (const QString &quuid_as_string)
 
virtual quint64 sizeOf () const
 
virtual bool isSquare () const
 
virtual QSize nativeSize () const
 
virtual int nativeWidth () const
 
virtual int nativeHeight () const
 
virtual QSizeF nativeSizeF () const
 
virtual void fill (const QColor &c)
 
virtual void paint (QPainter *painter)
 
virtual void paint (QPainter *painter, const QRectF &targetRectInPainterCS)
 
virtual void paint (QPainter *painter, const QRect &targetRectInPainterCS, const QRect &sourceRect)
 
virtual QPoint translatePaintTargetPointToPixmapPoint (const QPoint &point, const QRect &sourceRect, const QRect &destRect)
 
virtual QVector< qint32 > translatePaintTargetPointToPixmapPointEx (const QPoint &point, const QRect &sourceRect, const QRect &destRect)
 
virtual QPixmap * operator-> () const
 
virtual QPixmap & operator* () const
 
virtual operator QPixmap * () const
 
virtual QPixmap * data () const
 

Static Public Member Functions

static bool makeSlices (const quint32 width, const quint32 height, const quint32 topIn, const quint32 bottomIn, const quint32 leftIn, const quint32 rightIn, QVector< QRect > &r_slices, QRect &r_inCoords)
 
- Static Public Member Functions inherited from PixmapObject
static quint64 sizeOfPixmap (const QPixmap *p_pixmap)
 
static quint64 sizeOfPixmap (quint32 width, quint32 height)
 

Protected Member Functions

bool createDestinationRectangles ()
 
- Protected Member Functions inherited from PixmapObject
 PixmapObject (QPixmap *p_pixmap)
 
 PixmapObject (const QUuid &specificUid)
 

Protected Attributes

QSize m_destinationSizeRequested
 
QRect m_inCoords
 
QRectF m_geom
 
QRectF m_boundingRect
 
QVector< QRect > m_sourceRects
 
QVector< QRectF > m_destRects
 
PixmapTilingStyle::Enum m_sideTilingStyle
 
PixmapTilingStyle::Enum m_centerTilingStyle
 
- Protected Attributes inherited from PixmapObject
QUuid m_uid
 
QPixmap * pm
 
bool m_destroyEmitted
 

Friends

class PixPager
 
class PixPagerPage
 
class PixPagerAtlasPage
 

Additional Inherited Members

- Signals inherited from PixmapObject
void signalObjectDestroyed ()
 

Constructor & Destructor Documentation

Pixmap9TileObject::Pixmap9TileObject ( )
Pixmap9TileObject::Pixmap9TileObject ( const quint32  width,
const quint32  height,
const QString &  imageFilename,
const QVector< QRect > &  sliceCoordinates,
PixmapTilingStyle::Enum  sideTilingStyle = PixmapTilingStyle::Scale,
PixmapTilingStyle::Enum  centerTilingStyle = PixmapTilingStyle::Scale,
const char *  format = 0,
Qt::ImageConversionFlags  flags = Qt::AutoColor 
)
Pixmap9TileObject::Pixmap9TileObject ( const quint32  width,
const quint32  height,
const QString &  imageFilename,
const quint32  topIn,
const quint32  bottomIn,
const quint32  leftIn,
const quint32  rightIn,
PixmapTilingStyle::Enum  sideTilingStyle = PixmapTilingStyle::Scale,
PixmapTilingStyle::Enum  centerTilingStyle = PixmapTilingStyle::Scale,
const char *  format = 0,
Qt::ImageConversionFlags  flags = Qt::AutoColor 
)
Pixmap9TileObject::~Pixmap9TileObject ( )
virtual

Member Function Documentation

bool Pixmap9TileObject::createDestinationRectangles ( )
protected
int Pixmap9TileObject::height ( ) const
virtual

Reimplemented from PixmapObject.

bool Pixmap9TileObject::makeSlices ( const quint32  width,
const quint32  height,
const quint32  topIn,
const quint32  bottomIn,
const quint32  leftIn,
const quint32  rightIn,
QVector< QRect > &  r_slices,
QRect &  r_inCoords 
)
static
void Pixmap9TileObject::paint ( QPainter *  painter,
const QPointF &  targetOriginInPainterCS 
)
virtual

Reimplemented from PixmapObject.

bool Pixmap9TileObject::resize ( const QSize &  size)
virtual

Reimplemented from PixmapObject.

bool Pixmap9TileObject::resize ( const quint32  w,
const quint32  h 
)
virtual

Reimplemented from PixmapObject.

bool Pixmap9TileObject::retile ( const quint32  topIn,
const quint32  bottomIn,
const quint32  leftIn,
const quint32  rightIn,
PixmapTilingStyle::Enum  sideTilingStyle = PixmapTilingStyle::Scale,
PixmapTilingStyle::Enum  centerTilingStyle = PixmapTilingStyle::Scale 
)
virtual
bool Pixmap9TileObject::retile ( const QVector< QRect > &  sliceCoordinates,
PixmapTilingStyle::Enum  sideTilingStyle = PixmapTilingStyle::Scale,
PixmapTilingStyle::Enum  centerTilingStyle = PixmapTilingStyle::Scale 
)
virtual
QSize Pixmap9TileObject::size ( ) const
virtual

Reimplemented from PixmapObject.

QSizeF Pixmap9TileObject::sizeF ( ) const
virtual

Reimplemented from PixmapObject.

int Pixmap9TileObject::width ( ) const
virtual

Reimplemented from PixmapObject.

Friends And Related Function Documentation

friend class PixPager
friend
friend class PixPagerAtlasPage
friend
friend class PixPagerPage
friend

Member Data Documentation

QRectF Pixmap9TileObject::m_boundingRect
protected
PixmapTilingStyle::Enum Pixmap9TileObject::m_centerTilingStyle
protected
QSize Pixmap9TileObject::m_destinationSizeRequested
protected
QVector<QRectF> Pixmap9TileObject::m_destRects
protected
QRectF Pixmap9TileObject::m_geom
protected
QRect Pixmap9TileObject::m_inCoords
protected
PixmapTilingStyle::Enum Pixmap9TileObject::m_sideTilingStyle
protected
QVector<QRect> Pixmap9TileObject::m_sourceRects
protected

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