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

kjsembed

  • sources
  • kde-4.12
  • kdelibs
  • 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>
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)
 
 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

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.

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

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.

This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:53 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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