• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

kjsembed

qpainter_binding.cpp File Reference

#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>

Include dependency graph for qpainter_binding.cpp:

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)
END_OBJECT_METHOD if (args.size()==3)
 if (device)
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])
return object
 result = KJS::jsBoolean(false)

Function Documentation

object drawConvexPolygon ( arg0   ) 

object drawPoints ( arg0   ) 

object drawPolygon ( arg0  ,
arg1   
)

object drawPolyline ( arg0   ) 

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.

else if ( args.  size() = = 3  ) 

Definition at line 107 of file qpainter_binding.cpp.

if ( device   ) 

Definition at line 84 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.

return object

Definition at line 514 of file qpainter_binding.cpp.

result = KJS::jsBoolean(false)

Definition at line 82 of file qpainter_binding.cpp.

kjsembed

Skip menu "kjsembed"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal