1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
#include "qtscriptshell_QImage.h"
#include <QtScript/QScriptEngine>
#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>
#define QTSCRIPT_IS_GENERATED_FUNCTION(fun) ((fun.data().toUInt32() & 0xFFFF0000) == 0xBABE0000)
Q_DECLARE_METATYPE(QPaintDevice::PaintDeviceMetric)
Q_DECLARE_METATYPE(QPaintEngine*)
QtScriptShell_QImage::QtScriptShell_QImage()
: QImage() {}
QtScriptShell_QImage::QtScriptShell_QImage(const QImage& arg__1)
: QImage(arg__1) {}
QtScriptShell_QImage::QtScriptShell_QImage(const QSize& size, QImage::Format format)
: QImage(size, format) {}
QtScriptShell_QImage::QtScriptShell_QImage(const QString& fileName, const char* format)
: QImage(fileName, format) {}
QtScriptShell_QImage::QtScriptShell_QImage(int width, int height, QImage::Format format)
: QImage(width, height, format) {}
QtScriptShell_QImage::~QtScriptShell_QImage() {}
int QtScriptShell_QImage::devType() const
{
QScriptValue _q_function = __qtscript_self.property("devType");
if (!_q_function.isFunction() || QTSCRIPT_IS_GENERATED_FUNCTION(_q_function)
|| (__qtscript_self.propertyFlags("devType") & QScriptValue::QObjectMember)) {
return QImage::devType();
} else {
return qscriptvalue_cast<int >(_q_function.call(__qtscript_self));
}
}
int QtScriptShell_QImage::metric(QPaintDevice::PaintDeviceMetric metric) const
{
QScriptValue _q_function = __qtscript_self.property("metric");
if (!_q_function.isFunction() || QTSCRIPT_IS_GENERATED_FUNCTION(_q_function)
|| (__qtscript_self.propertyFlags("metric") & QScriptValue::QObjectMember)) {
return QImage::metric(metric);
} else {
QScriptEngine *_q_engine = __qtscript_self.engine();
return qscriptvalue_cast<int >(_q_function.call(__qtscript_self,
QScriptValueList()
<< qScriptValueFromValue(_q_engine, metric)));
}
}
QPaintEngine* QtScriptShell_QImage::paintEngine() const
{
QScriptValue _q_function = __qtscript_self.property("paintEngine");
if (!_q_function.isFunction() || QTSCRIPT_IS_GENERATED_FUNCTION(_q_function)
|| (__qtscript_self.propertyFlags("paintEngine") & QScriptValue::QObjectMember)) {
return QImage::paintEngine();
} else {
return qscriptvalue_cast<QPaintEngine* >(_q_function.call(__qtscript_self));
}
}
|