• 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
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 
29 using namespace KJSEmbed;
30 
31 RectBinding::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 
38 namespace RectNS
39 {
40 
41 START_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);
47 END_VARIANT_METHOD
48 
49 START_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 );
56 END_VARIANT_METHOD
57 
58 START_VARIANT_METHOD( callbottom, QRect )
59  int cppValue = value.bottom();
60  result = KJS::jsNumber(cppValue);
61 END_VARIANT_METHOD
62 
63 START_VARIANT_METHOD( callbottomLeft, QRect )
64  QPoint cppValue = value.bottomLeft();
65  result = KJSEmbed::createVariant(exec, "QPoint", cppValue );
66 END_VARIANT_METHOD
67 
68 START_VARIANT_METHOD( callbottomRight, QRect )
69  QPoint cppValue = value.bottomRight();
70  result = KJSEmbed::createVariant(exec, "QPoint", cppValue );
71 END_VARIANT_METHOD
72 
73 START_VARIANT_METHOD( callcenter, QRect )
74  QPoint cppValue = value.center();
75  result = KJSEmbed::createVariant(exec, "QPoint", cppValue );
76 END_VARIANT_METHOD
77 
78 START_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  }
104 END_VARIANT_METHOD
105 
106 START_VARIANT_METHOD( callheight, QRect )
107  int cppValue = value.height();
108  result = KJS::jsNumber(cppValue);
109 END_VARIANT_METHOD
110 
111 START_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 );
115 END_VARIANT_METHOD
116 
117 START_VARIANT_METHOD( callintersects, QRect )
118  QRect arg0 = KJSEmbed::extractVariant<QRect>(exec,args, 0);
119  bool cppValue = value.intersects(arg0);
120  result = KJS::jsBoolean(cppValue);
121 END_VARIANT_METHOD
122 
123 START_VARIANT_METHOD( callisEmpty, QRect )
124  bool cppValue = value.isEmpty();
125  result = KJS::jsBoolean(cppValue);
126 END_VARIANT_METHOD
127 
128 START_VARIANT_METHOD( callisNull, QRect )
129  bool cppValue = value.isNull();
130  result = KJS::jsBoolean(cppValue);
131 END_VARIANT_METHOD
132 
133 START_VARIANT_METHOD( callisValid, QRect )
134  bool cppValue = value.isValid();
135  result = KJS::jsBoolean(cppValue);
136 END_VARIANT_METHOD
137 
138 START_VARIANT_METHOD( callleft, QRect )
139  int cppValue = value.left();
140  result = KJS::jsNumber(cppValue);
141 END_VARIANT_METHOD
142 
143 START_VARIANT_METHOD( callmoveBottom, QRect )
144  int arg0 = KJSEmbed::extractInt(exec, args, 0);
145  value.moveBottom(arg0);
146 END_VARIANT_METHOD
147 
148 START_VARIANT_METHOD( callmoveBottomLeft, QRect )
149  QPoint arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
150  value.moveBottomLeft(arg0);
151 END_VARIANT_METHOD
152 
153 START_VARIANT_METHOD( callmoveBottomRight, QRect )
154  QPoint arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
155  value.moveBottomRight(arg0);
156 END_VARIANT_METHOD
157 
158 START_VARIANT_METHOD( callmoveCenter, QRect )
159  QPoint arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
160  value.moveCenter(arg0);
161 END_VARIANT_METHOD
162 
163 START_VARIANT_METHOD( callmoveLeft, QRect )
164  int arg0 = KJSEmbed::extractInt(exec, args, 0);
165  value.moveLeft(arg0);
166 END_VARIANT_METHOD
167 
168 START_VARIANT_METHOD( callmoveRight, QRect )
169  int arg0 = KJSEmbed::extractInt(exec, args, 0);
170  value.moveRight(arg0);
171 END_VARIANT_METHOD
172 
173 START_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  }
185 END_VARIANT_METHOD
186 
187 START_VARIANT_METHOD( callmoveTop, QRect )
188  int arg0 = KJSEmbed::extractInt(exec, args, 0);
189  value.moveTop(arg0);
190 END_VARIANT_METHOD
191 
192 START_VARIANT_METHOD( callmoveTopLeft, QRect )
193  QPoint arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
194  value.moveTopLeft(arg0);
195 END_VARIANT_METHOD
196 
197 START_VARIANT_METHOD( callmoveTopRight, QRect )
198  QPoint arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
199  value.moveTopRight(arg0);
200 END_VARIANT_METHOD
201 
202 START_VARIANT_METHOD( callnormalized, QRect )
203  QRect cppValue = value.normalized();
204  result = KJSEmbed::createVariant(exec, "QRect", cppValue );
205 END_VARIANT_METHOD
206 
207 START_VARIANT_METHOD( callright, QRect )
208  int cppValue = value.right();
209  result = KJS::jsNumber(cppValue);
210 END_VARIANT_METHOD
211 
212 START_VARIANT_METHOD( callsetBottom, QRect )
213  int arg0 = KJSEmbed::extractInt(exec, args, 0);
214  value.setBottom(arg0);
215 END_VARIANT_METHOD
216 
217 START_VARIANT_METHOD( callsetBottomLeft, QRect )
218  QPoint arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
219  value.setBottomLeft(arg0);
220 END_VARIANT_METHOD
221 
222 START_VARIANT_METHOD( callsetBottomRight, QRect )
223  QPoint arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
224  value.setBottomRight(arg0);
225 END_VARIANT_METHOD
226 
227 START_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);
233 END_VARIANT_METHOD
234 
235 START_VARIANT_METHOD( callsetHeight, QRect )
236  int arg0 = KJSEmbed::extractInt(exec, args, 0);
237  value.setHeight(arg0);
238 END_VARIANT_METHOD
239 
240 START_VARIANT_METHOD( callsetLeft, QRect )
241  int arg0 = KJSEmbed::extractInt(exec, args, 0);
242  value.setLeft(arg0);
243 END_VARIANT_METHOD
244 
245 START_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);
251 END_VARIANT_METHOD
252 
253 START_VARIANT_METHOD( callsetRight, QRect )
254  int arg0 = KJSEmbed::extractInt(exec, args, 0);
255  value.setRight(arg0);
256 END_VARIANT_METHOD
257 
258 START_VARIANT_METHOD( callsetSize, QRect )
259  QSize arg0 = KJSEmbed::extractVariant<QSize>(exec,args, 0);
260  value.setSize(arg0);
261 END_VARIANT_METHOD
262 
263 START_VARIANT_METHOD( callsetTop, QRect )
264  int arg0 = KJSEmbed::extractInt(exec, args, 0);
265  value.setTop(arg0);
266 END_VARIANT_METHOD
267 
268 START_VARIANT_METHOD( callsetTopLeft, QRect )
269  QPoint arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
270  value.setTopLeft(arg0);
271 END_VARIANT_METHOD
272 
273 START_VARIANT_METHOD( callsetTopRight, QRect )
274  QPoint arg0 = KJSEmbed::extractVariant<QPoint>(exec,args, 0);
275  value.setTopRight(arg0);
276 END_VARIANT_METHOD
277 
278 START_VARIANT_METHOD( callsetWidth, QRect )
279  int arg0 = KJSEmbed::extractInt(exec, args, 0);
280  value.setWidth(arg0);
281 END_VARIANT_METHOD
282 
283 START_VARIANT_METHOD( callsetX, QRect )
284  int arg0 = KJSEmbed::extractInt(exec, args, 0);
285  value.setX(arg0);
286 END_VARIANT_METHOD
287 
288 START_VARIANT_METHOD( callsetY, QRect )
289  int arg0 = KJSEmbed::extractInt(exec, args, 0);
290  value.setY(arg0);
291 END_VARIANT_METHOD
292 
293 START_VARIANT_METHOD( callsize, QRect )
294  QSize cppValue = value.size();
295  result = KJSEmbed::createVariant(exec, "QSize", cppValue );
296 END_VARIANT_METHOD
297 
298 START_VARIANT_METHOD( calltop, QRect )
299  int cppValue = value.top();
300  result = KJS::jsNumber(cppValue);
301 END_VARIANT_METHOD
302 
303 START_VARIANT_METHOD( calltopLeft, QRect )
304  QPoint cppValue = value.topLeft();
305  result = KJSEmbed::createVariant(exec, "QPoint", cppValue );
306 END_VARIANT_METHOD
307 
308 START_VARIANT_METHOD( calltopRight, QRect )
309  QPoint cppValue = value.topRight();
310  result = KJSEmbed::createVariant(exec, "QPoint", cppValue );
311 END_VARIANT_METHOD
312 
313 START_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  }
325 END_VARIANT_METHOD
326 
327 START_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  }
341 END_VARIANT_METHOD
342 
343 START_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 );
347 END_VARIANT_METHOD
348 
349 START_VARIANT_METHOD( callwidth, QRect )
350  int cppValue = value.width();
351  result = KJS::jsNumber(cppValue);
352 END_VARIANT_METHOD
353 
354 START_VARIANT_METHOD( callx, QRect )
355  int cppValue = value.x();
356  result = KJS::jsNumber(cppValue);
357 END_VARIANT_METHOD
358 
359 START_VARIANT_METHOD( cally, QRect )
360  int cppValue = value.y();
361  result = KJS::jsNumber(cppValue);
362 END_VARIANT_METHOD
363 }
364 
365 START_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}
417 END_METHOD_LUT
418 
419 NO_ENUMS( Rect )
420 NO_STATICS( Rect )
421 
422 START_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() );
441 END_CTOR
442 
443 //kate: indent-spaces on; indent-width 4; replace-tabs on; indent-mode cstyle;
RectNS::moveTop
value moveTop(arg0)
RectNS::result
result
Definition: rect.cpp:55
RectNS::setHeight
value setHeight(arg0)
START_METHOD_LUT
START_METHOD_LUT(Rect)
Definition: rect.cpp:365
RectNS::if
END_VARIANT_METHOD if(args.size()==2)
Definition: rect.cpp:80
RectNS::arg2
int arg2
Definition: rect.cpp:44
RectNS::setTopLeft
value setTopLeft(arg0)
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:88
RectNS::moveBottomLeft
value moveBottomLeft(arg0)
RectNS::moveBottomRight
value moveBottomRight(arg0)
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
RectNS::setTop
value setTop(arg0)
RectNS::moveTopRight
value moveTopRight(arg0)
RectNS::arg3
int arg3
Definition: rect.cpp:45
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
RectNS::moveCenter
value moveCenter(arg0)
RectNS::setBottomRight
value setBottomRight(arg0)
END_CTOR
#define END_CTOR
Definition: binding_support.h:166
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
WidgetNS::x
int x
Definition: qwidget_binding.cpp:71
RectNS::moveRight
value moveRight(arg0)
START_CTOR
#define START_CTOR(TYPE, JSNAME, ARGS)
Definition: binding_support.h:157
RectNS::setBottomLeft
value setBottomLeft(arg0)
rect.h
RectNS::adjust
value adjust(arg0, arg1, arg2, arg3)
RectNS::setSize
value setSize(arg0)
NO_ENUMS
#define NO_ENUMS(TYPE)
Definition: binding_support.h:147
RectNS::setCoords
value setCoords(arg0, arg1, arg2, arg3)
WidgetNS::y
int y
Definition: qwidget_binding.cpp:71
END_METHOD_LUT
#define END_METHOD_LUT
Definition: binding_support.h:135
RectNS::moveTopLeft
value moveTopLeft(arg0)
RectNS::moveLeft
value moveLeft(arg0)
RectNS::setRect
value setRect(arg0, arg1, arg2, arg3)
RectNS::setRight
value setRight(arg0)
KJSEmbed::RectBinding::RectBinding
RectBinding(KJS::ExecState *exec, const QRect &value)
Definition: rect.cpp:31
RectNS::setY
value setY(arg0)
KJSEmbed::VariantFactory::methods
static const Method * methods()
Definition: variant_binding.h:251
KJSEmbed::RectBinding
Definition: rect.h:35
RectNS::setTopRight
value setTopRight(arg0)
RectNS::setX
value setX(arg0)
cppValue
END_OBJECT_METHOD QBrush cppValue
Definition: qpainter_binding.cpp:97
RectNS::moveBottom
value moveBottom(arg0)
END_VARIANT_METHOD
#define END_VARIANT_METHOD
End a variant method started by START_VARIANT_METHOD.
Definition: variant_binding.h:56
arg0
END_OBJECT_METHOD QPolygon arg0
Definition: qpainter_binding.cpp:179
arg1
Qt::FillRule arg1
Definition: qpainter_binding.cpp:307
WidgetNS::width
END_QOBJECT_METHOD int width
Definition: qwidget_binding.cpp:90
RectNS::setBottom
value setBottom(arg0)
RectNS::setWidth
value setWidth(arg0)
START_VARIANT_METHOD
#define START_VARIANT_METHOD(METHODNAME, TYPE)
A simple variant syle method.
Definition: variant_binding.h:42
value
QVariant value
Definition: settings.cpp:35
RectNS::setLeft
value setLeft(arg0)
KJSEmbed::extractVariant
QVariant KJSEMBED_EXPORT extractVariant(KJS::ExecState *exec, KJS::JSValue *value)
Extracts a QVariant from a KJS::JSValue if the conversion fails a QVariant::Null is returned...
Definition: variant_binding.cpp:407
NO_STATICS
#define NO_STATICS(TYPE)
Definition: binding_support.h:153
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