|
1 /** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
2 * All rights reserved. |
|
3 * This component and the accompanying materials are made available |
|
4 * under the terms of the License "Eclipse Public License v1.0" |
|
5 * which accompanies this distribution, and is available |
|
6 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 * |
|
8 * Initial Contributors: |
|
9 * Nokia Corporation - initial contribution. |
|
10 * |
|
11 * Contributors: |
|
12 * |
|
13 * Description: |
|
14 * |
|
15 */ |
|
16 #include <QDebug> |
|
17 #include <smcmockclassincludes.h> |
|
18 #include <qpainterpath.h> |
|
19 #include <QTransform> |
|
20 #include <QFont> |
|
21 |
|
22 // NOTE! The following header include requires |
|
23 // INCLUDEPATH += /epoc32/include/mw/QtGui/private |
|
24 //#include <qpainterpath_p.h> |
|
25 class QPainterPathStrokerPrivate {}; |
|
26 class QPainterPathData : public QPainterPathPrivate {}; |
|
27 |
|
28 struct QPainterPathPrivateDeleter |
|
29 { |
|
30 static inline void cleanup(QPainterPathPrivate *d) |
|
31 { |
|
32 // note - we must up-cast to QPainterPathData since QPainterPathPrivate |
|
33 // has a non-virtual destructor! |
|
34 if (d && !d->ref.deref()) |
|
35 delete static_cast<QPainterPathData *>(d); |
|
36 } |
|
37 }; |
|
38 |
|
39 |
|
40 // ============================ MEMBER FUNCTIONS =============================== |
|
41 |
|
42 |
|
43 #ifndef QT_NO_DATASTREAM |
|
44 // ----------------------------------------------------------------------------- |
|
45 // QPainterPathPrivate::operator<< |
|
46 // ----------------------------------------------------------------------------- |
|
47 // |
|
48 /*QDataStream & QPainterPathPrivate::operator<<( |
|
49 QDataStream &, |
|
50 const QPainterPath & ) |
|
51 { |
|
52 SMC_MOCK_METHOD2( QDataStream &, QDataStream, &, |
|
53 const QPainterPath, & ) |
|
54 }*/ |
|
55 |
|
56 |
|
57 // ----------------------------------------------------------------------------- |
|
58 // QPainterPathPrivate::operator>> |
|
59 // ----------------------------------------------------------------------------- |
|
60 // |
|
61 /*QDataStream & QPainterPathPrivate::operator>>( |
|
62 QDataStream &, |
|
63 QPainterPath & ) |
|
64 { |
|
65 SMC_MOCK_METHOD2( QDataStream &, QDataStream, &, |
|
66 QPainterPath, & ) |
|
67 }*/ |
|
68 #endif |
|
69 |
|
70 |
|
71 // ----------------------------------------------------------------------------- |
|
72 // QPainterPathStroker::~QPainterPathStroker |
|
73 // ----------------------------------------------------------------------------- |
|
74 // |
|
75 QPainterPathStroker::~QPainterPathStroker( ) |
|
76 { |
|
77 |
|
78 } |
|
79 |
|
80 |
|
81 // ----------------------------------------------------------------------------- |
|
82 // QPainterPathStroker::setWidth |
|
83 // ----------------------------------------------------------------------------- |
|
84 // |
|
85 void QPainterPathStroker::setWidth( |
|
86 qreal width ) |
|
87 { |
|
88 SMC_MOCK_METHOD1( void, qreal, width ) |
|
89 } |
|
90 |
|
91 |
|
92 // ----------------------------------------------------------------------------- |
|
93 // QPainterPathStroker::width |
|
94 // ----------------------------------------------------------------------------- |
|
95 // |
|
96 qreal QPainterPathStroker::width( ) const |
|
97 { |
|
98 SMC_MOCK_METHOD0( qreal ) |
|
99 } |
|
100 |
|
101 |
|
102 // ----------------------------------------------------------------------------- |
|
103 // QPainterPathStroker::setCapStyle |
|
104 // ----------------------------------------------------------------------------- |
|
105 // |
|
106 void QPainterPathStroker::setCapStyle( |
|
107 Qt::PenCapStyle style ) |
|
108 { |
|
109 SMC_MOCK_METHOD1( void, Qt::PenCapStyle, style ) |
|
110 } |
|
111 |
|
112 |
|
113 // ----------------------------------------------------------------------------- |
|
114 // QPainterPathStroker::capStyle |
|
115 // ----------------------------------------------------------------------------- |
|
116 // |
|
117 Qt::PenCapStyle QPainterPathStroker::capStyle( ) const |
|
118 { |
|
119 SMC_MOCK_METHOD0( Qt::PenCapStyle ) |
|
120 } |
|
121 |
|
122 |
|
123 // ----------------------------------------------------------------------------- |
|
124 // QPainterPathStroker::setJoinStyle |
|
125 // ----------------------------------------------------------------------------- |
|
126 // |
|
127 void QPainterPathStroker::setJoinStyle( |
|
128 Qt::PenJoinStyle style ) |
|
129 { |
|
130 SMC_MOCK_METHOD1( void, Qt::PenJoinStyle, style ) |
|
131 } |
|
132 |
|
133 |
|
134 // ----------------------------------------------------------------------------- |
|
135 // QPainterPathStroker::joinStyle |
|
136 // ----------------------------------------------------------------------------- |
|
137 // |
|
138 Qt::PenJoinStyle QPainterPathStroker::joinStyle( ) const |
|
139 { |
|
140 SMC_MOCK_METHOD0( Qt::PenJoinStyle ) |
|
141 } |
|
142 |
|
143 |
|
144 // ----------------------------------------------------------------------------- |
|
145 // QPainterPathStroker::setMiterLimit |
|
146 // ----------------------------------------------------------------------------- |
|
147 // |
|
148 void QPainterPathStroker::setMiterLimit( |
|
149 qreal length ) |
|
150 { |
|
151 SMC_MOCK_METHOD1( void, qreal, length ) |
|
152 } |
|
153 |
|
154 |
|
155 // ----------------------------------------------------------------------------- |
|
156 // QPainterPathStroker::miterLimit |
|
157 // ----------------------------------------------------------------------------- |
|
158 // |
|
159 qreal QPainterPathStroker::miterLimit( ) const |
|
160 { |
|
161 SMC_MOCK_METHOD0( qreal ) |
|
162 } |
|
163 |
|
164 |
|
165 // ----------------------------------------------------------------------------- |
|
166 // QPainterPathStroker::setCurveThreshold |
|
167 // ----------------------------------------------------------------------------- |
|
168 // |
|
169 void QPainterPathStroker::setCurveThreshold( |
|
170 qreal threshold ) |
|
171 { |
|
172 SMC_MOCK_METHOD1( void, qreal, threshold ) |
|
173 } |
|
174 |
|
175 |
|
176 // ----------------------------------------------------------------------------- |
|
177 // QPainterPathStroker::curveThreshold |
|
178 // ----------------------------------------------------------------------------- |
|
179 // |
|
180 qreal QPainterPathStroker::curveThreshold( ) const |
|
181 { |
|
182 SMC_MOCK_METHOD0( qreal ) |
|
183 } |
|
184 |
|
185 |
|
186 // ----------------------------------------------------------------------------- |
|
187 // QPainterPathStroker::setDashPattern |
|
188 // ----------------------------------------------------------------------------- |
|
189 // |
|
190 void QPainterPathStroker::setDashPattern( |
|
191 Qt::PenStyle style ) |
|
192 { |
|
193 SMC_MOCK_METHOD1( void, Qt::PenStyle, style ) |
|
194 } |
|
195 |
|
196 |
|
197 // ----------------------------------------------------------------------------- |
|
198 // QPainterPathStroker::setDashPattern |
|
199 // ----------------------------------------------------------------------------- |
|
200 // |
|
201 void QPainterPathStroker::setDashPattern( |
|
202 const QVector<qreal> & dashPattern ) |
|
203 { |
|
204 SMC_MOCK_METHOD1( void, const QVector<qreal> &, dashPattern ) |
|
205 } |
|
206 |
|
207 |
|
208 // ----------------------------------------------------------------------------- |
|
209 // QPainterPathStroker::dashPattern |
|
210 // ----------------------------------------------------------------------------- |
|
211 // |
|
212 QVector <qreal > QPainterPathStroker::dashPattern( ) const |
|
213 { |
|
214 SMC_MOCK_METHOD0( QVector <qreal > ) |
|
215 } |
|
216 |
|
217 |
|
218 // ----------------------------------------------------------------------------- |
|
219 // QPainterPathStroker::setDashOffset |
|
220 // ----------------------------------------------------------------------------- |
|
221 // |
|
222 void QPainterPathStroker::setDashOffset( |
|
223 qreal offset ) |
|
224 { |
|
225 SMC_MOCK_METHOD1( void, qreal, offset ) |
|
226 } |
|
227 |
|
228 |
|
229 // ----------------------------------------------------------------------------- |
|
230 // QPainterPathStroker::dashOffset |
|
231 // ----------------------------------------------------------------------------- |
|
232 // |
|
233 qreal QPainterPathStroker::dashOffset( ) const |
|
234 { |
|
235 SMC_MOCK_METHOD0( qreal ) |
|
236 } |
|
237 |
|
238 |
|
239 // ----------------------------------------------------------------------------- |
|
240 // QPainterPathStroker::createStroke |
|
241 // ----------------------------------------------------------------------------- |
|
242 // |
|
243 QPainterPath QPainterPathStroker::createStroke( |
|
244 const QPainterPath & path ) const |
|
245 { |
|
246 SMC_MOCK_METHOD1( QPainterPath, const QPainterPath &, path ) |
|
247 } |
|
248 |
|
249 |
|
250 // ----------------------------------------------------------------------------- |
|
251 // QPainterPath::QPainterPath |
|
252 // ----------------------------------------------------------------------------- |
|
253 // |
|
254 QPainterPath::QPainterPath( ) |
|
255 { |
|
256 |
|
257 } |
|
258 |
|
259 |
|
260 // ----------------------------------------------------------------------------- |
|
261 // QPainterPath::QPainterPath |
|
262 // ----------------------------------------------------------------------------- |
|
263 // |
|
264 QPainterPath::QPainterPath( |
|
265 const QPointF & startPoint ) |
|
266 { |
|
267 |
|
268 } |
|
269 |
|
270 |
|
271 // ----------------------------------------------------------------------------- |
|
272 // QPainterPath::QPainterPath |
|
273 // ----------------------------------------------------------------------------- |
|
274 // |
|
275 QPainterPath::QPainterPath( |
|
276 const QPainterPath & other ) |
|
277 { |
|
278 |
|
279 } |
|
280 |
|
281 |
|
282 // ----------------------------------------------------------------------------- |
|
283 // QPainterPath::operator= |
|
284 // ----------------------------------------------------------------------------- |
|
285 // |
|
286 QPainterPath & QPainterPath::operator=( |
|
287 const QPainterPath & other ) |
|
288 { |
|
289 SMC_MOCK_METHOD1( QPainterPath &, const QPainterPath &, other ) |
|
290 } |
|
291 |
|
292 |
|
293 // ----------------------------------------------------------------------------- |
|
294 // QPainterPath::~QPainterPath |
|
295 // ----------------------------------------------------------------------------- |
|
296 // |
|
297 QPainterPath::~QPainterPath( ) |
|
298 { |
|
299 |
|
300 } |
|
301 |
|
302 |
|
303 // ----------------------------------------------------------------------------- |
|
304 // QPainterPath::closeSubpath |
|
305 // ----------------------------------------------------------------------------- |
|
306 // |
|
307 void QPainterPath::closeSubpath( ) |
|
308 { |
|
309 SMC_MOCK_METHOD0( void ) |
|
310 } |
|
311 |
|
312 |
|
313 // ----------------------------------------------------------------------------- |
|
314 // QPainterPath::moveTo |
|
315 // ----------------------------------------------------------------------------- |
|
316 // |
|
317 void QPainterPath::moveTo( |
|
318 const QPointF & p ) |
|
319 { |
|
320 SMC_MOCK_METHOD1( void, const QPointF &, p ) |
|
321 } |
|
322 |
|
323 |
|
324 // ----------------------------------------------------------------------------- |
|
325 // QPainterPath::lineTo |
|
326 // ----------------------------------------------------------------------------- |
|
327 // |
|
328 void QPainterPath::lineTo( |
|
329 const QPointF & p ) |
|
330 { |
|
331 SMC_MOCK_METHOD1( void, const QPointF &, p ) |
|
332 } |
|
333 |
|
334 |
|
335 // ----------------------------------------------------------------------------- |
|
336 // QPainterPath::arcMoveTo |
|
337 // ----------------------------------------------------------------------------- |
|
338 // |
|
339 void QPainterPath::arcMoveTo( |
|
340 const QRectF & rect, |
|
341 qreal angle ) |
|
342 { |
|
343 SMC_MOCK_METHOD2( void, const QRectF &, rect, |
|
344 qreal, angle ) |
|
345 } |
|
346 |
|
347 |
|
348 // ----------------------------------------------------------------------------- |
|
349 // QPainterPath::arcTo |
|
350 // ----------------------------------------------------------------------------- |
|
351 // |
|
352 void QPainterPath::arcTo( |
|
353 const QRectF & rect, |
|
354 qreal startAngle, |
|
355 qreal arcLength ) |
|
356 { |
|
357 SMC_MOCK_METHOD3( void, const QRectF &, rect, |
|
358 qreal, startAngle, |
|
359 qreal, arcLength ) |
|
360 } |
|
361 |
|
362 |
|
363 // ----------------------------------------------------------------------------- |
|
364 // QPainterPath::cubicTo |
|
365 // ----------------------------------------------------------------------------- |
|
366 // |
|
367 void QPainterPath::cubicTo( |
|
368 const QPointF & ctrlPt1, |
|
369 const QPointF & ctrlPt2, |
|
370 const QPointF & endPt ) |
|
371 { |
|
372 SMC_MOCK_METHOD3( void, const QPointF &, ctrlPt1, |
|
373 const QPointF &, ctrlPt2, |
|
374 const QPointF &, endPt ) |
|
375 } |
|
376 |
|
377 |
|
378 // ----------------------------------------------------------------------------- |
|
379 // QPainterPath::quadTo |
|
380 // ----------------------------------------------------------------------------- |
|
381 // |
|
382 void QPainterPath::quadTo( |
|
383 const QPointF & ctrlPt, |
|
384 const QPointF & endPt ) |
|
385 { |
|
386 SMC_MOCK_METHOD2( void, const QPointF &, ctrlPt, |
|
387 const QPointF &, endPt ) |
|
388 } |
|
389 |
|
390 |
|
391 // ----------------------------------------------------------------------------- |
|
392 // QPainterPath::currentPosition |
|
393 // ----------------------------------------------------------------------------- |
|
394 // |
|
395 QPointF QPainterPath::currentPosition( ) const |
|
396 { |
|
397 SMC_MOCK_METHOD0( QPointF ) |
|
398 } |
|
399 |
|
400 |
|
401 // ----------------------------------------------------------------------------- |
|
402 // QPainterPath::addRect |
|
403 // ----------------------------------------------------------------------------- |
|
404 // |
|
405 void QPainterPath::addRect( |
|
406 const QRectF & rect ) |
|
407 { |
|
408 SMC_MOCK_METHOD1( void, const QRectF &, rect ) |
|
409 } |
|
410 |
|
411 |
|
412 // ----------------------------------------------------------------------------- |
|
413 // QPainterPath::addEllipse |
|
414 // ----------------------------------------------------------------------------- |
|
415 // |
|
416 void QPainterPath::addEllipse( |
|
417 const QRectF & rect ) |
|
418 { |
|
419 SMC_MOCK_METHOD1( void, const QRectF &, rect ) |
|
420 } |
|
421 |
|
422 |
|
423 // ----------------------------------------------------------------------------- |
|
424 // QPainterPath::addPolygon |
|
425 // ----------------------------------------------------------------------------- |
|
426 // |
|
427 void QPainterPath::addPolygon( |
|
428 const QPolygonF & polygon ) |
|
429 { |
|
430 SMC_MOCK_METHOD1( void, const QPolygonF &, polygon ) |
|
431 } |
|
432 |
|
433 |
|
434 // ----------------------------------------------------------------------------- |
|
435 // QPainterPath::addText |
|
436 // ----------------------------------------------------------------------------- |
|
437 // |
|
438 void QPainterPath::addText( |
|
439 const QPointF & point, |
|
440 const QFont & f, |
|
441 const QString & text ) |
|
442 { |
|
443 SMC_MOCK_METHOD3( void, const QPointF &, point, |
|
444 const QFont &, f, |
|
445 const QString &, text ) |
|
446 } |
|
447 |
|
448 |
|
449 // ----------------------------------------------------------------------------- |
|
450 // QPainterPath::addPath |
|
451 // ----------------------------------------------------------------------------- |
|
452 // |
|
453 void QPainterPath::addPath( |
|
454 const QPainterPath & path ) |
|
455 { |
|
456 SMC_MOCK_METHOD1( void, const QPainterPath &, path ) |
|
457 } |
|
458 |
|
459 |
|
460 // ----------------------------------------------------------------------------- |
|
461 // QPainterPath::addRegion |
|
462 // ----------------------------------------------------------------------------- |
|
463 // |
|
464 void QPainterPath::addRegion( |
|
465 const QRegion & region ) |
|
466 { |
|
467 SMC_MOCK_METHOD1( void, const QRegion &, region ) |
|
468 } |
|
469 |
|
470 |
|
471 // ----------------------------------------------------------------------------- |
|
472 // QPainterPath::addRoundedRect |
|
473 // ----------------------------------------------------------------------------- |
|
474 // |
|
475 void QPainterPath::addRoundedRect( |
|
476 const QRectF & rect, |
|
477 qreal xRadius, |
|
478 qreal yRadius, |
|
479 Qt::SizeMode mode ) |
|
480 { |
|
481 SMC_MOCK_METHOD4( void, const QRectF &, rect, |
|
482 qreal, xRadius, |
|
483 qreal, yRadius, |
|
484 Qt::SizeMode, mode ) |
|
485 } |
|
486 |
|
487 |
|
488 // ----------------------------------------------------------------------------- |
|
489 // QPainterPath::addRoundRect |
|
490 // ----------------------------------------------------------------------------- |
|
491 // |
|
492 void QPainterPath::addRoundRect( |
|
493 const QRectF & rect, |
|
494 int xRnd, |
|
495 int yRnd ) |
|
496 { |
|
497 SMC_MOCK_METHOD3( void, const QRectF &, rect, |
|
498 int, xRnd, |
|
499 int, yRnd ) |
|
500 } |
|
501 |
|
502 |
|
503 // ----------------------------------------------------------------------------- |
|
504 // QPainterPath::connectPath |
|
505 // ----------------------------------------------------------------------------- |
|
506 // |
|
507 void QPainterPath::connectPath( |
|
508 const QPainterPath & path ) |
|
509 { |
|
510 SMC_MOCK_METHOD1( void, const QPainterPath &, path ) |
|
511 } |
|
512 |
|
513 |
|
514 // ----------------------------------------------------------------------------- |
|
515 // QPainterPath::contains |
|
516 // ----------------------------------------------------------------------------- |
|
517 // |
|
518 bool QPainterPath::contains( |
|
519 const QPointF & pt ) const |
|
520 { |
|
521 SMC_MOCK_METHOD1( bool, const QPointF &, pt ) |
|
522 } |
|
523 |
|
524 |
|
525 // ----------------------------------------------------------------------------- |
|
526 // QPainterPath::contains |
|
527 // ----------------------------------------------------------------------------- |
|
528 // |
|
529 bool QPainterPath::contains( |
|
530 const QRectF & rect ) const |
|
531 { |
|
532 SMC_MOCK_METHOD1( bool, const QRectF &, rect ) |
|
533 } |
|
534 |
|
535 |
|
536 // ----------------------------------------------------------------------------- |
|
537 // QPainterPath::intersects |
|
538 // ----------------------------------------------------------------------------- |
|
539 // |
|
540 bool QPainterPath::intersects( |
|
541 const QRectF & rect ) const |
|
542 { |
|
543 SMC_MOCK_METHOD1( bool, const QRectF &, rect ) |
|
544 } |
|
545 |
|
546 |
|
547 // ----------------------------------------------------------------------------- |
|
548 // QPainterPath::translate |
|
549 // ----------------------------------------------------------------------------- |
|
550 // |
|
551 void QPainterPath::translate( |
|
552 qreal dx, |
|
553 qreal dy ) |
|
554 { |
|
555 SMC_MOCK_METHOD2( void, qreal, dx, |
|
556 qreal, dy ) |
|
557 } |
|
558 |
|
559 |
|
560 // ----------------------------------------------------------------------------- |
|
561 // QPainterPath::translated |
|
562 // ----------------------------------------------------------------------------- |
|
563 // |
|
564 QPainterPath QPainterPath::translated( |
|
565 qreal dx, |
|
566 qreal dy ) const |
|
567 { |
|
568 SMC_MOCK_METHOD2( QPainterPath, qreal, dx, |
|
569 qreal, dy ) |
|
570 } |
|
571 |
|
572 |
|
573 // ----------------------------------------------------------------------------- |
|
574 // QPainterPath::boundingRect |
|
575 // ----------------------------------------------------------------------------- |
|
576 // |
|
577 QRectF QPainterPath::boundingRect( ) const |
|
578 { |
|
579 SMC_MOCK_METHOD0( QRectF ) |
|
580 } |
|
581 |
|
582 |
|
583 // ----------------------------------------------------------------------------- |
|
584 // QPainterPath::controlPointRect |
|
585 // ----------------------------------------------------------------------------- |
|
586 // |
|
587 QRectF QPainterPath::controlPointRect( ) const |
|
588 { |
|
589 SMC_MOCK_METHOD0( QRectF ) |
|
590 } |
|
591 |
|
592 |
|
593 // ----------------------------------------------------------------------------- |
|
594 // QPainterPath::fillRule |
|
595 // ----------------------------------------------------------------------------- |
|
596 // |
|
597 Qt::FillRule QPainterPath::fillRule( ) const |
|
598 { |
|
599 SMC_MOCK_METHOD0( Qt::FillRule ) |
|
600 } |
|
601 |
|
602 |
|
603 // ----------------------------------------------------------------------------- |
|
604 // QPainterPath::setFillRule |
|
605 // ----------------------------------------------------------------------------- |
|
606 // |
|
607 void QPainterPath::setFillRule( |
|
608 Qt::FillRule fillRule ) |
|
609 { |
|
610 SMC_MOCK_METHOD1( void, Qt::FillRule, fillRule ) |
|
611 } |
|
612 |
|
613 |
|
614 // ----------------------------------------------------------------------------- |
|
615 // QPainterPath::toReversed |
|
616 // ----------------------------------------------------------------------------- |
|
617 // |
|
618 QPainterPath QPainterPath::toReversed( ) const |
|
619 { |
|
620 SMC_MOCK_METHOD0( QPainterPath ) |
|
621 } |
|
622 |
|
623 |
|
624 // ----------------------------------------------------------------------------- |
|
625 // QPainterPath::toSubpathPolygons |
|
626 // ----------------------------------------------------------------------------- |
|
627 // |
|
628 QList <QPolygonF > QPainterPath::toSubpathPolygons( |
|
629 const QMatrix & matrix ) const |
|
630 { |
|
631 SMC_MOCK_METHOD1( QList <QPolygonF >, const QMatrix &, matrix ) |
|
632 } |
|
633 |
|
634 |
|
635 // ----------------------------------------------------------------------------- |
|
636 // QPainterPath::toFillPolygons |
|
637 // ----------------------------------------------------------------------------- |
|
638 // |
|
639 QList <QPolygonF > QPainterPath::toFillPolygons( |
|
640 const QMatrix & matrix ) const |
|
641 { |
|
642 SMC_MOCK_METHOD1( QList <QPolygonF >, const QMatrix &, matrix ) |
|
643 } |
|
644 |
|
645 |
|
646 // ----------------------------------------------------------------------------- |
|
647 // QPainterPath::toFillPolygon |
|
648 // ----------------------------------------------------------------------------- |
|
649 // |
|
650 QPolygonF QPainterPath::toFillPolygon( |
|
651 const QMatrix & matrix ) const |
|
652 { |
|
653 SMC_MOCK_METHOD1( QPolygonF, const QMatrix &, matrix ) |
|
654 } |
|
655 |
|
656 |
|
657 // ----------------------------------------------------------------------------- |
|
658 // QPainterPath::toSubpathPolygons |
|
659 // ----------------------------------------------------------------------------- |
|
660 // |
|
661 QList <QPolygonF > QPainterPath::toSubpathPolygons( |
|
662 const QTransform & matrix ) const |
|
663 { |
|
664 SMC_MOCK_METHOD1( QList <QPolygonF >, const QTransform &, matrix ) |
|
665 } |
|
666 |
|
667 |
|
668 // ----------------------------------------------------------------------------- |
|
669 // QPainterPath::toFillPolygons |
|
670 // ----------------------------------------------------------------------------- |
|
671 // |
|
672 QList <QPolygonF > QPainterPath::toFillPolygons( |
|
673 const QTransform & matrix ) const |
|
674 { |
|
675 SMC_MOCK_METHOD1( QList <QPolygonF >, const QTransform &, matrix ) |
|
676 } |
|
677 |
|
678 |
|
679 // ----------------------------------------------------------------------------- |
|
680 // QPainterPath::toFillPolygon |
|
681 // ----------------------------------------------------------------------------- |
|
682 // |
|
683 QPolygonF QPainterPath::toFillPolygon( |
|
684 const QTransform & matrix ) const |
|
685 { |
|
686 SMC_MOCK_METHOD1( QPolygonF, const QTransform &, matrix ) |
|
687 } |
|
688 |
|
689 |
|
690 // ----------------------------------------------------------------------------- |
|
691 // QPainterPath::length |
|
692 // ----------------------------------------------------------------------------- |
|
693 // |
|
694 qreal QPainterPath::length( ) const |
|
695 { |
|
696 SMC_MOCK_METHOD0( qreal ) |
|
697 } |
|
698 |
|
699 |
|
700 // ----------------------------------------------------------------------------- |
|
701 // QPainterPath::percentAtLength |
|
702 // ----------------------------------------------------------------------------- |
|
703 // |
|
704 qreal QPainterPath::percentAtLength( |
|
705 qreal t ) const |
|
706 { |
|
707 SMC_MOCK_METHOD1( qreal, qreal, t ) |
|
708 } |
|
709 |
|
710 |
|
711 // ----------------------------------------------------------------------------- |
|
712 // QPainterPath::pointAtPercent |
|
713 // ----------------------------------------------------------------------------- |
|
714 // |
|
715 QPointF QPainterPath::pointAtPercent( |
|
716 qreal t ) const |
|
717 { |
|
718 SMC_MOCK_METHOD1( QPointF, qreal, t ) |
|
719 } |
|
720 |
|
721 |
|
722 // ----------------------------------------------------------------------------- |
|
723 // QPainterPath::angleAtPercent |
|
724 // ----------------------------------------------------------------------------- |
|
725 // |
|
726 qreal QPainterPath::angleAtPercent( |
|
727 qreal t ) const |
|
728 { |
|
729 SMC_MOCK_METHOD1( qreal, qreal, t ) |
|
730 } |
|
731 |
|
732 |
|
733 // ----------------------------------------------------------------------------- |
|
734 // QPainterPath::slopeAtPercent |
|
735 // ----------------------------------------------------------------------------- |
|
736 // |
|
737 qreal QPainterPath::slopeAtPercent( |
|
738 qreal t ) const |
|
739 { |
|
740 SMC_MOCK_METHOD1( qreal, qreal, t ) |
|
741 } |
|
742 |
|
743 |
|
744 // ----------------------------------------------------------------------------- |
|
745 // QPainterPath::intersects |
|
746 // ----------------------------------------------------------------------------- |
|
747 // |
|
748 bool QPainterPath::intersects( |
|
749 const QPainterPath & p ) const |
|
750 { |
|
751 SMC_MOCK_METHOD1( bool, const QPainterPath &, p ) |
|
752 } |
|
753 |
|
754 |
|
755 // ----------------------------------------------------------------------------- |
|
756 // QPainterPath::contains |
|
757 // ----------------------------------------------------------------------------- |
|
758 // |
|
759 bool QPainterPath::contains( |
|
760 const QPainterPath & p ) const |
|
761 { |
|
762 SMC_MOCK_METHOD1( bool, const QPainterPath &, p ) |
|
763 } |
|
764 |
|
765 |
|
766 // ----------------------------------------------------------------------------- |
|
767 // QPainterPath::united |
|
768 // ----------------------------------------------------------------------------- |
|
769 // |
|
770 QPainterPath QPainterPath::united( |
|
771 const QPainterPath & r ) const |
|
772 { |
|
773 SMC_MOCK_METHOD1( QPainterPath, const QPainterPath &, r ) |
|
774 } |
|
775 |
|
776 |
|
777 // ----------------------------------------------------------------------------- |
|
778 // QPainterPath::intersected |
|
779 // ----------------------------------------------------------------------------- |
|
780 // |
|
781 QPainterPath QPainterPath::intersected( |
|
782 const QPainterPath & r ) const |
|
783 { |
|
784 SMC_MOCK_METHOD1( QPainterPath, const QPainterPath &, r ) |
|
785 } |
|
786 |
|
787 |
|
788 // ----------------------------------------------------------------------------- |
|
789 // QPainterPath::subtracted |
|
790 // ----------------------------------------------------------------------------- |
|
791 // |
|
792 QPainterPath QPainterPath::subtracted( |
|
793 const QPainterPath & r ) const |
|
794 { |
|
795 SMC_MOCK_METHOD1( QPainterPath, const QPainterPath &, r ) |
|
796 } |
|
797 |
|
798 |
|
799 // ----------------------------------------------------------------------------- |
|
800 // QPainterPath::subtractedInverted |
|
801 // ----------------------------------------------------------------------------- |
|
802 // |
|
803 QPainterPath QPainterPath::subtractedInverted( |
|
804 const QPainterPath & r ) const |
|
805 { |
|
806 SMC_MOCK_METHOD1( QPainterPath, const QPainterPath &, r ) |
|
807 } |
|
808 |
|
809 |
|
810 // ----------------------------------------------------------------------------- |
|
811 // QPainterPath::simplified |
|
812 // ----------------------------------------------------------------------------- |
|
813 // |
|
814 QPainterPath QPainterPath::simplified( ) const |
|
815 { |
|
816 SMC_MOCK_METHOD0( QPainterPath ) |
|
817 } |
|
818 |
|
819 |
|
820 // ----------------------------------------------------------------------------- |
|
821 // QPainterPath::operator== |
|
822 // ----------------------------------------------------------------------------- |
|
823 // |
|
824 bool QPainterPath::operator==( |
|
825 const QPainterPath & other ) const |
|
826 { |
|
827 SMC_MOCK_METHOD1( bool, const QPainterPath &, other ) |
|
828 } |
|
829 |
|
830 |
|
831 // ----------------------------------------------------------------------------- |
|
832 // QPainterPath::operator!= |
|
833 // ----------------------------------------------------------------------------- |
|
834 // |
|
835 bool QPainterPath::operator!=( |
|
836 const QPainterPath & other ) const |
|
837 { |
|
838 SMC_MOCK_METHOD1( bool, const QPainterPath &, other ) |
|
839 } |
|
840 |
|
841 |
|
842 // ----------------------------------------------------------------------------- |
|
843 // QPainterPath::operator& |
|
844 // ----------------------------------------------------------------------------- |
|
845 // |
|
846 QPainterPath QPainterPath::operator&( |
|
847 const QPainterPath & other ) const |
|
848 { |
|
849 SMC_MOCK_METHOD1( QPainterPath, const QPainterPath &, other ) |
|
850 } |
|
851 |
|
852 |
|
853 // ----------------------------------------------------------------------------- |
|
854 // QPainterPath::operator| |
|
855 // ----------------------------------------------------------------------------- |
|
856 // |
|
857 QPainterPath QPainterPath::operator|( |
|
858 const QPainterPath & other ) const |
|
859 { |
|
860 SMC_MOCK_METHOD1( QPainterPath, const QPainterPath &, other ) |
|
861 } |
|
862 |
|
863 |
|
864 // ----------------------------------------------------------------------------- |
|
865 // QPainterPath::operator+ |
|
866 // ----------------------------------------------------------------------------- |
|
867 // |
|
868 QPainterPath QPainterPath::operator+( |
|
869 const QPainterPath & other ) const |
|
870 { |
|
871 SMC_MOCK_METHOD1( QPainterPath, const QPainterPath &, other ) |
|
872 } |
|
873 |
|
874 |
|
875 // ----------------------------------------------------------------------------- |
|
876 // QPainterPath::operator- |
|
877 // ----------------------------------------------------------------------------- |
|
878 // |
|
879 QPainterPath QPainterPath::operator-( |
|
880 const QPainterPath & other ) const |
|
881 { |
|
882 SMC_MOCK_METHOD1( QPainterPath, const QPainterPath &, other ) |
|
883 } |
|
884 |
|
885 |
|
886 // ----------------------------------------------------------------------------- |
|
887 // QPainterPath::operator&= |
|
888 // ----------------------------------------------------------------------------- |
|
889 // |
|
890 QPainterPath & QPainterPath::operator&=( |
|
891 const QPainterPath & other ) |
|
892 { |
|
893 SMC_MOCK_METHOD1( QPainterPath &, const QPainterPath &, other ) |
|
894 } |
|
895 |
|
896 |
|
897 // ----------------------------------------------------------------------------- |
|
898 // QPainterPath::operator= |
|
899 // ----------------------------------------------------------------------------- |
|
900 // |
|
901 /*QPainterPath & QPainterPath::operator=( |
|
902 const QPainterPath & other ) |
|
903 { |
|
904 SMC_MOCK_METHOD1( QPainterPath &, const QPainterPath &, other ) |
|
905 }*/ |
|
906 |
|
907 |
|
908 // ----------------------------------------------------------------------------- |
|
909 // QPainterPath::operator+= |
|
910 // ----------------------------------------------------------------------------- |
|
911 // |
|
912 QPainterPath & QPainterPath::operator+=( |
|
913 const QPainterPath & other ) |
|
914 { |
|
915 SMC_MOCK_METHOD1( QPainterPath &, const QPainterPath &, other ) |
|
916 } |
|
917 |
|
918 |
|
919 // ----------------------------------------------------------------------------- |
|
920 // QPainterPath::operator-= |
|
921 // ----------------------------------------------------------------------------- |
|
922 // |
|
923 QPainterPath & QPainterPath::operator-=( |
|
924 const QPainterPath & other ) |
|
925 { |
|
926 SMC_MOCK_METHOD1( QPainterPath &, const QPainterPath &, other ) |
|
927 } |
|
928 |
|
929 |