/
qregion.go
1203 lines (992 loc) · 33.9 KB
/
qregion.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
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package qtgui
// /usr/include/qt/QtGui/qregion.h
// #include <qregion.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: 109
*/
// 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
/*
*/
type QRegion struct {
*qtrt.CObject
}
type QRegion_ITF interface {
QRegion_PTR() *QRegion
}
func (ptr *QRegion) QRegion_PTR() *QRegion { return ptr }
func (this *QRegion) GetCthis() unsafe.Pointer {
if this == nil {
return nil
} else {
return this.Cthis
}
}
func (this *QRegion) SetCthis(cthis unsafe.Pointer) {
if this.CObject == nil {
this.CObject = &qtrt.CObject{cthis}
} else {
this.CObject.Cthis = cthis
}
}
func NewQRegionFromPointer(cthis unsafe.Pointer) *QRegion {
return &QRegion{&qtrt.CObject{cthis}}
}
func (*QRegion) NewFromPointer(cthis unsafe.Pointer) *QRegion {
return NewQRegionFromPointer(cthis)
}
// /usr/include/qt/QtGui/qregion.h:67
// index:0
// Public Visibility=Default Availability=Available
// [-2] void QRegion()
/*
Constructs an empty region.
See also isEmpty().
*/
func (*QRegion) NewForInherit() *QRegion {
return NewQRegion()
}
func NewQRegion() *QRegion {
rv, err := qtrt.InvokeQtFunc6("_ZN7QRegionC2Ev", qtrt.FFI_TYPE_POINTER)
qtrt.ErrPrint(err, rv)
gothis := NewQRegionFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.SetFinalizer(gothis, DeleteQRegion)
return gothis
}
// /usr/include/qt/QtGui/qregion.h:68
// index:1
// Public Visibility=Default Availability=Available
// [-2] void QRegion(int, int, int, int, QRegion::RegionType)
/*
Constructs an empty region.
See also isEmpty().
*/
func (*QRegion) NewForInherit1(x int, y int, w int, h int, t int) *QRegion {
return NewQRegion1(x, y, w, h, t)
}
func NewQRegion1(x int, y int, w int, h int, t int) *QRegion {
rv, err := qtrt.InvokeQtFunc6("_ZN7QRegionC2EiiiiNS_10RegionTypeE", qtrt.FFI_TYPE_POINTER, x, y, w, h, t)
qtrt.ErrPrint(err, rv)
gothis := NewQRegionFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.SetFinalizer(gothis, DeleteQRegion)
return gothis
}
// /usr/include/qt/QtGui/qregion.h:68
// index:1
// Public Visibility=Default Availability=Available
// [-2] void QRegion(int, int, int, int, QRegion::RegionType)
/*
Constructs an empty region.
See also isEmpty().
*/
func (*QRegion) NewForInherit1p(x int, y int, w int, h int) *QRegion {
return NewQRegion1p(x, y, w, h)
}
func NewQRegion1p(x int, y int, w int, h int) *QRegion {
// arg: 4, QRegion::RegionType=Enum, QRegion::RegionType=Enum, , Invalid
t := 0
rv, err := qtrt.InvokeQtFunc6("_ZN7QRegionC2EiiiiNS_10RegionTypeE", qtrt.FFI_TYPE_POINTER, x, y, w, h, t)
qtrt.ErrPrint(err, rv)
gothis := NewQRegionFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.SetFinalizer(gothis, DeleteQRegion)
return gothis
}
// /usr/include/qt/QtGui/qregion.h:69
// index:2
// Public Visibility=Default Availability=Available
// [-2] void QRegion(const QRect &, QRegion::RegionType)
/*
Constructs an empty region.
See also isEmpty().
*/
func (*QRegion) NewForInherit2(r qtcore.QRect_ITF, t int) *QRegion {
return NewQRegion2(r, t)
}
func NewQRegion2(r qtcore.QRect_ITF, t int) *QRegion {
var convArg0 unsafe.Pointer
if r != nil && r.QRect_PTR() != nil {
convArg0 = r.QRect_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZN7QRegionC2ERK5QRectNS_10RegionTypeE", qtrt.FFI_TYPE_POINTER, convArg0, t)
qtrt.ErrPrint(err, rv)
gothis := NewQRegionFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.SetFinalizer(gothis, DeleteQRegion)
return gothis
}
// /usr/include/qt/QtGui/qregion.h:69
// index:2
// Public Visibility=Default Availability=Available
// [-2] void QRegion(const QRect &, QRegion::RegionType)
/*
Constructs an empty region.
See also isEmpty().
*/
func (*QRegion) NewForInherit2p(r qtcore.QRect_ITF) *QRegion {
return NewQRegion2p(r)
}
func NewQRegion2p(r qtcore.QRect_ITF) *QRegion {
var convArg0 unsafe.Pointer
if r != nil && r.QRect_PTR() != nil {
convArg0 = r.QRect_PTR().GetCthis()
}
// arg: 1, QRegion::RegionType=Enum, QRegion::RegionType=Enum, , Invalid
t := 0
rv, err := qtrt.InvokeQtFunc6("_ZN7QRegionC2ERK5QRectNS_10RegionTypeE", qtrt.FFI_TYPE_POINTER, convArg0, t)
qtrt.ErrPrint(err, rv)
gothis := NewQRegionFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.SetFinalizer(gothis, DeleteQRegion)
return gothis
}
// /usr/include/qt/QtGui/qregion.h:70
// index:3
// Public Visibility=Default Availability=Available
// [-2] void QRegion(const QPolygon &, Qt::FillRule)
/*
Constructs an empty region.
See also isEmpty().
*/
func (*QRegion) NewForInherit3(pa QPolygon_ITF, fillRule int) *QRegion {
return NewQRegion3(pa, fillRule)
}
func NewQRegion3(pa QPolygon_ITF, fillRule int) *QRegion {
var convArg0 unsafe.Pointer
if pa != nil && pa.QPolygon_PTR() != nil {
convArg0 = pa.QPolygon_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZN7QRegionC2ERK8QPolygonN2Qt8FillRuleE", qtrt.FFI_TYPE_POINTER, convArg0, fillRule)
qtrt.ErrPrint(err, rv)
gothis := NewQRegionFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.SetFinalizer(gothis, DeleteQRegion)
return gothis
}
// /usr/include/qt/QtGui/qregion.h:70
// index:3
// Public Visibility=Default Availability=Available
// [-2] void QRegion(const QPolygon &, Qt::FillRule)
/*
Constructs an empty region.
See also isEmpty().
*/
func (*QRegion) NewForInherit3p(pa QPolygon_ITF) *QRegion {
return NewQRegion3p(pa)
}
func NewQRegion3p(pa QPolygon_ITF) *QRegion {
var convArg0 unsafe.Pointer
if pa != nil && pa.QPolygon_PTR() != nil {
convArg0 = pa.QPolygon_PTR().GetCthis()
}
// arg: 1, Qt::FillRule=Elaborated, Qt::FillRule=Enum, , Invalid
fillRule := 0
rv, err := qtrt.InvokeQtFunc6("_ZN7QRegionC2ERK8QPolygonN2Qt8FillRuleE", qtrt.FFI_TYPE_POINTER, convArg0, fillRule)
qtrt.ErrPrint(err, rv)
gothis := NewQRegionFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.SetFinalizer(gothis, DeleteQRegion)
return gothis
}
// /usr/include/qt/QtGui/qregion.h:74
// index:4
// Public Visibility=Default Availability=Available
// [-2] void QRegion(const QBitmap &)
/*
Constructs an empty region.
See also isEmpty().
*/
func (*QRegion) NewForInherit4(bitmap QBitmap_ITF) *QRegion {
return NewQRegion4(bitmap)
}
func NewQRegion4(bitmap QBitmap_ITF) *QRegion {
var convArg0 unsafe.Pointer
if bitmap != nil && bitmap.QBitmap_PTR() != nil {
convArg0 = bitmap.QBitmap_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZN7QRegionC2ERK7QBitmap", qtrt.FFI_TYPE_POINTER, convArg0)
qtrt.ErrPrint(err, rv)
gothis := NewQRegionFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.SetFinalizer(gothis, DeleteQRegion)
return gothis
}
// /usr/include/qt/QtGui/qregion.h:75
// index:0
// Public Visibility=Default Availability=Available
// [-2] void ~QRegion()
/*
*/
func DeleteQRegion(this *QRegion) {
rv, err := qtrt.InvokeQtFunc6("_ZN7QRegionD2Ev", qtrt.FFI_TYPE_VOID, this.GetCthis())
qtrt.Cmemset(this.GetCthis(), 9, 8)
qtrt.ErrPrint(err, rv)
this.SetCthis(nil)
}
// /usr/include/qt/QtGui/qregion.h:76
// index:0
// Public Visibility=Default Availability=Available
// [8] QRegion & operator=(const QRegion &)
/*
*/
func (this *QRegion) Operator_equal(arg0 QRegion_ITF) *QRegion {
var convArg0 unsafe.Pointer
if arg0 != nil && arg0.QRegion_PTR() != nil {
convArg0 = arg0.QRegion_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZN7QRegionaSERKS_", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
rv2 := /*==*/ NewQRegionFromPointer(unsafe.Pointer(uintptr(rv))) // 4441
qtrt.SetFinalizer(rv2 /*==*/, DeleteQRegion)
return rv2
}
// /usr/include/qt/QtGui/qregion.h:78
// index:1
// Public inline Visibility=Default Availability=Available
// [8] QRegion & operator=(QRegion &&)
/*
*/
func (this *QRegion) Operator_equal1(other unsafe.Pointer /*333*/) *QRegion {
rv, err := qtrt.InvokeQtFunc6("_ZN7QRegionaSEOS_", qtrt.FFI_TYPE_POINTER, this.GetCthis(), other)
qtrt.ErrPrint(err, rv)
rv2 := /*==*/ NewQRegionFromPointer(unsafe.Pointer(uintptr(rv))) // 4441
qtrt.SetFinalizer(rv2 /*==*/, DeleteQRegion)
return rv2
}
// /usr/include/qt/QtGui/qregion.h:81
// index:0
// Public inline Visibility=Default Availability=Available
// [-2] void swap(QRegion &)
/*
Swaps region other with this region. This operation is very fast and never fails.
This function was introduced in Qt 4.8.
*/
func (this *QRegion) Swap(other QRegion_ITF) {
var convArg0 unsafe.Pointer
if other != nil && other.QRegion_PTR() != nil {
convArg0 = other.QRegion_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZN7QRegion4swapERS_", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qregion.h:82
// index:0
// Public Visibility=Default Availability=Available
// [1] bool isEmpty() const
/*
Returns true if the region is empty; otherwise returns false. An empty region is a region that contains no points.
Example:
QRegion r1(10, 10, 20, 20);
r1.isEmpty(); // false
QRegion r3;
r3.isEmpty(); // true
QRegion r2(40, 40, 20, 20);
r3 = r1.intersected(r2); // r3: intersection of r1 and r2
r3.isEmpty(); // true
r3 = r1.united(r2); // r3: union of r1 and r2
r3.isEmpty(); // false
*/
func (this *QRegion) IsEmpty() bool {
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegion7isEmptyEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
return rv != 0
}
// /usr/include/qt/QtGui/qregion.h:83
// index:0
// Public Visibility=Default Availability=Available
// [1] bool isNull() const
/*
Returns true if the region is empty; otherwise returns false. An empty region is a region that contains no points. This function is the same as isEmpty
This function was introduced in Qt 5.0.
See also isEmpty().
*/
func (this *QRegion) IsNull() bool {
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegion6isNullEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
return rv != 0
}
// /usr/include/qt/QtGui/qregion.h:88
// index:0
// Public Visibility=Default Availability=Available
// [8] QRegion::const_iterator begin() const
/*
Returns a const_iterator pointing to the beginning of the range of non-overlapping rectangles that make up the region.
The union of all the rectangles is equal to the original region.
This function was introduced in Qt 5.8.
See also rbegin(), cbegin(), and end().
*/
func (this *QRegion) Begin() *qtcore.QRect /*777 const QRect **/ {
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegion5beginEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
rv2 := qtcore.NewQRectFromPointer(unsafe.Pointer(uintptr(rv))) //555
return rv2
}
// /usr/include/qt/QtGui/qregion.h:89
// index:0
// Public inline Visibility=Default Availability=Available
// [8] QRegion::const_iterator cbegin() const
/*
Same as begin().
This function was introduced in Qt 5.8.
*/
func (this *QRegion) Cbegin() *qtcore.QRect /*777 const QRect **/ {
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegion6cbeginEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
rv2 := qtcore.NewQRectFromPointer(unsafe.Pointer(uintptr(rv))) //555
return rv2
}
// /usr/include/qt/QtGui/qregion.h:90
// index:0
// Public Visibility=Default Availability=Available
// [8] QRegion::const_iterator end() const
/*
Returns a const_iterator pointing to one past the end of non-overlapping rectangles that make up the region.
The union of all the rectangles is equal to the original region.
This function was introduced in Qt 5.8.
See also rend(), cend(), and begin().
*/
func (this *QRegion) End() *qtcore.QRect /*777 const QRect **/ {
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegion3endEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
rv2 := qtcore.NewQRectFromPointer(unsafe.Pointer(uintptr(rv))) //555
return rv2
}
// /usr/include/qt/QtGui/qregion.h:91
// index:0
// Public inline Visibility=Default Availability=Available
// [8] QRegion::const_iterator cend() const
/*
Same as end().
This function was introduced in Qt 5.8.
*/
func (this *QRegion) Cend() *qtcore.QRect /*777 const QRect **/ {
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegion4cendEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
rv2 := qtcore.NewQRectFromPointer(unsafe.Pointer(uintptr(rv))) //555
return rv2
}
// /usr/include/qt/QtGui/qregion.h:97
// index:0
// Public Visibility=Default Availability=Available
// [1] bool contains(const QPoint &) const
/*
Returns true if the region contains the point p; otherwise returns false.
*/
func (this *QRegion) Contains(p qtcore.QPoint_ITF) bool {
var convArg0 unsafe.Pointer
if p != nil && p.QPoint_PTR() != nil {
convArg0 = p.QPoint_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegion8containsERK6QPoint", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
return rv != 0
}
// /usr/include/qt/QtGui/qregion.h:98
// index:1
// Public Visibility=Default Availability=Available
// [1] bool contains(const QRect &) const
/*
Returns true if the region contains the point p; otherwise returns false.
*/
func (this *QRegion) Contains1(r qtcore.QRect_ITF) bool {
var convArg0 unsafe.Pointer
if r != nil && r.QRect_PTR() != nil {
convArg0 = r.QRect_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegion8containsERK5QRect", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
return rv != 0
}
// /usr/include/qt/QtGui/qregion.h:100
// index:0
// Public Visibility=Default Availability=Available
// [-2] void translate(int, int)
/*
Translates (moves) the region dx along the X axis and dy along the Y axis.
*/
func (this *QRegion) Translate(dx int, dy int) {
rv, err := qtrt.InvokeQtFunc6("_ZN7QRegion9translateEii", qtrt.FFI_TYPE_POINTER, this.GetCthis(), dx, dy)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qregion.h:101
// index:1
// Public inline Visibility=Default Availability=Available
// [-2] void translate(const QPoint &)
/*
Translates (moves) the region dx along the X axis and dy along the Y axis.
*/
func (this *QRegion) Translate1(p qtcore.QPoint_ITF) {
var convArg0 unsafe.Pointer
if p != nil && p.QPoint_PTR() != nil {
convArg0 = p.QPoint_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZN7QRegion9translateERK6QPoint", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qregion.h:102
// index:0
// Public Visibility=Default Availability=Available
// [8] QRegion translated(int, int) const
/*
Returns a copy of the region that is translated dx along the x axis and dy along the y axis, relative to the current position. Positive values move the region to the right and down.
This function was introduced in Qt 4.1.
See also translate().
*/
func (this *QRegion) Translated(dx int, dy int) *QRegion /*123*/ {
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegion10translatedEii", qtrt.FFI_TYPE_POINTER, this.GetCthis(), dx, dy)
qtrt.ErrPrint(err, rv)
rv2 := /*==*/ NewQRegionFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2 /*==*/, DeleteQRegion)
return rv2
}
// /usr/include/qt/QtGui/qregion.h:103
// index:1
// Public inline Visibility=Default Availability=Available
// [8] QRegion translated(const QPoint &) const
/*
Returns a copy of the region that is translated dx along the x axis and dy along the y axis, relative to the current position. Positive values move the region to the right and down.
This function was introduced in Qt 4.1.
See also translate().
*/
func (this *QRegion) Translated1(p qtcore.QPoint_ITF) *QRegion /*123*/ {
var convArg0 unsafe.Pointer
if p != nil && p.QPoint_PTR() != nil {
convArg0 = p.QPoint_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegion10translatedERK6QPoint", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
rv2 := /*==*/ NewQRegionFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2 /*==*/, DeleteQRegion)
return rv2
}
// /usr/include/qt/QtGui/qregion.h:105
// index:0
// Public Visibility=Default Availability=Available
// [8] QRegion united(const QRegion &) const
/*
Returns a region which is the union of this region and r.
The figure shows the union of two elliptical regions.
This function was introduced in Qt 4.2.
See also intersected(), subtracted(), and xored().
*/
func (this *QRegion) United(r QRegion_ITF) *QRegion /*123*/ {
var convArg0 unsafe.Pointer
if r != nil && r.QRegion_PTR() != nil {
convArg0 = r.QRegion_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegion6unitedERKS_", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
rv2 := /*==*/ NewQRegionFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2 /*==*/, DeleteQRegion)
return rv2
}
// /usr/include/qt/QtGui/qregion.h:106
// index:1
// Public Visibility=Default Availability=Available
// [8] QRegion united(const QRect &) const
/*
Returns a region which is the union of this region and r.
The figure shows the union of two elliptical regions.
This function was introduced in Qt 4.2.
See also intersected(), subtracted(), and xored().
*/
func (this *QRegion) United1(r qtcore.QRect_ITF) *QRegion /*123*/ {
var convArg0 unsafe.Pointer
if r != nil && r.QRect_PTR() != nil {
convArg0 = r.QRect_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegion6unitedERK5QRect", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
rv2 := /*==*/ NewQRegionFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2 /*==*/, DeleteQRegion)
return rv2
}
// /usr/include/qt/QtGui/qregion.h:107
// index:0
// Public Visibility=Default Availability=Available
// [8] QRegion intersected(const QRegion &) const
/*
Returns a region which is the intersection of this region and r.
The figure shows the intersection of two elliptical regions.
This function was introduced in Qt 4.2.
See also subtracted(), united(), and xored().
*/
func (this *QRegion) Intersected(r QRegion_ITF) *QRegion /*123*/ {
var convArg0 unsafe.Pointer
if r != nil && r.QRegion_PTR() != nil {
convArg0 = r.QRegion_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegion11intersectedERKS_", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
rv2 := /*==*/ NewQRegionFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2 /*==*/, DeleteQRegion)
return rv2
}
// /usr/include/qt/QtGui/qregion.h:108
// index:1
// Public Visibility=Default Availability=Available
// [8] QRegion intersected(const QRect &) const
/*
Returns a region which is the intersection of this region and r.
The figure shows the intersection of two elliptical regions.
This function was introduced in Qt 4.2.
See also subtracted(), united(), and xored().
*/
func (this *QRegion) Intersected1(r qtcore.QRect_ITF) *QRegion /*123*/ {
var convArg0 unsafe.Pointer
if r != nil && r.QRect_PTR() != nil {
convArg0 = r.QRect_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegion11intersectedERK5QRect", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
rv2 := /*==*/ NewQRegionFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2 /*==*/, DeleteQRegion)
return rv2
}
// /usr/include/qt/QtGui/qregion.h:109
// index:0
// Public Visibility=Default Availability=Available
// [8] QRegion subtracted(const QRegion &) const
/*
Returns a region which is r subtracted from this region.
The figure shows the result when the ellipse on the right is subtracted from the ellipse on the left (left - right).
This function was introduced in Qt 4.2.
See also intersected(), united(), and xored().
*/
func (this *QRegion) Subtracted(r QRegion_ITF) *QRegion /*123*/ {
var convArg0 unsafe.Pointer
if r != nil && r.QRegion_PTR() != nil {
convArg0 = r.QRegion_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegion10subtractedERKS_", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
rv2 := /*==*/ NewQRegionFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2 /*==*/, DeleteQRegion)
return rv2
}
// /usr/include/qt/QtGui/qregion.h:110
// index:0
// Public Visibility=Default Availability=Available
// [8] QRegion xored(const QRegion &) const
/*
Returns a region which is the exclusive or (XOR) of this region and r.
The figure shows the exclusive or of two elliptical regions.
This function was introduced in Qt 4.2.
See also intersected(), united(), and subtracted().
*/
func (this *QRegion) Xored(r QRegion_ITF) *QRegion /*123*/ {
var convArg0 unsafe.Pointer
if r != nil && r.QRegion_PTR() != nil {
convArg0 = r.QRegion_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegion5xoredERKS_", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
rv2 := /*==*/ NewQRegionFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2 /*==*/, DeleteQRegion)
return rv2
}
// /usr/include/qt/QtGui/qregion.h:121
// index:0
// Public Visibility=Default Availability=Available
// [1] bool intersects(const QRegion &) const
/*
Returns true if this region intersects with region, otherwise returns false.
This function was introduced in Qt 4.2.
*/
func (this *QRegion) Intersects(r QRegion_ITF) bool {
var convArg0 unsafe.Pointer
if r != nil && r.QRegion_PTR() != nil {
convArg0 = r.QRegion_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegion10intersectsERKS_", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
return rv != 0
}
// /usr/include/qt/QtGui/qregion.h:122
// index:1
// Public Visibility=Default Availability=Available
// [1] bool intersects(const QRect &) const
/*
Returns true if this region intersects with region, otherwise returns false.
This function was introduced in Qt 4.2.
*/
func (this *QRegion) Intersects1(r qtcore.QRect_ITF) bool {
var convArg0 unsafe.Pointer
if r != nil && r.QRect_PTR() != nil {
convArg0 = r.QRect_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegion10intersectsERK5QRect", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
return rv != 0
}
// /usr/include/qt/QtGui/qregion.h:124
// index:0
// Public Visibility=Default Availability=Available
// [16] QRect boundingRect() const
/*
Returns the bounding rectangle of this region. An empty region gives a rectangle that is QRect::isNull().
*/
func (this *QRegion) BoundingRect() *qtcore.QRect /*123*/ {
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegion12boundingRectEv", 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/qregion.h:129
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setRects(const QRect *, int)
/*
Sets the region using the array of rectangles specified by rects and number. The rectangles must be optimally Y-X sorted and follow these restrictions:
The rectangles must not intersect.
All rectangles with a given top coordinate must have the same height.
No two rectangles may abut horizontally (they should be combined into a single wider rectangle in that case).
The rectangles must be sorted in ascending order, with Y as the major sort key and X as the minor sort key.
See also rects().
*/
func (this *QRegion) SetRects(rect qtcore.QRect_ITF /*777 const QRect **/, num int) {
var convArg0 unsafe.Pointer
if rect != nil && rect.QRect_PTR() != nil {
convArg0 = rect.QRect_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZN7QRegion8setRectsEPK5QRecti", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0, num)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qregion.h:130
// index:0
// Public Visibility=Default Availability=Available
// [4] int rectCount() const
/*
Returns the number of rectangles that this region is composed of. Same as end() - begin().
This function was introduced in Qt 4.6.
*/
func (this *QRegion) RectCount() int {
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegion9rectCountEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
return qtrt.Cretval2go("int", rv).(int) // 1111
}
// /usr/include/qt/QtGui/qregion.h:141
// index:0
// Public Visibility=Default Availability=Available
// [8] QRegion operator|(const QRegion &) const
/*
*/
func (this *QRegion) Operator_or(r QRegion_ITF) *QRegion /*123*/ {
var convArg0 unsafe.Pointer
if r != nil && r.QRegion_PTR() != nil {
convArg0 = r.QRegion_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegionorERKS_", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
rv2 := /*==*/ NewQRegionFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2 /*==*/, DeleteQRegion)
return rv2
}
// /usr/include/qt/QtGui/qregion.h:142
// index:0
// Public Visibility=Default Availability=Available
// [8] QRegion operator+(const QRegion &) const
/*
*/
func (this *QRegion) Operator_add(r QRegion_ITF) *QRegion /*123*/ {
var convArg0 unsafe.Pointer
if r != nil && r.QRegion_PTR() != nil {
convArg0 = r.QRegion_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegionplERKS_", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
rv2 := /*==*/ NewQRegionFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2 /*==*/, DeleteQRegion)
return rv2
}
// /usr/include/qt/QtGui/qregion.h:143
// index:1
// Public Visibility=Default Availability=Available
// [8] QRegion operator+(const QRect &) const
/*
*/
func (this *QRegion) Operator_add1(r qtcore.QRect_ITF) *QRegion /*123*/ {
var convArg0 unsafe.Pointer
if r != nil && r.QRect_PTR() != nil {
convArg0 = r.QRect_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegionplERK5QRect", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
rv2 := /*==*/ NewQRegionFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2 /*==*/, DeleteQRegion)
return rv2
}
// /usr/include/qt/QtGui/qregion.h:144
// index:0
// Public Visibility=Default Availability=Available
// [8] QRegion operator&(const QRegion &) const
/*
*/
func (this *QRegion) Operator_and(r QRegion_ITF) *QRegion /*123*/ {
var convArg0 unsafe.Pointer
if r != nil && r.QRegion_PTR() != nil {
convArg0 = r.QRegion_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegionanERKS_", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
rv2 := /*==*/ NewQRegionFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2 /*==*/, DeleteQRegion)
return rv2
}
// /usr/include/qt/QtGui/qregion.h:145
// index:1
// Public Visibility=Default Availability=Available
// [8] QRegion operator&(const QRect &) const
/*
*/
func (this *QRegion) Operator_and1(r qtcore.QRect_ITF) *QRegion /*123*/ {
var convArg0 unsafe.Pointer
if r != nil && r.QRect_PTR() != nil {
convArg0 = r.QRect_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegionanERK5QRect", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
rv2 := /*==*/ NewQRegionFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2 /*==*/, DeleteQRegion)
return rv2
}
// /usr/include/qt/QtGui/qregion.h:146
// index:0
// Public Visibility=Default Availability=Available
// [8] QRegion operator-(const QRegion &) const
/*
Applies the subtracted() function to this region and r. r1-r2 is equivalent to r1.subtracted(r2).
See also subtracted().
*/
func (this *QRegion) Operator_minus(r QRegion_ITF) *QRegion /*123*/ {
var convArg0 unsafe.Pointer
if r != nil && r.QRegion_PTR() != nil {
convArg0 = r.QRegion_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegionmiERKS_", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
rv2 := /*==*/ NewQRegionFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2 /*==*/, DeleteQRegion)
return rv2
}
// /usr/include/qt/QtGui/qregion.h:147
// index:0
// Public Visibility=Default Availability=Available
// [8] QRegion operator^(const QRegion &) const
/*
*/
func (this *QRegion) Operator_caret(r QRegion_ITF) *QRegion /*123*/ {
var convArg0 unsafe.Pointer
if r != nil && r.QRegion_PTR() != nil {
convArg0 = r.QRegion_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZNK7QRegioneoERKS_", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
rv2 := /*==*/ NewQRegionFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2 /*==*/, DeleteQRegion)
return rv2
}
// /usr/include/qt/QtGui/qregion.h:149
// index:0
// Public Visibility=Default Availability=Available
// [8] QRegion & operator|=(const QRegion &)
/*
*/
func (this *QRegion) Operator_or_equal(r QRegion_ITF) *QRegion {
var convArg0 unsafe.Pointer
if r != nil && r.QRegion_PTR() != nil {
convArg0 = r.QRegion_PTR().GetCthis()
}
rv, err := qtrt.InvokeQtFunc6("_ZN7QRegionoRERKS_", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
rv2 := /*==*/ NewQRegionFromPointer(unsafe.Pointer(uintptr(rv))) // 4441
qtrt.SetFinalizer(rv2 /*==*/, DeleteQRegion)
return rv2
}
// /usr/include/qt/QtGui/qregion.h:150
// index:0
// Public Visibility=Default Availability=Available
// [8] QRegion & operator+=(const QRegion &)
/*