/
qpicture.go
654 lines (537 loc) · 18.8 KB
/
qpicture.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
package qtgui
// /usr/include/qt/QtGui/qpicture.h
// #include <qpicture.h>
// #include <QtGui>
// header block end
// main block begin
// main block end
// use block begin
// use block end
// ext block begin
/*
#include <stdlib.h>
// extern C begin: 17
*/
// import "C"
import "unsafe"
import "reflect"
import "fmt"
import "log"
import "github.com/kitech/qt.go/qtrt"
import "github.com/kitech/qt.go/qtcore"
// ext block end
// body block begin
// int metric(QPaintDevice::PaintDeviceMetric)
func (this *QPicture) InheritMetric(f func(m int) int) {
qtrt.SetAllInheritCallback(this, "metric", f)
}
/*
*/
type QPicture struct {
*QPaintDevice
}
type QPicture_ITF interface {
QPaintDevice_ITF
QPicture_PTR() *QPicture
}
func (ptr *QPicture) QPicture_PTR() *QPicture { return ptr }
func (this *QPicture) GetCthis() unsafe.Pointer {
if this == nil {
return nil
} else {
return this.QPaintDevice.GetCthis()
}
}
func (this *QPicture) SetCthis(cthis unsafe.Pointer) {
this.QPaintDevice = NewQPaintDeviceFromPointer(cthis)
}
func NewQPictureFromPointer(cthis unsafe.Pointer) *QPicture {
bcthis0 := NewQPaintDeviceFromPointer(cthis)
return &QPicture{bcthis0}
}
func (*QPicture) NewFromPointer(cthis unsafe.Pointer) *QPicture {
return NewQPictureFromPointer(cthis)
}
// /usr/include/qt/QtGui/qpicture.h:59
// index:0
// Public Visibility=Default Availability=Available
// [-2] void QPicture(int)
/*
Constructs an empty picture.
The formatVersion parameter may be used to create a QPicture that can be read by applications that are compiled with earlier versions of Qt.
Note that the default formatVersion is -1 which signifies the current release, i.e. for Qt 4.0 a formatVersion of 7 is the same as the default formatVersion of -1.
Reading pictures generated by earlier versions of Qt is not supported in Qt 4.0.
*/
func (*QPicture) NewForInherit(formatVersion int) *QPicture {
return NewQPicture(formatVersion)
}
func NewQPicture(formatVersion int) *QPicture {
rv, err := qtrt.InvokeQtFunc6("_ZN8QPictureC2Ei", qtrt.FFI_TYPE_POINTER, formatVersion)
qtrt.ErrPrint(err, rv)
gothis := NewQPictureFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.SetFinalizer(gothis, DeleteQPicture)
return gothis
}
// /usr/include/qt/QtGui/qpicture.h:59
// index:0
// Public Visibility=Default Availability=Available
// [-2] void QPicture(int)
/*
Constructs an empty picture.
The formatVersion parameter may be used to create a QPicture that can be read by applications that are compiled with earlier versions of Qt.
Note that the default formatVersion is -1 which signifies the current release, i.e. for Qt 4.0 a formatVersion of 7 is the same as the default formatVersion of -1.
Reading pictures generated by earlier versions of Qt is not supported in Qt 4.0.
*/
func (*QPicture) NewForInheritp() *QPicture {
return NewQPicturep()
}
func NewQPicturep() *QPicture {
// arg: 0, int=Int, =Invalid, , Invalid
formatVersion := int(-1)
rv, err := qtrt.InvokeQtFunc6("_ZN8QPictureC2Ei", qtrt.FFI_TYPE_POINTER, formatVersion)
qtrt.ErrPrint(err, rv)
gothis := NewQPictureFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.SetFinalizer(gothis, DeleteQPicture)
return gothis
}
// /usr/include/qt/QtGui/qpicture.h:61
// index:0
// Public virtual Visibility=Default Availability=Available
// [-2] void ~QPicture()
/*
*/
func DeleteQPicture(this *QPicture) {
rv, err := qtrt.InvokeQtFunc6("_ZN8QPictureD2Ev", qtrt.FFI_TYPE_VOID, this.GetCthis())
qtrt.Cmemset(this.GetCthis(), 9, 32)
qtrt.ErrPrint(err, rv)
this.SetCthis(nil)
}
// /usr/include/qt/QtGui/qpicture.h:63
// index:0
// Public Visibility=Default Availability=Available
// [1] bool isNull() const
/*
Returns true if the picture contains no data; otherwise returns false.
*/
func (this *QPicture) IsNull() bool {
rv, err := qtrt.InvokeQtFunc6("_ZNK8QPicture6isNullEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
return rv != 0
}
// /usr/include/qt/QtGui/qpicture.h:65
// index:0
// Public virtual Visibility=Default Availability=Available
// [4] int devType() const
/*
*/
func (this *QPicture) DevType() int {
rv, err := qtrt.InvokeQtFunc6("_ZNK8QPicture7devTypeEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
return qtrt.Cretval2go("int", rv).(int) // 1111
}
// /usr/include/qt/QtGui/qpicture.h:66
// index:0
// Public Visibility=Default Availability=Available
// [4] uint size() const
/*
Returns the size of the picture data.
See also data().
*/
func (this *QPicture) Size() uint {
rv, err := qtrt.InvokeQtFunc6("_ZNK8QPicture4sizeEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
return uint(rv) // 222
}
// /usr/include/qt/QtGui/qpicture.h:67
// index:0
// Public Visibility=Default Availability=Available
// [8] const char * data() const
/*
Returns a pointer to the picture data. The pointer is only valid until the next non-const function is called on this picture. The returned pointer is 0 if the picture contains no data.
See also setData(), size(), and isNull().
*/
func (this *QPicture) Data() string {
rv, err := qtrt.InvokeQtFunc6("_ZNK8QPicture4dataEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
return qtrt.GoStringI(rv)
}
// /usr/include/qt/QtGui/qpicture.h:68
// index:0
// Public virtual Visibility=Default Availability=Available
// [-2] void setData(const char *, uint)
/*
Sets the picture data directly from data and size. This function copies the input data.
See also data() and size().
*/
func (this *QPicture) SetData(data string, size uint) {
var convArg0 = qtrt.CString(data)
defer qtrt.FreeMem(convArg0)
rv, err := qtrt.InvokeQtFunc6("_ZN8QPicture7setDataEPKcj", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0, size)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qpicture.h:70
// index:0
// Public Visibility=Default Availability=Available
// [1] bool play(QPainter *)
/*
Replays the picture using painter, and returns true if successful; otherwise returns false.
This function does exactly the same as QPainter::drawPicture() with (x, y) = (0, 0).
*/
func (this *QPicture) Play(p QPainter_ITF /*777 QPainter **/) bool {
var convArg0 unsafe.Pointer
if p != nil && p.QPainter_PTR() != nil {
convArg0 = p.QPainter_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZN8QPicture4playEP8QPainter", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
return rv != 0
}
// /usr/include/qt/QtGui/qpicture.h:72
// index:0
// Public Visibility=Default Availability=Available
// [1] bool load(QIODevice *, const char *)
/*
Loads a picture from the file specified by fileName and returns true if successful; otherwise invalidates the picture and returns false.
Please note that the format parameter has been deprecated and will have no effect.
See also save().
*/
func (this *QPicture) Load(dev qtcore.QIODevice_ITF /*777 QIODevice **/, format string) bool {
var convArg0 unsafe.Pointer
if dev != nil && dev.QIODevice_PTR() != nil {
convArg0 = dev.QIODevice_PTR().GetCthis()
}
var convArg1 = qtrt.CString(format)
defer qtrt.FreeMem(convArg1)
rv, err := qtrt.InvokeQtFunc6("_ZN8QPicture4loadEP9QIODevicePKc", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0, convArg1)
qtrt.ErrPrint(err, rv)
return rv != 0
}
// /usr/include/qt/QtGui/qpicture.h:72
// index:0
// Public Visibility=Default Availability=Available
// [1] bool load(QIODevice *, const char *)
/*
Loads a picture from the file specified by fileName and returns true if successful; otherwise invalidates the picture and returns false.
Please note that the format parameter has been deprecated and will have no effect.
See also save().
*/
func (this *QPicture) Loadp(dev qtcore.QIODevice_ITF /*777 QIODevice **/) bool {
var convArg0 unsafe.Pointer
if dev != nil && dev.QIODevice_PTR() != nil {
convArg0 = dev.QIODevice_PTR().GetCthis()
}
// arg: 1, const char *=Pointer, =Invalid, , Invalid
var convArg1 unsafe.Pointer
rv, err := qtrt.InvokeQtFunc6("_ZN8QPicture4loadEP9QIODevicePKc", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0, convArg1)
qtrt.ErrPrint(err, rv)
return rv != 0
}
// /usr/include/qt/QtGui/qpicture.h:73
// index:1
// Public Visibility=Default Availability=Available
// [1] bool load(const QString &, const char *)
/*
Loads a picture from the file specified by fileName and returns true if successful; otherwise invalidates the picture and returns false.
Please note that the format parameter has been deprecated and will have no effect.
See also save().
*/
func (this *QPicture) Load1(fileName string, format string) bool {
var tmpArg0 = qtcore.NewQString5(fileName)
var convArg0 = tmpArg0.GetCthis()
var convArg1 = qtrt.CString(format)
defer qtrt.FreeMem(convArg1)
rv, err := qtrt.InvokeQtFunc6("_ZN8QPicture4loadERK7QStringPKc", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0, convArg1)
qtrt.ErrPrint(err, rv)
return rv != 0
}
// /usr/include/qt/QtGui/qpicture.h:73
// index:1
// Public Visibility=Default Availability=Available
// [1] bool load(const QString &, const char *)
/*
Loads a picture from the file specified by fileName and returns true if successful; otherwise invalidates the picture and returns false.
Please note that the format parameter has been deprecated and will have no effect.
See also save().
*/
func (this *QPicture) Load1p(fileName string) bool {
var tmpArg0 = qtcore.NewQString5(fileName)
var convArg0 = tmpArg0.GetCthis()
// arg: 1, const char *=Pointer, =Invalid, , Invalid
var convArg1 unsafe.Pointer
rv, err := qtrt.InvokeQtFunc6("_ZN8QPicture4loadERK7QStringPKc", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0, convArg1)
qtrt.ErrPrint(err, rv)
return rv != 0
}
// /usr/include/qt/QtGui/qpicture.h:74
// index:0
// Public Visibility=Default Availability=Available
// [1] bool save(QIODevice *, const char *)
/*
Saves a picture to the file specified by fileName and returns true if successful; otherwise returns false.
Please note that the format parameter has been deprecated and will have no effect.
See also load().
*/
func (this *QPicture) Save(dev qtcore.QIODevice_ITF /*777 QIODevice **/, format string) bool {
var convArg0 unsafe.Pointer
if dev != nil && dev.QIODevice_PTR() != nil {
convArg0 = dev.QIODevice_PTR().GetCthis()
}
var convArg1 = qtrt.CString(format)
defer qtrt.FreeMem(convArg1)
rv, err := qtrt.InvokeQtFunc6("_ZN8QPicture4saveEP9QIODevicePKc", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0, convArg1)
qtrt.ErrPrint(err, rv)
return rv != 0
}
// /usr/include/qt/QtGui/qpicture.h:74
// index:0
// Public Visibility=Default Availability=Available
// [1] bool save(QIODevice *, const char *)
/*
Saves a picture to the file specified by fileName and returns true if successful; otherwise returns false.
Please note that the format parameter has been deprecated and will have no effect.
See also load().
*/
func (this *QPicture) Savep(dev qtcore.QIODevice_ITF /*777 QIODevice **/) bool {
var convArg0 unsafe.Pointer
if dev != nil && dev.QIODevice_PTR() != nil {
convArg0 = dev.QIODevice_PTR().GetCthis()
}
// arg: 1, const char *=Pointer, =Invalid, , Invalid
var convArg1 unsafe.Pointer
rv, err := qtrt.InvokeQtFunc6("_ZN8QPicture4saveEP9QIODevicePKc", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0, convArg1)
qtrt.ErrPrint(err, rv)
return rv != 0
}
// /usr/include/qt/QtGui/qpicture.h:75
// index:1
// Public Visibility=Default Availability=Available
// [1] bool save(const QString &, const char *)
/*
Saves a picture to the file specified by fileName and returns true if successful; otherwise returns false.
Please note that the format parameter has been deprecated and will have no effect.
See also load().
*/
func (this *QPicture) Save1(fileName string, format string) bool {
var tmpArg0 = qtcore.NewQString5(fileName)
var convArg0 = tmpArg0.GetCthis()
var convArg1 = qtrt.CString(format)
defer qtrt.FreeMem(convArg1)
rv, err := qtrt.InvokeQtFunc6("_ZN8QPicture4saveERK7QStringPKc", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0, convArg1)
qtrt.ErrPrint(err, rv)
return rv != 0
}
// /usr/include/qt/QtGui/qpicture.h:75
// index:1
// Public Visibility=Default Availability=Available
// [1] bool save(const QString &, const char *)
/*
Saves a picture to the file specified by fileName and returns true if successful; otherwise returns false.
Please note that the format parameter has been deprecated and will have no effect.
See also load().
*/
func (this *QPicture) Save1p(fileName string) bool {
var tmpArg0 = qtcore.NewQString5(fileName)
var convArg0 = tmpArg0.GetCthis()
// arg: 1, const char *=Pointer, =Invalid, , Invalid
var convArg1 unsafe.Pointer
rv, err := qtrt.InvokeQtFunc6("_ZN8QPicture4saveERK7QStringPKc", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0, convArg1)
qtrt.ErrPrint(err, rv)
return rv != 0
}
// /usr/include/qt/QtGui/qpicture.h:77
// index:0
// Public Visibility=Default Availability=Available
// [16] QRect boundingRect() const
/*
Returns the picture's bounding rectangle or an invalid rectangle if the picture contains no data.
See also setBoundingRect().
*/
func (this *QPicture) BoundingRect() *qtcore.QRect /*123*/ {
rv, err := qtrt.InvokeQtFunc6("_ZNK8QPicture12boundingRectEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
rv2 := qtcore.NewQRectFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2, qtcore.DeleteQRect)
return rv2
}
// /usr/include/qt/QtGui/qpicture.h:78
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setBoundingRect(const QRect &)
/*
Sets the picture's bounding rectangle to r. The automatically calculated value is overridden.
See also boundingRect().
*/
func (this *QPicture) SetBoundingRect(r qtcore.QRect_ITF) {
var convArg0 unsafe.Pointer
if r != nil && r.QRect_PTR() != nil {
convArg0 = r.QRect_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZN8QPicture15setBoundingRectERK5QRect", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qpicture.h:80
// index:0
// Public Visibility=Default Availability=Available
// [32] QPicture & operator=(const QPicture &)
/*
*/
func (this *QPicture) Operator_equal(p QPicture_ITF) *QPicture {
var convArg0 unsafe.Pointer
if p != nil && p.QPicture_PTR() != nil {
convArg0 = p.QPicture_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZN8QPictureaSERKS_", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
rv2 := /*==*/ NewQPictureFromPointer(unsafe.Pointer(uintptr(rv))) // 4441
qtrt.SetFinalizer(rv2 /*==*/, DeleteQPicture)
return rv2
}
// /usr/include/qt/QtGui/qpicture.h:82
// index:1
// Public inline Visibility=Default Availability=Available
// [32] QPicture & operator=(QPicture &&)
/*
*/
func (this *QPicture) Operator_equal1(other unsafe.Pointer /*333*/) *QPicture {
rv, err := qtrt.InvokeQtFunc6("_ZN8QPictureaSEOS_", qtrt.FFI_TYPE_POINTER, this.GetCthis(), other)
qtrt.ErrPrint(err, rv)
rv2 := /*==*/ NewQPictureFromPointer(unsafe.Pointer(uintptr(rv))) // 4441
qtrt.SetFinalizer(rv2 /*==*/, DeleteQPicture)
return rv2
}
// /usr/include/qt/QtGui/qpicture.h:85
// index:0
// Public inline Visibility=Default Availability=Available
// [-2] void swap(QPicture &)
/*
Swaps picture other with this picture. This operation is very fast and never fails.
This function was introduced in Qt 4.8.
*/
func (this *QPicture) Swap(other QPicture_ITF) {
var convArg0 unsafe.Pointer
if other != nil && other.QPicture_PTR() != nil {
convArg0 = other.QPicture_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZN8QPicture4swapERS_", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qpicture.h:87
// index:0
// Public Visibility=Default Availability=Available
// [-2] void detach()
/*
*/
func (this *QPicture) Detach() {
rv, err := qtrt.InvokeQtFunc6("_ZN8QPicture6detachEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qpicture.h:88
// index:0
// Public Visibility=Default Availability=Available
// [1] bool isDetached() const
/*
*/
func (this *QPicture) IsDetached() bool {
rv, err := qtrt.InvokeQtFunc6("_ZNK8QPicture10isDetachedEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
return rv != 0
}
// /usr/include/qt/QtGui/qpicture.h:94
// index:0
// Public static Visibility=Default Availability=Available
// [8] const char * pictureFormat(const QString &)
/*
*/
func (this *QPicture) PictureFormat(fileName string) string {
var tmpArg0 = qtcore.NewQString5(fileName)
var convArg0 = tmpArg0.GetCthis()
rv, err := qtrt.InvokeQtFunc6("_ZN8QPicture13pictureFormatERK7QString", qtrt.FFI_TYPE_POINTER, convArg0)
qtrt.ErrPrint(err, rv)
return qtrt.GoStringI(rv)
}
func QPicture_PictureFormat(fileName string) string {
var nilthis *QPicture
rv := nilthis.PictureFormat(fileName)
return rv
}
// /usr/include/qt/QtGui/qpicture.h:97
// index:0
// Public static Visibility=Default Availability=Available
// [8] QStringList inputFormatList()
/*
*/
func (this *QPicture) InputFormatList() *qtcore.QStringList /*123*/ {
rv, err := qtrt.InvokeQtFunc6("_ZN8QPicture15inputFormatListEv", qtrt.FFI_TYPE_POINTER)
qtrt.ErrPrint(err, rv)
rv2 := qtcore.NewQStringListFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2, qtcore.DeleteQStringList)
return rv2
}
func QPicture_InputFormatList() *qtcore.QStringList /*123*/ {
var nilthis *QPicture
rv := nilthis.InputFormatList()
return rv
}
// /usr/include/qt/QtGui/qpicture.h:98
// index:0
// Public static Visibility=Default Availability=Available
// [8] QStringList outputFormatList()
/*
*/
func (this *QPicture) OutputFormatList() *qtcore.QStringList /*123*/ {
rv, err := qtrt.InvokeQtFunc6("_ZN8QPicture16outputFormatListEv", qtrt.FFI_TYPE_POINTER)
qtrt.ErrPrint(err, rv)
rv2 := qtcore.NewQStringListFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2, qtcore.DeleteQStringList)
return rv2
}
func QPicture_OutputFormatList() *qtcore.QStringList /*123*/ {
var nilthis *QPicture
rv := nilthis.OutputFormatList()
return rv
}
// /usr/include/qt/QtGui/qpicture.h:101
// index:0
// Public virtual Visibility=Default Availability=Available
// [8] QPaintEngine * paintEngine() const
/*
*/
func (this *QPicture) PaintEngine() *QPaintEngine /*777 QPaintEngine **/ {
rv, err := qtrt.InvokeQtFunc6("_ZNK8QPicture11paintEngineEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
return /*==*/ NewQPaintEngineFromPointer(unsafe.Pointer(uintptr(rv))) // 444
}
// /usr/include/qt/QtGui/qpicture.h:106
// index:0
// Protected virtual Visibility=Default Availability=Available
// [4] int metric(QPaintDevice::PaintDeviceMetric) const
/*
*/
func (this *QPicture) Metric(m int) int {
rv, err := qtrt.InvokeQtFunc6("_ZNK8QPicture6metricEN12QPaintDevice17PaintDeviceMetricE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), m)
qtrt.ErrPrint(err, rv)
return qtrt.Cretval2go("int", rv).(int) // 1111
}
// body block end
// keep block begin
func init_unused_10921() {
if false {
reflect.TypeOf(123)
}
if false {
reflect.TypeOf(unsafe.Sizeof(0))
}
if false {
fmt.Println(123)
}
if false {
log.Println(123)
}
if false {
qtrt.KeepMe()
}
if false {
qtcore.KeepMe()
}
}
// keep block end