##// END OF EJS Templates
added alphabetic sorting...
added alphabetic sorting git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@132 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r73:40dc86970256
r96:3170eb771a99
Show More
PythonQtWrapper_QImage.h
134 lines | 8.2 KiB | text/x-c | CLexer
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 #ifndef PYTHONQTWRAPPER_QIMAGE_H
#define PYTHONQTWRAPPER_QIMAGE_H
#include <qimage.h>
#include <QObject>
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 #include <PythonQt.h>
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 #include <QMatrix>
#include <QStringList>
#include <QVariant>
#include <qbytearray.h>
#include <qdatastream.h>
#include <qimage.h>
#include <qiodevice.h>
#include <qmatrix.h>
#include <qpaintdevice.h>
#include <qpaintengine.h>
#include <qpoint.h>
#include <qrect.h>
#include <qsize.h>
#include <qstringlist.h>
#include <qtransform.h>
#include <qvector.h>
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 class PythonQtShell_QImage : public QImage
{
public:
PythonQtShell_QImage():QImage(),_wrapper(NULL) {};
PythonQtShell_QImage(const QImage& arg__1):QImage(arg__1),_wrapper(NULL) {};
PythonQtShell_QImage(const QSize& size, QImage::Format format):QImage(size, format),_wrapper(NULL) {};
PythonQtShell_QImage(const QString& fileName, const char* format = 0):QImage(fileName, format),_wrapper(NULL) {};
PythonQtShell_QImage(int width, int height, QImage::Format format):QImage(width, height, format),_wrapper(NULL) {};
virtual int devType() const;
virtual int metric(QPaintDevice::PaintDeviceMetric metric) const;
virtual QPaintEngine* paintEngine() const;
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtPublicPromoter_QImage : public QImage
{ public:
florianlink
upgraded wrappers to current generator version...
r28 inline int promoted_devType() const { return QImage::devType(); }
inline QPaintEngine* promoted_paintEngine() const { return QImage::paintEngine(); }
inline int promoted_metric(QPaintDevice::PaintDeviceMetric metric) const { return QImage::metric(metric); }
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 };
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 class PythonQtWrapper_QImage : public QObject
{ Q_OBJECT
public:
Q_ENUMS(InvertMode Format )
enum InvertMode{
InvertRgb = QImage::InvertRgb, InvertRgba = QImage::InvertRgba};
enum Format{
Format_Invalid = QImage::Format_Invalid, Format_Mono = QImage::Format_Mono, Format_MonoLSB = QImage::Format_MonoLSB, Format_Indexed8 = QImage::Format_Indexed8, Format_RGB32 = QImage::Format_RGB32, Format_ARGB32 = QImage::Format_ARGB32, Format_ARGB32_Premultiplied = QImage::Format_ARGB32_Premultiplied, Format_RGB16 = QImage::Format_RGB16, Format_ARGB8565_Premultiplied = QImage::Format_ARGB8565_Premultiplied, Format_RGB666 = QImage::Format_RGB666, Format_ARGB6666_Premultiplied = QImage::Format_ARGB6666_Premultiplied, Format_RGB555 = QImage::Format_RGB555, Format_ARGB8555_Premultiplied = QImage::Format_ARGB8555_Premultiplied, Format_RGB888 = QImage::Format_RGB888, Format_RGB444 = QImage::Format_RGB444, Format_ARGB4444_Premultiplied = QImage::Format_ARGB4444_Premultiplied, NImageFormats = QImage::NImageFormats};
public slots:
QImage* new_QImage();
QImage* new_QImage(const QImage& arg__1);
QImage* new_QImage(const QSize& size, QImage::Format format);
QImage* new_QImage(const QString& fileName, const char* format = 0);
QImage* new_QImage(int width, int height, QImage::Format format);
void delete_QImage(QImage* obj) { delete obj; }
florianlink
recreated wrappers to match current python qt version...
r73 QImage mirrored(QImage* theWrappedObject, bool horizontally = false, bool vertically = true) const;
QImage copy(QImage* theWrappedObject, int x, int y, int w, int h) const;
florianlink
upgraded wrappers to current generator version...
r28 QImage convertToFormat(QImage* theWrappedObject, QImage::Format f, Qt::ImageConversionFlags flags = Qt::AutoColor) const;
florianlink
recreated wrappers to match current python qt version...
r73 QImage createAlphaMask(QImage* theWrappedObject, Qt::ImageConversionFlags flags = Qt::AutoColor) const;
florianlink
upgraded wrappers to current generator version...
r28 void setPixel(QImage* theWrappedObject, const QPoint& pt, uint index_or_rgb);
florianlink
recreated wrappers to match current python qt version...
r73 void setOffset(QImage* theWrappedObject, const QPoint& arg__1);
unsigned int pixel(QImage* theWrappedObject, int x, int y) const;
void setText(QImage* theWrappedObject, const QString& key, const QString& value);
florianlink
upgraded wrappers to current generator version...
r28 int bytesPerLine(QImage* theWrappedObject) const;
florianlink
recreated wrappers to match current python qt version...
r73 int numColors(QImage* theWrappedObject) const;
QImage createMaskFromColor(QImage* theWrappedObject, unsigned int color, Qt::MaskMode mode = Qt::MaskInColor) const;
QTransform static_QImage_trueMatrix(const QTransform& arg__1, int w, int h);
unsigned int pixel(QImage* theWrappedObject, const QPoint& pt) const;
florianlink
upgraded wrappers to current generator version...
r28 QMatrix static_QImage_trueMatrix(const QMatrix& arg__1, int w, int h);
florianlink
recreated wrappers to match current python qt version...
r73 void setAlphaChannel(QImage* theWrappedObject, const QImage& alphaChannel);
void setNumColors(QImage* theWrappedObject, int arg__1);
florianlink
upgraded wrappers to current generator version...
r28 bool operator_equal(QImage* theWrappedObject, const QImage& arg__1) const;
florianlink
recreated wrappers to match current python qt version...
r73 unsigned int color(QImage* theWrappedObject, int i) const;
bool isGrayscale(QImage* theWrappedObject) const;
florianlink
upgraded wrappers to current generator version...
r28 bool loadFromData(QImage* theWrappedObject, const QByteArray& data, const char* aformat = 0);
bool isNull(QImage* theWrappedObject) const;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 QImage::Format format(QImage* theWrappedObject) const;
florianlink
recreated wrappers to match current python qt version...
r73 QString text(QImage* theWrappedObject, const QString& key = QString()) const;
void setColor(QImage* theWrappedObject, int i, unsigned int c);
bool valid(QImage* theWrappedObject, int x, int y) const;
int dotsPerMeterY(QImage* theWrappedObject) const;
int devType(QImage* theWrappedObject) const;
QSize size(QImage* theWrappedObject) const;
QImage scaledToHeight(QImage* theWrappedObject, int h, Qt::TransformationMode mode = Qt::FastTransformation) const;
int numBytes(QImage* theWrappedObject) const;
void setPixel(QImage* theWrappedObject, int x, int y, uint index_or_rgb);
bool allGray(QImage* theWrappedObject) const;
int depth(QImage* theWrappedObject) const;
void invertPixels(QImage* theWrappedObject, QImage::InvertMode arg__1 = QImage::InvertRgb);
qint64 cacheKey(QImage* theWrappedObject) const;
int pixelIndex(QImage* theWrappedObject, const QPoint& pt) const;
void writeTo(QImage* theWrappedObject, QDataStream& arg__1);
QImage transformed(QImage* theWrappedObject, const QTransform& matrix, Qt::TransformationMode mode = Qt::FastTransformation) const;
QImage scaled(QImage* theWrappedObject, const QSize& s, Qt::AspectRatioMode aspectMode = Qt::IgnoreAspectRatio, Qt::TransformationMode mode = Qt::FastTransformation) const;
QPaintEngine* paintEngine(QImage* theWrappedObject) const;
int width(QImage* theWrappedObject) const;
QImage copy(QImage* theWrappedObject, const QRect& rect = QRect()) const;
void setDotsPerMeterY(QImage* theWrappedObject, int arg__1);
QImage convertToFormat(QImage* theWrappedObject, QImage::Format f, const QVector<unsigned int >& colorTable, Qt::ImageConversionFlags flags = Qt::AutoColor) const;
int metric(QImage* theWrappedObject, QPaintDevice::PaintDeviceMetric metric) const;
QImage createHeuristicMask(QImage* theWrappedObject, bool clipTight = true) const;
bool save(QImage* theWrappedObject, const QString& fileName, const char* format = 0, int quality = -1) const;
bool save(QImage* theWrappedObject, QIODevice* device, const char* format = 0, int quality = -1) const;
florianlink
upgraded wrappers to current generator version...
r28 bool load(QImage* theWrappedObject, const QString& fileName, const char* format = 0);
florianlink
recreated wrappers to match current python qt version...
r73 int pixelIndex(QImage* theWrappedObject, int x, int y) const;
florianlink
upgraded wrappers to current generator version...
r28 QPoint offset(QImage* theWrappedObject) const;
florianlink
recreated wrappers to match current python qt version...
r73 QImage static_QImage_fromData(const QByteArray& data, const char* format = 0);
florianlink
upgraded wrappers to current generator version...
r28 void readFrom(QImage* theWrappedObject, QDataStream& arg__1);
QImage scaledToWidth(QImage* theWrappedObject, int w, Qt::TransformationMode mode = Qt::FastTransformation) const;
florianlink
recreated wrappers to match current python qt version...
r73 int dotsPerMeterX(QImage* theWrappedObject) const;
QImage alphaChannel(QImage* theWrappedObject) const;
QImage scaled(QImage* theWrappedObject, int w, int h, Qt::AspectRatioMode aspectMode = Qt::IgnoreAspectRatio, Qt::TransformationMode mode = Qt::FastTransformation) const;
QVector<unsigned int > colorTable(QImage* theWrappedObject) const;
void fill(QImage* theWrappedObject, uint pixel);
QStringList textKeys(QImage* theWrappedObject) const;
bool valid(QImage* theWrappedObject, const QPoint& pt) const;
bool load(QImage* theWrappedObject, QIODevice* device, const char* format);
void setDotsPerMeterX(QImage* theWrappedObject, int arg__1);
QRect rect(QImage* theWrappedObject) const;
QImage rgbSwapped(QImage* theWrappedObject) const;
int height(QImage* theWrappedObject) const;
bool hasAlphaChannel(QImage* theWrappedObject) const;
QImage transformed(QImage* theWrappedObject, const QMatrix& matrix, Qt::TransformationMode mode = Qt::FastTransformation) const;
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 };
#endif // PYTHONQTWRAPPER_QIMAGE_H