22 #ifndef PIXMAP9TILEOBJECT_H_
23 #define PIXMAP9TILEOBJECT_H_
31 namespace PixmapTilingStyle
48 const QString& imageFilename,
49 const QVector<QRect>& sliceCoordinates,
52 const char * format = 0, Qt::ImageConversionFlags flags = Qt::AutoColor);
56 const QString& imageFilename,
57 const quint32 topIn,
const quint32 bottomIn,
58 const quint32 leftIn,
const quint32 rightIn,
61 const char * format = 0, Qt::ImageConversionFlags flags = Qt::AutoColor);
65 virtual QSize
size()
const;
66 virtual int width()
const;
67 virtual int height()
const;
68 virtual QSizeF
sizeF()
const;
76 virtual void paint(QPainter * painter,
const QPointF& targetOriginInPainterCS);
78 virtual bool resize(
const QSize& size);
79 virtual bool resize(
const quint32 w,
const quint32 h);
81 virtual bool retile(
const quint32 topIn,
const quint32 bottomIn,
82 const quint32 leftIn,
const quint32 rightIn,
86 virtual bool retile(
const QVector<QRect>& sliceCoordinates,
90 static bool makeSlices(
const quint32 width,
const quint32 height,
91 const quint32 topIn,
const quint32 bottomIn,
92 const quint32 leftIn,
const quint32 rightIn,
93 QVector<QRect>& r_slices,