kjsembed
#include "qpainter_binding.h"
#include "object_binding.h"
#include "static_binding.h"
#include "kjseglobal.h"
#include <kjs/object.h>
#include <QtCore/QDebug>
#include <QtGui/QWidget>
#include <QtGui/QPainter>
#include <QtGui/QImage>
#include <QtGui/QPixmap>
#include <QtGui/QPen>
#include <QtGui/QBrush>
#include <QtCore/QLine>
#include <QtGui/QPolygon>
#include <QtCore/QPoint>
#include <QtGui/QFrame>
Go to the source code of this file.
Functions | |
object | drawArc (arg0, arg1, arg2) |
object | drawChord (arg0, arg1, arg2) |
object | drawConvexPolygon (arg0) |
object | drawEllipse (arg0, arg1, arg2, arg3) |
object | drawImage (arg0, arg1) |
object | drawLine (arg0) |
object | drawPie (arg0, arg1, arg2) |
object | drawPixmap (arg0, arg1) |
object | drawPoint (arg0) |
object | drawPoints (arg0) |
object | drawPolygon (arg0, arg1) |
object | drawPolyline (arg0) |
object | drawRect (arg0) |
object | drawRoundRect (arg0, arg1, arg2) |
object | drawText (arg0, arg1) |
object | drawTiledPixmap (arg0, arg1, arg2) |
object | eraseRect (arg0, arg1, arg2, arg3) |
QPaintDevice * | extractPaintDevice (KJS::ExecState *exec, KJS::JSValue *arg) |
if (device) | |
else | if (args.size()==6) |
END_OBJECT_METHOD | START_METHOD_LUT (Painter) |
object | translate (arg0, arg1) |
Variables | |
END_OBJECT_METHOD QPolygon | arg0 = KJSEmbed::extractVariant<QPolygon>(exec,args, 0) |
int | arg1 = KJSEmbed::extractInt(exec, args, 1) |
QString | arg2 = KJSEmbed::extractQString(exec, args, 2) |
int | arg3 = KJSEmbed::extractInt(exec, args, 3) |
END_OBJECT_METHOD QBrush | cppValue = object->background() |
QPaintDevice * | device = extractPaintDevice(exec, args[0]) |
else | |
END_OBJECT_METHOD | |
return | object |
result = KJS::jsBoolean(false) | |
return | |
Function Documentation
QPaintDevice* extractPaintDevice | ( | KJS::ExecState * | exec, |
KJS::JSValue * | arg | ||
) |
Because of something odd with multiple inheritence and qobject cast we need to first cast it to a QObject, then cast it to a QWidget. All other paint devices in Qt that are objects are single inheritence so dynamic_cast will work properly.
Definition at line 44 of file qpainter_binding.cpp.
if | ( | device | ) |
Definition at line 84 of file qpainter_binding.cpp.
else if | ( | args. | size() = = 6 | ) |
Definition at line 115 of file qpainter_binding.cpp.
END_OBJECT_METHOD START_METHOD_LUT | ( | Painter | ) |
Definition at line 431 of file qpainter_binding.cpp.
Variable Documentation
END_OBJECT_METHOD QPolygon arg0 = KJSEmbed::extractVariant<QPolygon>(exec,args, 0) |
Definition at line 179 of file qpainter_binding.cpp.
int arg1 = KJSEmbed::extractInt(exec, args, 1) |
Definition at line 110 of file qpainter_binding.cpp.
int arg2 = KJSEmbed::extractQString(exec, args, 2) |
Definition at line 111 of file qpainter_binding.cpp.
int arg3 = KJSEmbed::extractInt(exec, args, 3) |
Definition at line 189 of file qpainter_binding.cpp.
END_OBJECT_METHOD QPoint cppValue = object->background() |
Definition at line 97 of file qpainter_binding.cpp.
QPaintDevice* device = extractPaintDevice(exec, args[0]) |
Definition at line 83 of file qpainter_binding.cpp.
else |
Definition at line 87 of file qpainter_binding.cpp.
END_OBJECT_METHOD |
Definition at line 108 of file qpainter_binding.cpp.
return object |
Definition at line 514 of file qpainter_binding.cpp.
result = KJS::jsBoolean(false) |
Definition at line 82 of file qpainter_binding.cpp.
return |
Definition at line 504 of file qpainter_binding.cpp.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Sat May 31 2014 00:01:31 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.