24#include <QtCore/QDebug>
25#include <QtGui/QPixmap>
26#include <QtGui/QBitmap>
27#include <QtGui/QWidget>
52 QRect
arg0 = KJSEmbed::extractVariant<QRect>(exec,args, 0);
56 else if( args.size() == 4)
92 QWidget*
arg0 = KJSEmbed::extractObject<QWidget>(exec,args, 0);
97 else if( args.size() == 1)
99 QColor
arg0 = KJSEmbed::extractVariant<QColor>(exec,args, 0);
102 else if( args.size() == 2)
104 QWidget*
arg0 = KJSEmbed::extractObject<QWidget>(exec,args, 0);
105 QPoint
arg1 = KJSEmbed::extractVariant<QPoint>(exec,args, 1);
111 QImage
arg0 = KJSEmbed::extractVariant<QImage>(exec,args, 0);
118 if( args.size() == 2)
120 QWidget*
arg0 = KJSEmbed::extractObject<QWidget>(exec,args, 0);
121 QRect
arg1 = KJSEmbed::extractVariant<QRect>(exec,args, 1);
125 else if( args.size() == 5)
127 QWidget*
arg0 = KJSEmbed::extractObject<QWidget>(exec,args, 0);
189 if( args.size() == 3 )
191 QSize
arg0 = KJSEmbed::extractVariant<QSize>(exec,args, 0);
197 else if ( args.size() == 4)
228 QPixmap
arg0 = KJSEmbed::extractVariant<QPixmap>(exec,args, 0);
233 QBitmap
arg0 = KJSEmbed::extractVariant<QBitmap>(exec,args, 0);
255 {
"alphaChannel", 0, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::callalphaChannel},
256 {
"copy", 3, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::callcopy},
257 {
"createHeuristicMask", 0, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::callcreateHeuristicMask},
258 {
"createMaskFromColor", 0, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::callcreateMaskFromColor},
259 {
"defaultDepth", 0, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::calldefaultDepth},
260 {
"depth", 0, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::calldepth},
261 {
"fill", 2, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::callfill},
262 {
"fromImage", 1, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::callfromImage},
263 {
"grabWidget", 4, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::callgrabWidget},
264 {
"hasAlpha", 0, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::callhasAlpha},
265 {
"hasAlphaChannel", 0, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::callhasAlphaChannel},
266 {
"height", 0, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::callheight},
267 {
"isNull", 0, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::callisNull},
268 {
"isQBitmap", 0, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::callisQBitmap},
269 {
"load", 2, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::callload},
270 {
"mask", 0, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::callmask},
271 {
"rect", 0, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::callrect},
272 {
"save", 2, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::callsave},
273 {
"scaled", 3, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::callscaled},
274 {
"scaledToHeight", 1, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::callscaledToHeight},
275 {
"scaledToWidth", 1, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::callscaledToWidth},
276 {
"serialNumber", 0, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::callserialNumber},
277 {
"setAlphaChannel", 0, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::callsetAlphaChannel},
278 {
"setMask", 0, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::callsetMask},
279 {
"size", 0, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::callsize},
280 {
"toImage", 0, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::calltoImage},
281 {
"width", 0, KJS::DontDelete|KJS::ReadOnly, &PixmapNS::callwidth}
287 if( args.size() == 0 )
291 else if( args.size() == 1 )
296 else if( args.size() == 2 )
303 else if( args.size() == 3 )
310 KJSEmbed::extractVariant<QByteArray>( exec, args, 1 ).constData(),
#define START_METHOD_LUT(TYPE)
#define START_CTOR(TYPE, JSNAME, ARGS)
static const KJS::ClassInfo info
PixmapBinding(KJS::ExecState *exec, const QPixmap &value)
static void publish(KJS::ExecState *exec, KJS::JSObject *object, const Method *methods)
Publishes an array of Methods to an object.
static const KJS::ClassInfo info
static const Method * methods()
END_VARIANT_METHOD result
if(file->open((QIODevice::OpenModeFlag) KJSEmbed::extractInt(exec, args, 0)))
QString KJSEMBED_EXPORT extractQString(KJS::ExecState *exec, const KJS::List &args, int idx, const QString defaultValue=QString())
Extracts a QString from an argument list.
int KJSEMBED_EXPORT extractInt(KJS::ExecState *exec, const KJS::List &args, int idx, int defaultValue=0)
Extracts an integer from an argument list.
bool KJSEMBED_EXPORT extractBool(KJS::ExecState *exec, const KJS::List &args, int idx, bool defaultValue=false)
Extracts a bool from an argument list.
QString toQString(const KJS::UString &u)
QVariant KJSEMBED_EXPORT extractVariant(KJS::ExecState *exec, KJS::JSValue *value)
Extracts a QVariant from a KJS::JSValue if the conversion fails a QVariant::Null is returned.
KJS::JSValue * createVariant(KJS::ExecState *exec, const KJS::UString &className, const T &value)
Can create any known KJSEmbed::VariantBinding object and set the value.
Implement QString-KJS::UString conversion methods.
END_QOBJECT_METHOD QByteArray className
END_OBJECT_METHOD QPolygon arg0
END_OBJECT_METHOD QBrush cppValue
#define START_VARIANT_METHOD(METHODNAME, TYPE)
A simple variant syle method.
#define END_VARIANT_METHOD
End a variant method started by START_VARIANT_METHOD.