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 | drawConvexPolygon (arg0) |
| object | drawPoints (arg0) |
| object | drawPolygon (arg0, arg1) |
| object | drawPolyline (arg0) |
| QPaintDevice * | extractPaintDevice (KJS::ExecState *exec, KJS::JSValue *arg) |
| if (device) | |
| END_OBJECT_METHOD | if (args.size()==3) |
| END_OBJECT_METHOD | START_METHOD_LUT (Painter) |
Variables | |
| END_OBJECT_METHOD QPolygon | arg0 = KJSEmbed::extractVariant<QPolygon>(exec,args, 0) |
| Qt::FillRule | arg1 = (Qt::FillRule)KJSEmbed::extractInt(exec, args, 1, Qt::OddEvenFill ) |
| END_OBJECT_METHOD QBrush | cppValue = object->background() |
| QPaintDevice * | device = extractPaintDevice(exec, args[0]) |
| else | |
| return | object |
| result = KJS::jsBoolean(false) | |
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.
| END_OBJECT_METHOD if | ( | args. | size() = = 3 | ) |
Definition at line 107 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.
| Qt::FillRule arg1 = (Qt::FillRule)KJSEmbed::extractInt(exec, args, 1, Qt::OddEvenFill ) |
Definition at line 307 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.
| return object |
Definition at line 514 of file qpainter_binding.cpp.
| result = KJS::jsBoolean(false) |
Definition at line 82 of file qpainter_binding.cpp.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference