22 #ifndef PIXMAP3HTILEOBJECT_H_
23 #define PIXMAP3HTILEOBJECT_H_
30 namespace PixmapHTilingStyle
47 const QString& imageFilename,
48 const QVector<QRect>& sliceCoordinates,
50 const char * format = 0, Qt::ImageConversionFlags flags = Qt::AutoColor);
54 const QString& imageFilename,
55 const quint32 leftIn,
const quint32 rightIn,
57 const char * format = 0, Qt::ImageConversionFlags flags = Qt::AutoColor);
61 virtual QSize
size()
const;
62 virtual int width()
const;
63 virtual int height()
const;
64 virtual QSizeF
sizeF()
const;
74 virtual void paint(QPainter * painter);
75 virtual void paint(QPainter * painter,
const QPointF& targetOriginInPainterCS);
76 virtual void paint(QPainter * painter,
const QRectF& targetRectInPainterCS);
77 virtual void paint(QPainter * painter,
const QRect& targetRectInPainterCS,
78 const QRect& sourceRect);
80 virtual bool resize(
const QSize& size);
81 virtual bool resize(
const quint32 w,
const quint32 h);
83 virtual bool retile(
const quint32 leftIn,
const quint32 rightIn,
87 virtual bool retile(
const QVector<QRect>& sliceCoordinates,
90 static bool makeSlices(
const quint32 width,
const quint32 height,
91 const quint32 leftIn,
const quint32 rightIn,
92 QVector<QRect>& r_slices,