• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.8 API Reference
  • KDE Home
  • Contact Us
 

kjsembed

  • kjsembed
  • kjsembed
Functions | Variables
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>

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

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 
)

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  )
Initial value:
{
QPaintDevice *device = extractPaintDevice(exec, args[0])
device
QPaintDevice * device
Definition: qpainter_binding.cpp:83
extractPaintDevice
QPaintDevice * extractPaintDevice(KJS::ExecState *exec, KJS::JSValue *arg)
Definition: qpainter_binding.cpp:44

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.

object translate ( arg0  ,
arg1   
)

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
Initial value:
{
result = KJS::jsBoolean(false)
BrushNS::result
result
Definition: brush.cpp:48

Definition at line 87 of file qpainter_binding.cpp.

END_OBJECT_METHOD
Initial value:
{
QRect arg0 = KJSEmbed::extractVariant<QRect>(exec,args, 0)
arg0
END_OBJECT_METHOD QPolygon arg0
Definition: qpainter_binding.cpp:179

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.

This file is part of the KDE documentation.
Documentation copyright © 1996-2016 The KDE developers.
Generated on Fri Apr 1 2016 10:47:57 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kjsembed

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

kdelibs-4.14.8 API Reference

Skip menu "kdelibs-4.14.8 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal