24#include <QtCore/QDebug>
25#include <QtCore/QRect>
26#include <QtCore/QPoint>
27#include <QtCore/QSize>
80 if( args.size() == 2 )
82 QPoint
arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
88 else if( args.size() == 3 )
112 QRect
arg0 = KJSEmbed::extractVariant<QRect>(exec,args, 0);
118 QRect
arg0 = KJSEmbed::extractVariant<QRect>(exec,args, 0);
149 QPoint
arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
154 QPoint
arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
159 QPoint
arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
174 if( args.size() == 1)
176 QPoint
arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
193 QPoint
arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
198 QPoint
arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
218 QPoint
arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
223 QPoint
arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
259 QSize
arg0 = KJSEmbed::extractVariant<QSize>(exec,args, 0);
269 QPoint
arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
274 QPoint
arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
314 if( args.size() == 1)
316 QPoint
arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
328 if( args.size() == 1 )
330 QPoint
arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
344 QRect
arg0 = KJSEmbed::extractVariant<QRect>(exec,args, 0);
366 {
"adjust", 3, KJS::DontDelete|KJS::ReadOnly, &RectNS::calladjust},
367 {
"adjusted", 3, KJS::DontDelete|KJS::ReadOnly, &RectNS::calladjusted},
368 {
"bottom", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callbottom},
369 {
"bottomLeft", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callbottomLeft},
370 {
"bottomRight", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callbottomRight},
371 {
"center", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callcenter},
372 {
"contains", 2, KJS::DontDelete|KJS::ReadOnly, &RectNS::callcontains},
373 {
"height", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callheight},
374 {
"intersect", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callintersect},
375 {
"intersects", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callintersects},
376 {
"isEmpty", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callisEmpty},
377 {
"isNull", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callisNull},
378 {
"isValid", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callisValid},
379 {
"left", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callleft},
380 {
"moveBottom", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callmoveBottom},
381 {
"moveBottomLeft", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callmoveBottomLeft},
382 {
"moveBottomRight", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callmoveBottomRight},
383 {
"moveCenter", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callmoveCenter},
384 {
"moveLeft", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callmoveLeft},
385 {
"moveRight", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callmoveRight},
386 {
"moveTo", 1, KJS::DontDelete|KJS::ReadOnly, &RectNS::callmoveTo},
387 {
"moveTop", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callmoveTop},
388 {
"moveTopLeft", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callmoveTopLeft},
389 {
"moveTopRight", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callmoveTopRight},
390 {
"normalized", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callnormalized},
391 {
"right", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callright},
392 {
"setBottom", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetBottom},
393 {
"setBottomLeft", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetBottomLeft},
394 {
"setBottomRight", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetBottomRight},
395 {
"setCoords", 3, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetCoords},
396 {
"setHeight", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetHeight},
397 {
"setLeft", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetLeft},
398 {
"setRect", 3, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetRect},
399 {
"setRight", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetRight},
400 {
"setSize", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetSize},
401 {
"setTop", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetTop},
402 {
"setTopLeft", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetTopLeft},
403 {
"setTopRight", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetTopRight},
404 {
"setWidth", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetWidth},
405 {
"setX", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetX},
406 {
"setY", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetY},
407 {
"size", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsize},
408 {
"top", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::calltop},
409 {
"topLeft", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::calltopLeft},
410 {
"topRight", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::calltopRight},
411 {
"translate", 1, KJS::DontDelete|KJS::ReadOnly, &RectNS::calltranslate},
412 {
"translated", 1, KJS::DontDelete|KJS::ReadOnly, &RectNS::calltranslated},
413 {
"unite", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callunite},
414 {
"width", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callwidth},
415 {
"x", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callx},
416 {
"y", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::cally}
423 if( args.size() == 2 )
430 else if( args.size() == 4 )
#define START_METHOD_LUT(TYPE)
#define START_CTOR(TYPE, JSNAME, ARGS)
RectBinding(KJS::ExecState *exec, const QRect &value)
static void publish(KJS::ExecState *exec, KJS::JSObject *object, const Method *methods)
Publishes an array of Methods to an object.
static const Method * methods()
END_VARIANT_METHOD result
if(file->open((QIODevice::OpenModeFlag) KJSEmbed::extractInt(exec, args, 0)))
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.
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_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.