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

kjsembed

  • kjsembed
  • kjsembed
rect.cpp
Go to the documentation of this file.
1/* This file is part of the KDE libraries
2 Copyright (C) 2005, 2006 Ian Reinhart Geiser <geiseri@kde.org>
3 Copyright (C) 2005, 2006 Matt Broadstone <mbroadst@gmail.com>
4 Copyright (C) 2005, 2006 Richard J. Moore <rich@kde.org>
5 Copyright (C) 2005, 2006 Erik L. Bunce <kde@bunce.us>
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
16
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.
21*/
22#include "rect.h"
23
24#include <QtCore/QDebug>
25#include <QtCore/QRect>
26#include <QtCore/QPoint>
27#include <QtCore/QSize>
28
29using namespace KJSEmbed;
30
31RectBinding::RectBinding( KJS::ExecState *exec, const QRect &value )
32 : VariantBinding(exec, value )
33{
34 StaticBinding::publish( exec, this, Rect::methods() );
35 StaticBinding::publish( exec, this, VariantFactory::methods() );
36}
37
38namespace RectNS
39{
40
41START_VARIANT_METHOD( calladjust, QRect )
42 int arg0 = KJSEmbed::extractInt(exec, args, 0);
43 int arg1 = KJSEmbed::extractInt(exec, args, 1);
44 int arg2 = KJSEmbed::extractInt(exec, args, 2);
45 int arg3 = KJSEmbed::extractInt(exec, args, 3);
46 value.adjust(arg0, arg1, arg2, arg3);
47END_VARIANT_METHOD
48
49START_VARIANT_METHOD( calladjusted, QRect )
50 int arg0 = KJSEmbed::extractInt(exec, args, 0);
51 int arg1 = KJSEmbed::extractInt(exec, args, 1);
52 int arg2 = KJSEmbed::extractInt(exec, args, 2);
53 int arg3 = KJSEmbed::extractInt(exec, args, 3);
54 QRect cppValue = value.adjusted(arg0, arg1, arg2, arg3);
55 result = KJSEmbed::createVariant(exec, "QRect", cppValue );
56END_VARIANT_METHOD
57
58START_VARIANT_METHOD( callbottom, QRect )
59 int cppValue = value.bottom();
60 result = KJS::jsNumber(cppValue);
61END_VARIANT_METHOD
62
63START_VARIANT_METHOD( callbottomLeft, QRect )
64 QPoint cppValue = value.bottomLeft();
65 result = KJSEmbed::createVariant(exec, "QPoint", cppValue );
66END_VARIANT_METHOD
67
68START_VARIANT_METHOD( callbottomRight, QRect )
69 QPoint cppValue = value.bottomRight();
70 result = KJSEmbed::createVariant(exec, "QPoint", cppValue );
71END_VARIANT_METHOD
72
73START_VARIANT_METHOD( callcenter, QRect )
74 QPoint cppValue = value.center();
75 result = KJSEmbed::createVariant(exec, "QPoint", cppValue );
76END_VARIANT_METHOD
77
78START_VARIANT_METHOD( callcontains, QRect )
79 // 1
80 if( args.size() == 2 /* && !KJSEmbed::extractVariant<QPoint>(exec,args, 0).isNull() */)
81 {
82 QPoint arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
83 bool arg1 = KJSEmbed::extractBool(exec, args, 1);
84 bool cppValue = value.contains(arg0, arg1);
85 result = KJS::jsBoolean(cppValue);
86 }
87 //2
88 else if( args.size() == 3 )
89 {
90 int arg0 = KJSEmbed::extractInt(exec, args, 0);
91 int arg1 = KJSEmbed::extractInt(exec, args, 1);
92 bool arg2 = KJSEmbed::extractBool(exec, args, 2);
93 bool cppValue = value.contains(arg0, arg1, arg2);
94 result = KJS::jsBoolean(cppValue);
95 }
96 // 3
97 else
98 {
99 int arg0 = KJSEmbed::extractInt(exec, args, 0);
100 int arg1 = KJSEmbed::extractInt(exec, args, 1);
101 bool cppValue = value.contains(arg0, arg1);
102 result = KJS::jsBoolean(cppValue);
103 }
104END_VARIANT_METHOD
105
106START_VARIANT_METHOD( callheight, QRect )
107 int cppValue = value.height();
108 result = KJS::jsNumber(cppValue);
109END_VARIANT_METHOD
110
111START_VARIANT_METHOD( callintersect, QRect )
112 QRect arg0 = KJSEmbed::extractVariant<QRect>(exec,args, 0);
113 QRect cppValue = value.intersect(arg0);
114 result = KJSEmbed::createVariant(exec, "QRect", cppValue );
115END_VARIANT_METHOD
116
117START_VARIANT_METHOD( callintersects, QRect )
118 QRect arg0 = KJSEmbed::extractVariant<QRect>(exec,args, 0);
119 bool cppValue = value.intersects(arg0);
120 result = KJS::jsBoolean(cppValue);
121END_VARIANT_METHOD
122
123START_VARIANT_METHOD( callisEmpty, QRect )
124 bool cppValue = value.isEmpty();
125 result = KJS::jsBoolean(cppValue);
126END_VARIANT_METHOD
127
128START_VARIANT_METHOD( callisNull, QRect )
129 bool cppValue = value.isNull();
130 result = KJS::jsBoolean(cppValue);
131END_VARIANT_METHOD
132
133START_VARIANT_METHOD( callisValid, QRect )
134 bool cppValue = value.isValid();
135 result = KJS::jsBoolean(cppValue);
136END_VARIANT_METHOD
137
138START_VARIANT_METHOD( callleft, QRect )
139 int cppValue = value.left();
140 result = KJS::jsNumber(cppValue);
141END_VARIANT_METHOD
142
143START_VARIANT_METHOD( callmoveBottom, QRect )
144 int arg0 = KJSEmbed::extractInt(exec, args, 0);
145 value.moveBottom(arg0);
146END_VARIANT_METHOD
147
148START_VARIANT_METHOD( callmoveBottomLeft, QRect )
149 QPoint arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
150 value.moveBottomLeft(arg0);
151END_VARIANT_METHOD
152
153START_VARIANT_METHOD( callmoveBottomRight, QRect )
154 QPoint arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
155 value.moveBottomRight(arg0);
156END_VARIANT_METHOD
157
158START_VARIANT_METHOD( callmoveCenter, QRect )
159 QPoint arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
160 value.moveCenter(arg0);
161END_VARIANT_METHOD
162
163START_VARIANT_METHOD( callmoveLeft, QRect )
164 int arg0 = KJSEmbed::extractInt(exec, args, 0);
165 value.moveLeft(arg0);
166END_VARIANT_METHOD
167
168START_VARIANT_METHOD( callmoveRight, QRect )
169 int arg0 = KJSEmbed::extractInt(exec, args, 0);
170 value.moveRight(arg0);
171END_VARIANT_METHOD
172
173START_VARIANT_METHOD( callmoveTo, QRect )
174 if( args.size() == 1)
175 {
176 QPoint arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
177 value.moveTo(arg0);
178 }
179 else
180 {
181 int arg0 = KJSEmbed::extractInt(exec, args, 0);
182 int arg1 = KJSEmbed::extractInt(exec, args, 1);
183 value.moveTo(arg0, arg1);
184 }
185END_VARIANT_METHOD
186
187START_VARIANT_METHOD( callmoveTop, QRect )
188 int arg0 = KJSEmbed::extractInt(exec, args, 0);
189 value.moveTop(arg0);
190END_VARIANT_METHOD
191
192START_VARIANT_METHOD( callmoveTopLeft, QRect )
193 QPoint arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
194 value.moveTopLeft(arg0);
195END_VARIANT_METHOD
196
197START_VARIANT_METHOD( callmoveTopRight, QRect )
198 QPoint arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
199 value.moveTopRight(arg0);
200END_VARIANT_METHOD
201
202START_VARIANT_METHOD( callnormalized, QRect )
203 QRect cppValue = value.normalized();
204 result = KJSEmbed::createVariant(exec, "QRect", cppValue );
205END_VARIANT_METHOD
206
207START_VARIANT_METHOD( callright, QRect )
208 int cppValue = value.right();
209 result = KJS::jsNumber(cppValue);
210END_VARIANT_METHOD
211
212START_VARIANT_METHOD( callsetBottom, QRect )
213 int arg0 = KJSEmbed::extractInt(exec, args, 0);
214 value.setBottom(arg0);
215END_VARIANT_METHOD
216
217START_VARIANT_METHOD( callsetBottomLeft, QRect )
218 QPoint arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
219 value.setBottomLeft(arg0);
220END_VARIANT_METHOD
221
222START_VARIANT_METHOD( callsetBottomRight, QRect )
223 QPoint arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
224 value.setBottomRight(arg0);
225END_VARIANT_METHOD
226
227START_VARIANT_METHOD( callsetCoords, QRect )
228 int arg0 = KJSEmbed::extractInt(exec, args, 0);
229 int arg1 = KJSEmbed::extractInt(exec, args, 1);
230 int arg2 = KJSEmbed::extractInt(exec, args, 2);
231 int arg3 = KJSEmbed::extractInt(exec, args, 3);
232 value.setCoords(arg0, arg1, arg2, arg3);
233END_VARIANT_METHOD
234
235START_VARIANT_METHOD( callsetHeight, QRect )
236 int arg0 = KJSEmbed::extractInt(exec, args, 0);
237 value.setHeight(arg0);
238END_VARIANT_METHOD
239
240START_VARIANT_METHOD( callsetLeft, QRect )
241 int arg0 = KJSEmbed::extractInt(exec, args, 0);
242 value.setLeft(arg0);
243END_VARIANT_METHOD
244
245START_VARIANT_METHOD( callsetRect, QRect )
246 int arg0 = KJSEmbed::extractInt(exec, args, 0);
247 int arg1 = KJSEmbed::extractInt(exec, args, 1);
248 int arg2 = KJSEmbed::extractInt(exec, args, 2);
249 int arg3 = KJSEmbed::extractInt(exec, args, 3);
250 value.setRect(arg0, arg1, arg2, arg3);
251END_VARIANT_METHOD
252
253START_VARIANT_METHOD( callsetRight, QRect )
254 int arg0 = KJSEmbed::extractInt(exec, args, 0);
255 value.setRight(arg0);
256END_VARIANT_METHOD
257
258START_VARIANT_METHOD( callsetSize, QRect )
259 QSize arg0 = KJSEmbed::extractVariant<QSize>(exec,args, 0);
260 value.setSize(arg0);
261END_VARIANT_METHOD
262
263START_VARIANT_METHOD( callsetTop, QRect )
264 int arg0 = KJSEmbed::extractInt(exec, args, 0);
265 value.setTop(arg0);
266END_VARIANT_METHOD
267
268START_VARIANT_METHOD( callsetTopLeft, QRect )
269 QPoint arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
270 value.setTopLeft(arg0);
271END_VARIANT_METHOD
272
273START_VARIANT_METHOD( callsetTopRight, QRect )
274 QPoint arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
275 value.setTopRight(arg0);
276END_VARIANT_METHOD
277
278START_VARIANT_METHOD( callsetWidth, QRect )
279 int arg0 = KJSEmbed::extractInt(exec, args, 0);
280 value.setWidth(arg0);
281END_VARIANT_METHOD
282
283START_VARIANT_METHOD( callsetX, QRect )
284 int arg0 = KJSEmbed::extractInt(exec, args, 0);
285 value.setX(arg0);
286END_VARIANT_METHOD
287
288START_VARIANT_METHOD( callsetY, QRect )
289 int arg0 = KJSEmbed::extractInt(exec, args, 0);
290 value.setY(arg0);
291END_VARIANT_METHOD
292
293START_VARIANT_METHOD( callsize, QRect )
294 QSize cppValue = value.size();
295 result = KJSEmbed::createVariant(exec, "QSize", cppValue );
296END_VARIANT_METHOD
297
298START_VARIANT_METHOD( calltop, QRect )
299 int cppValue = value.top();
300 result = KJS::jsNumber(cppValue);
301END_VARIANT_METHOD
302
303START_VARIANT_METHOD( calltopLeft, QRect )
304 QPoint cppValue = value.topLeft();
305 result = KJSEmbed::createVariant(exec, "QPoint", cppValue );
306END_VARIANT_METHOD
307
308START_VARIANT_METHOD( calltopRight, QRect )
309 QPoint cppValue = value.topRight();
310 result = KJSEmbed::createVariant(exec, "QPoint", cppValue );
311END_VARIANT_METHOD
312
313START_VARIANT_METHOD( calltranslate, QRect )
314 if( args.size() == 1)
315 {
316 QPoint arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
317 value.translate(arg0);
318 }
319 else
320 {
321 int arg0 = KJSEmbed::extractInt(exec, args, 0);
322 int arg1 = KJSEmbed::extractInt(exec, args, 1);
323 value.translate(arg0, arg1);
324 }
325END_VARIANT_METHOD
326
327START_VARIANT_METHOD( calltranslated, QRect )
328 if( args.size() == 1 )
329 {
330 QPoint arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
331 QRect cppValue = value.translated(arg0);
332 result = KJSEmbed::createVariant(exec, "QRect", cppValue );
333 }
334 else
335 {
336 int arg0 = KJSEmbed::extractInt(exec, args, 0);
337 int arg1 = KJSEmbed::extractInt(exec, args, 1);
338 QRect cppValue = value.translated(arg0, arg1);
339 result = KJSEmbed::createVariant(exec, "QRect", cppValue );
340 }
341END_VARIANT_METHOD
342
343START_VARIANT_METHOD( callunite, QRect )
344 QRect arg0 = KJSEmbed::extractVariant<QRect>(exec,args, 0);
345 QRect cppValue = value.unite(arg0);
346 result = KJSEmbed::createVariant(exec, "QRect", cppValue );
347END_VARIANT_METHOD
348
349START_VARIANT_METHOD( callwidth, QRect )
350 int cppValue = value.width();
351 result = KJS::jsNumber(cppValue);
352END_VARIANT_METHOD
353
354START_VARIANT_METHOD( callx, QRect )
355 int cppValue = value.x();
356 result = KJS::jsNumber(cppValue);
357END_VARIANT_METHOD
358
359START_VARIANT_METHOD( cally, QRect )
360 int cppValue = value.y();
361 result = KJS::jsNumber(cppValue);
362END_VARIANT_METHOD
363}
364
365START_METHOD_LUT( Rect )
366 {"adjust", 3, KJS::DontDelete|KJS::ReadOnly, &RectNS::calladjust},
367 {"adjusted", 3, KJS::DontDelete|KJS::ReadOnly, &RectNS::calladjusted},
368 {"bottom", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callbottom},
369 {"bottomLeft", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callbottomLeft},
370 {"bottomRight", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callbottomRight},
371 {"center", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callcenter},
372 {"contains", 2, KJS::DontDelete|KJS::ReadOnly, &RectNS::callcontains},
373 {"height", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callheight},
374 {"intersect", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callintersect},
375 {"intersects", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callintersects},
376 {"isEmpty", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callisEmpty},
377 {"isNull", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callisNull},
378 {"isValid", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callisValid},
379 {"left", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callleft},
380 {"moveBottom", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callmoveBottom},
381 {"moveBottomLeft", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callmoveBottomLeft},
382 {"moveBottomRight", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callmoveBottomRight},
383 {"moveCenter", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callmoveCenter},
384 {"moveLeft", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callmoveLeft},
385 {"moveRight", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callmoveRight},
386 {"moveTo", 1, KJS::DontDelete|KJS::ReadOnly, &RectNS::callmoveTo},
387 {"moveTop", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callmoveTop},
388 {"moveTopLeft", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callmoveTopLeft},
389 {"moveTopRight", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callmoveTopRight},
390 {"normalized", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callnormalized},
391 {"right", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callright},
392 {"setBottom", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetBottom},
393 {"setBottomLeft", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetBottomLeft},
394 {"setBottomRight", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetBottomRight},
395 {"setCoords", 3, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetCoords},
396 {"setHeight", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetHeight},
397 {"setLeft", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetLeft},
398 {"setRect", 3, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetRect},
399 {"setRight", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetRight},
400 {"setSize", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetSize},
401 {"setTop", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetTop},
402 {"setTopLeft", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetTopLeft},
403 {"setTopRight", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetTopRight},
404 {"setWidth", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetWidth},
405 {"setX", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetX},
406 {"setY", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsetY},
407 {"size", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callsize},
408 {"top", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::calltop},
409 {"topLeft", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::calltopLeft},
410 {"topRight", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::calltopRight},
411 {"translate", 1, KJS::DontDelete|KJS::ReadOnly, &RectNS::calltranslate},
412 {"translated", 1, KJS::DontDelete|KJS::ReadOnly, &RectNS::calltranslated},
413 {"unite", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callunite},
414 {"width", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callwidth},
415 {"x", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::callx},
416 {"y", 0, KJS::DontDelete|KJS::ReadOnly, &RectNS::cally}
417END_METHOD_LUT
418
419NO_ENUMS( Rect )
420NO_STATICS( Rect )
421
422START_CTOR( Rect, QRect, 0)
423 if( args.size() == 2 )
424 {
425 /*
426 return KJSEmbed::RectBinding( exec,
427 QRect( KJSEmbed::extractQString(exec,args,0 ) ) );
428 */
429 }
430 else if( args.size() == 4 )
431 {
432 return new KJSEmbed::RectBinding(exec,
433 QRect( KJSEmbed::extractInt( exec, args, 0 ),
434 KJSEmbed::extractInt( exec, args, 1 ),
435 KJSEmbed::extractInt( exec, args, 2 ),
436 KJSEmbed::extractInt( exec, args, 3 )
437 ) );
438 }
439
440 return new KJSEmbed::RectBinding( exec, QRect() );
441END_CTOR
442
443//kate: indent-spaces on; indent-width 4; replace-tabs on; indent-mode cstyle;
START_METHOD_LUT
#define START_METHOD_LUT(TYPE)
Definition: binding_support.h:127
END_CTOR
#define END_CTOR
Definition: binding_support.h:166
NO_ENUMS
#define NO_ENUMS(TYPE)
Definition: binding_support.h:147
NO_STATICS
#define NO_STATICS(TYPE)
Definition: binding_support.h:153
START_CTOR
#define START_CTOR(TYPE, JSNAME, ARGS)
Definition: binding_support.h:157
END_METHOD_LUT
#define END_METHOD_LUT
Definition: binding_support.h:135
KJSEmbed::RectBinding
Definition: rect.h:36
KJSEmbed::RectBinding::RectBinding
RectBinding(KJS::ExecState *exec, const QRect &value)
Definition: rect.cpp:31
KJSEmbed::StaticBinding::publish
static void publish(KJS::ExecState *exec, KJS::JSObject *object, const Method *methods)
Publishes an array of Methods to an object.
Definition: static_binding.cpp:60
KJSEmbed::VariantBinding
QVariant based binding.
Definition: variant_binding.h:89
KJSEmbed::VariantFactory::methods
static const Method * methods()
Definition: variant_binding.h:251
result
END_VARIANT_METHOD result
Definition: color.cpp:85
if
if(file->open((QIODevice::OpenModeFlag) KJSEmbed::extractInt(exec, args, 0)))
Definition: fileio.cpp:64
KJSEmbed
Definition: application.h:33
KJSEmbed::extractInt
int KJSEMBED_EXPORT extractInt(KJS::ExecState *exec, const KJS::List &args, int idx, int defaultValue=0)
Extracts an integer from an argument list.
Definition: binding_support.cpp:72
KJSEmbed::extractBool
bool KJSEMBED_EXPORT extractBool(KJS::ExecState *exec, const KJS::List &args, int idx, bool defaultValue=false)
Extracts a bool from an argument list.
Definition: binding_support.cpp:149
KJSEmbed::createVariant
KJS::JSValue * createVariant(KJS::ExecState *exec, const KJS::UString &className, const T &value)
Can create any known KJSEmbed::VariantBinding object and set the value.
Definition: variant_binding.h:185
KJS
Implement QString-KJS::UString conversion methods.
Definition: kjs_object_model.h:29
RectNS
Definition: rect.cpp:39
arg0
END_OBJECT_METHOD QPolygon arg0
Definition: qpainter_binding.cpp:179
cppValue
END_OBJECT_METHOD QBrush cppValue
Definition: qpainter_binding.cpp:97
arg1
Qt::FillRule arg1
Definition: qpainter_binding.cpp:307
rect.h
value
QVariant value
Definition: settings.cpp:35
START_VARIANT_METHOD
#define START_VARIANT_METHOD(METHODNAME, TYPE)
A simple variant syle method.
Definition: variant_binding.h:42
END_VARIANT_METHOD
#define END_VARIANT_METHOD
End a variant method started by START_VARIANT_METHOD.
Definition: variant_binding.h:56
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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.38 API Reference

Skip menu "kdelibs-4.14.38 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