#include "PythonQtWrapper_QPixmap.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int PythonQtShell_QPixmap::devType() const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const char* argumentList[] ={"int"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); int returnValue; void* args[1] = {NULL}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); if (args[0]!=&returnValue) { if (args[0]==NULL) { PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); } else { returnValue = *((int*)args[0]); } } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } return QPixmap::devType(); } int PythonQtShell_QPixmap::metric(QPaintDevice::PaintDeviceMetric arg__1) const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); int returnValue; void* args[2] = {NULL, (void*)&arg__1}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); if (args[0]!=&returnValue) { if (args[0]==NULL) { PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); } else { returnValue = *((int*)args[0]); } } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } return QPixmap::metric(arg__1); } QPaintEngine* PythonQtShell_QPixmap::paintEngine() const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const char* argumentList[] ={"QPaintEngine*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QPaintEngine* returnValue; void* args[1] = {NULL}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); if (args[0]!=&returnValue) { if (args[0]==NULL) { PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); } else { returnValue = *((QPaintEngine**)args[0]); } } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } return QPixmap::paintEngine(); } QPixmap* PythonQtWrapper_QPixmap::new_QPixmap() { return new PythonQtShell_QPixmap(); } QPixmap* PythonQtWrapper_QPixmap::new_QPixmap(const QPixmap& arg__1) { return new PythonQtShell_QPixmap(arg__1); } QPixmap* PythonQtWrapper_QPixmap::new_QPixmap(const QSize& arg__1) { return new PythonQtShell_QPixmap(arg__1); } QPixmap* PythonQtWrapper_QPixmap::new_QPixmap(const QString& fileName, const char* format, Qt::ImageConversionFlags flags) { return new PythonQtShell_QPixmap(fileName, format, flags); } QPixmap* PythonQtWrapper_QPixmap::new_QPixmap(const char** xpm) { return new PythonQtShell_QPixmap(xpm); } QPixmap* PythonQtWrapper_QPixmap::new_QPixmap(int w, int h) { return new PythonQtShell_QPixmap(w, h); } QSize PythonQtWrapper_QPixmap::size(QPixmap* theWrappedObject) const { return ( theWrappedObject->size()); } bool PythonQtWrapper_QPixmap::hasAlpha(QPixmap* theWrappedObject) const { return ( theWrappedObject->hasAlpha()); } qint64 PythonQtWrapper_QPixmap::cacheKey(QPixmap* theWrappedObject) const { return ( theWrappedObject->cacheKey()); } QPixmap PythonQtWrapper_QPixmap::transformed(QPixmap* theWrappedObject, const QTransform& arg__1, Qt::TransformationMode mode) const { return ( theWrappedObject->transformed(arg__1, mode)); } QMatrix PythonQtWrapper_QPixmap::static_QPixmap_trueMatrix(const QMatrix& m, int w, int h) { return (QPixmap::trueMatrix(m, w, h)); } QTransform PythonQtWrapper_QPixmap::static_QPixmap_trueMatrix(const QTransform& m, int w, int h) { return (QPixmap::trueMatrix(m, w, h)); } QImage PythonQtWrapper_QPixmap::toImage(QPixmap* theWrappedObject) const { return ( theWrappedObject->toImage()); } bool PythonQtWrapper_QPixmap::hasAlphaChannel(QPixmap* theWrappedObject) const { return ( theWrappedObject->hasAlphaChannel()); } QRect PythonQtWrapper_QPixmap::rect(QPixmap* theWrappedObject) const { return ( theWrappedObject->rect()); } void PythonQtWrapper_QPixmap::setMask(QPixmap* theWrappedObject, const QBitmap& arg__1) { ( theWrappedObject->setMask(arg__1)); } QPixmap PythonQtWrapper_QPixmap::transformed(QPixmap* theWrappedObject, const QMatrix& arg__1, Qt::TransformationMode mode) const { return ( theWrappedObject->transformed(arg__1, mode)); } QBitmap PythonQtWrapper_QPixmap::createMaskFromColor(QPixmap* theWrappedObject, const QColor& maskColor, Qt::MaskMode mode) const { return ( theWrappedObject->createMaskFromColor(maskColor, mode)); } QBitmap PythonQtWrapper_QPixmap::mask(QPixmap* theWrappedObject) const { return ( theWrappedObject->mask()); } bool PythonQtWrapper_QPixmap::save(QPixmap* theWrappedObject, QIODevice* device, const char* format, int quality) const { return ( theWrappedObject->save(device, format, quality)); } int PythonQtWrapper_QPixmap::width(QPixmap* theWrappedObject) const { return ( theWrappedObject->width()); } QBitmap PythonQtWrapper_QPixmap::createHeuristicMask(QPixmap* theWrappedObject, bool clipTight) const { return ( theWrappedObject->createHeuristicMask(clipTight)); } QPixmap PythonQtWrapper_QPixmap::scaledToHeight(QPixmap* theWrappedObject, int h, Qt::TransformationMode mode) const { return ( theWrappedObject->scaledToHeight(h, mode)); } void PythonQtWrapper_QPixmap::fill(QPixmap* theWrappedObject, const QColor& fillColor) { ( theWrappedObject->fill(fillColor)); } void PythonQtWrapper_QPixmap::fill(QPixmap* theWrappedObject, const QWidget* widget, int xofs, int yofs) { ( theWrappedObject->fill(widget, xofs, yofs)); } bool PythonQtWrapper_QPixmap::isQBitmap(QPixmap* theWrappedObject) const { return ( theWrappedObject->isQBitmap()); } QPixmap PythonQtWrapper_QPixmap::static_QPixmap_grabWidget(QWidget* widget, int x, int y, int w, int h) { return (QPixmap::grabWidget(widget, x, y, w, h)); } void PythonQtWrapper_QPixmap::fill(QPixmap* theWrappedObject, const QWidget* widget, const QPoint& ofs) { ( theWrappedObject->fill(widget, ofs)); } QPixmap PythonQtWrapper_QPixmap::static_QPixmap_grabWidget(QWidget* widget, const QRect& rect) { return (QPixmap::grabWidget(widget, rect)); } void PythonQtWrapper_QPixmap::writeTo(QPixmap* theWrappedObject, QDataStream& arg__1) { arg__1 << (*theWrappedObject); } QPaintEngine* PythonQtWrapper_QPixmap::paintEngine(QPixmap* theWrappedObject) const { return ( ((PythonQtPublicPromoter_QPixmap*)theWrappedObject)->promoted_paintEngine()); } void PythonQtWrapper_QPixmap::setAlphaChannel(QPixmap* theWrappedObject, const QPixmap& arg__1) { ( theWrappedObject->setAlphaChannel(arg__1)); } QPixmap PythonQtWrapper_QPixmap::copy(QPixmap* theWrappedObject, const QRect& rect) const { return ( theWrappedObject->copy(rect)); } QBitmap PythonQtWrapper_QPixmap::createMaskFromColor(QPixmap* theWrappedObject, const QColor& maskColor) const { return ( theWrappedObject->createMaskFromColor(maskColor)); } int PythonQtWrapper_QPixmap::depth(QPixmap* theWrappedObject) const { return ( theWrappedObject->depth()); } bool PythonQtWrapper_QPixmap::loadFromData(QPixmap* theWrappedObject, const QByteArray& data, const char* format, Qt::ImageConversionFlags flags) { return ( theWrappedObject->loadFromData(data, format, flags)); } QPixmap PythonQtWrapper_QPixmap::scaledToWidth(QPixmap* theWrappedObject, int w, Qt::TransformationMode mode) const { return ( theWrappedObject->scaledToWidth(w, mode)); } int PythonQtWrapper_QPixmap::metric(QPixmap* theWrappedObject, QPaintDevice::PaintDeviceMetric arg__1) const { return ( ((PythonQtPublicPromoter_QPixmap*)theWrappedObject)->promoted_metric(arg__1)); } bool PythonQtWrapper_QPixmap::load(QPixmap* theWrappedObject, const QString& fileName, const char* format, Qt::ImageConversionFlags flags) { return ( theWrappedObject->load(fileName, format, flags)); } bool PythonQtWrapper_QPixmap::save(QPixmap* theWrappedObject, const QString& fileName, const char* format, int quality) const { return ( theWrappedObject->save(fileName, format, quality)); } QPixmap PythonQtWrapper_QPixmap::static_QPixmap_grabWindow(WId arg__1, int x, int y, int w, int h) { return (QPixmap::grabWindow(arg__1, x, y, w, h)); } QPixmap PythonQtWrapper_QPixmap::scaled(QPixmap* theWrappedObject, int w, int h, Qt::AspectRatioMode aspectMode, Qt::TransformationMode mode) const { return ( theWrappedObject->scaled(w, h, aspectMode, mode)); } bool PythonQtWrapper_QPixmap::isNull(QPixmap* theWrappedObject) const { return ( theWrappedObject->isNull()); } QPixmap PythonQtWrapper_QPixmap::scaled(QPixmap* theWrappedObject, const QSize& s, Qt::AspectRatioMode aspectMode, Qt::TransformationMode mode) const { return ( theWrappedObject->scaled(s, aspectMode, mode)); } QPixmap PythonQtWrapper_QPixmap::static_QPixmap_fromImage(const QImage& image, Qt::ImageConversionFlags flags) { return (QPixmap::fromImage(image, flags)); } int PythonQtWrapper_QPixmap::height(QPixmap* theWrappedObject) const { return ( theWrappedObject->height()); } QPixmap PythonQtWrapper_QPixmap::copy(QPixmap* theWrappedObject, int x, int y, int width, int height) const { return ( theWrappedObject->copy(x, y, width, height)); } void PythonQtWrapper_QPixmap::readFrom(QPixmap* theWrappedObject, QDataStream& arg__1) { arg__1 >> (*theWrappedObject); } int PythonQtWrapper_QPixmap::devType(QPixmap* theWrappedObject) const { return ( ((PythonQtPublicPromoter_QPixmap*)theWrappedObject)->promoted_devType()); } int PythonQtWrapper_QPixmap::static_QPixmap_defaultDepth() { return (QPixmap::defaultDepth()); } QPixmap PythonQtWrapper_QPixmap::alphaChannel(QPixmap* theWrappedObject) const { return ( theWrappedObject->alphaChannel()); }