- Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathqpagesize.go
1690 lines (1390 loc) · 46.7 KB
/
qpagesize.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/qpagesize.h
// #include <qpagesize.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: 8
*/
// 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
/*
*/
typeQPageSizestruct {
*qtrt.CObject
}
typeQPageSize_ITFinterface {
QPageSize_PTR() *QPageSize
}
func (ptr*QPageSize) QPageSize_PTR() *QPageSize { returnptr }
func (this*QPageSize) GetCthis() unsafe.Pointer {
ifthis==nil {
returnnil
} else {
returnthis.Cthis
}
}
func (this*QPageSize) SetCthis(cthis unsafe.Pointer) {
ifthis.CObject==nil {
this.CObject=&qtrt.CObject{cthis}
} else {
this.CObject.Cthis=cthis
}
}
funcNewQPageSizeFromPointer(cthis unsafe.Pointer) *QPageSize {
return&QPageSize{&qtrt.CObject{cthis}}
}
func (*QPageSize) NewFromPointer(cthis unsafe.Pointer) *QPageSize {
returnNewQPageSizeFromPointer(cthis)
}
// /usr/include/qt/QtGui/qpagesize.h:230
// index:0
// Public Visibility=Default Availability=Available
// [-2] void QPageSize()
/*
Creates a null QPageSize.
*/
func (*QPageSize) NewForInherit() *QPageSize {
returnNewQPageSize()
}
funcNewQPageSize() *QPageSize {
rv, err:=qtrt.InvokeQtFunc6("_ZN9QPageSizeC2Ev", qtrt.FFI_TYPE_POINTER)
qtrt.ErrPrint(err, rv)
gothis:=NewQPageSizeFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.SetFinalizer(gothis, DeleteQPageSize)
returngothis
}
// /usr/include/qt/QtGui/qpagesize.h:231
// index:1
// Public Visibility=Default Availability=Available
// [-2] void QPageSize(QPageSize::PageSizeId)
/*
Creates a null QPageSize.
*/
func (*QPageSize) NewForInherit1(pageSizeIdint) *QPageSize {
returnNewQPageSize1(pageSizeId)
}
funcNewQPageSize1(pageSizeIdint) *QPageSize {
rv, err:=qtrt.InvokeQtFunc6("_ZN9QPageSizeC2ENS_10PageSizeIdE", qtrt.FFI_TYPE_POINTER, pageSizeId)
qtrt.ErrPrint(err, rv)
gothis:=NewQPageSizeFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.SetFinalizer(gothis, DeleteQPageSize)
returngothis
}
// /usr/include/qt/QtGui/qpagesize.h:232
// index:2
// Public Visibility=Default Availability=Available
// [-2] void QPageSize(const QSize &, const QString &, QPageSize::SizeMatchPolicy)
/*
Creates a null QPageSize.
*/
func (*QPageSize) NewForInherit2(pointSize qtcore.QSize_ITF, namestring, matchPolicyint) *QPageSize {
returnNewQPageSize2(pointSize, name, matchPolicy)
}
funcNewQPageSize2(pointSize qtcore.QSize_ITF, namestring, matchPolicyint) *QPageSize {
varconvArg0 unsafe.Pointer
ifpointSize!=nil&&pointSize.QSize_PTR() !=nil {
convArg0=pointSize.QSize_PTR().GetCthis()
}
vartmpArg1=qtcore.NewQString5(name)
varconvArg1=tmpArg1.GetCthis()
rv, err:=qtrt.InvokeQtFunc6("_ZN9QPageSizeC2ERK5QSizeRK7QStringNS_15SizeMatchPolicyE", qtrt.FFI_TYPE_POINTER, convArg0, convArg1, matchPolicy)
qtrt.ErrPrint(err, rv)
gothis:=NewQPageSizeFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.SetFinalizer(gothis, DeleteQPageSize)
returngothis
}
// /usr/include/qt/QtGui/qpagesize.h:232
// index:2
// Public Visibility=Default Availability=Available
// [-2] void QPageSize(const QSize &, const QString &, QPageSize::SizeMatchPolicy)
/*
Creates a null QPageSize.
*/
func (*QPageSize) NewForInherit2p(pointSize qtcore.QSize_ITF) *QPageSize {
returnNewQPageSize2p(pointSize)
}
funcNewQPageSize2p(pointSize qtcore.QSize_ITF) *QPageSize {
varconvArg0 unsafe.Pointer
ifpointSize!=nil&&pointSize.QSize_PTR() !=nil {
convArg0=pointSize.QSize_PTR().GetCthis()
}
// arg: 1, const QString &=LValueReference, QString=Record, , Invalid
varconvArg1=qtcore.NewQString()
// arg: 2, QPageSize::SizeMatchPolicy=Enum, QPageSize::SizeMatchPolicy=Enum, , Invalid
matchPolicy:=0
rv, err:=qtrt.InvokeQtFunc6("_ZN9QPageSizeC2ERK5QSizeRK7QStringNS_15SizeMatchPolicyE", qtrt.FFI_TYPE_POINTER, convArg0, convArg1, matchPolicy)
qtrt.ErrPrint(err, rv)
gothis:=NewQPageSizeFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.SetFinalizer(gothis, DeleteQPageSize)
returngothis
}
// /usr/include/qt/QtGui/qpagesize.h:232
// index:2
// Public Visibility=Default Availability=Available
// [-2] void QPageSize(const QSize &, const QString &, QPageSize::SizeMatchPolicy)
/*
Creates a null QPageSize.
*/
func (*QPageSize) NewForInherit2p1(pointSize qtcore.QSize_ITF, namestring) *QPageSize {
returnNewQPageSize2p1(pointSize, name)
}
funcNewQPageSize2p1(pointSize qtcore.QSize_ITF, namestring) *QPageSize {
varconvArg0 unsafe.Pointer
ifpointSize!=nil&&pointSize.QSize_PTR() !=nil {
convArg0=pointSize.QSize_PTR().GetCthis()
}
vartmpArg1=qtcore.NewQString5(name)
varconvArg1=tmpArg1.GetCthis()
// arg: 2, QPageSize::SizeMatchPolicy=Enum, QPageSize::SizeMatchPolicy=Enum, , Invalid
matchPolicy:=0
rv, err:=qtrt.InvokeQtFunc6("_ZN9QPageSizeC2ERK5QSizeRK7QStringNS_15SizeMatchPolicyE", qtrt.FFI_TYPE_POINTER, convArg0, convArg1, matchPolicy)
qtrt.ErrPrint(err, rv)
gothis:=NewQPageSizeFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.SetFinalizer(gothis, DeleteQPageSize)
returngothis
}
// /usr/include/qt/QtGui/qpagesize.h:235
// index:3
// Public Visibility=Default Availability=Available
// [-2] void QPageSize(const QSizeF &, QPageSize::Unit, const QString &, QPageSize::SizeMatchPolicy)
/*
Creates a null QPageSize.
*/
func (*QPageSize) NewForInherit3(size qtcore.QSizeF_ITF, unitsint, namestring, matchPolicyint) *QPageSize {
returnNewQPageSize3(size, units, name, matchPolicy)
}
funcNewQPageSize3(size qtcore.QSizeF_ITF, unitsint, namestring, matchPolicyint) *QPageSize {
varconvArg0 unsafe.Pointer
ifsize!=nil&&size.QSizeF_PTR() !=nil {
convArg0=size.QSizeF_PTR().GetCthis()
}
vartmpArg2=qtcore.NewQString5(name)
varconvArg2=tmpArg2.GetCthis()
rv, err:=qtrt.InvokeQtFunc6("_ZN9QPageSizeC2ERK6QSizeFNS_4UnitERK7QStringNS_15SizeMatchPolicyE", qtrt.FFI_TYPE_POINTER, convArg0, units, convArg2, matchPolicy)
qtrt.ErrPrint(err, rv)
gothis:=NewQPageSizeFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.SetFinalizer(gothis, DeleteQPageSize)
returngothis
}
// /usr/include/qt/QtGui/qpagesize.h:235
// index:3
// Public Visibility=Default Availability=Available
// [-2] void QPageSize(const QSizeF &, QPageSize::Unit, const QString &, QPageSize::SizeMatchPolicy)
/*
Creates a null QPageSize.
*/
func (*QPageSize) NewForInherit3p(size qtcore.QSizeF_ITF, unitsint) *QPageSize {
returnNewQPageSize3p(size, units)
}
funcNewQPageSize3p(size qtcore.QSizeF_ITF, unitsint) *QPageSize {
varconvArg0 unsafe.Pointer
ifsize!=nil&&size.QSizeF_PTR() !=nil {
convArg0=size.QSizeF_PTR().GetCthis()
}
// arg: 2, const QString &=LValueReference, QString=Record, , Invalid
varconvArg2=qtcore.NewQString()
// arg: 3, QPageSize::SizeMatchPolicy=Enum, QPageSize::SizeMatchPolicy=Enum, , Invalid
matchPolicy:=0
rv, err:=qtrt.InvokeQtFunc6("_ZN9QPageSizeC2ERK6QSizeFNS_4UnitERK7QStringNS_15SizeMatchPolicyE", qtrt.FFI_TYPE_POINTER, convArg0, units, convArg2, matchPolicy)
qtrt.ErrPrint(err, rv)
gothis:=NewQPageSizeFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.SetFinalizer(gothis, DeleteQPageSize)
returngothis
}
// /usr/include/qt/QtGui/qpagesize.h:235
// index:3
// Public Visibility=Default Availability=Available
// [-2] void QPageSize(const QSizeF &, QPageSize::Unit, const QString &, QPageSize::SizeMatchPolicy)
/*
Creates a null QPageSize.
*/
func (*QPageSize) NewForInherit3p1(size qtcore.QSizeF_ITF, unitsint, namestring) *QPageSize {
returnNewQPageSize3p1(size, units, name)
}
funcNewQPageSize3p1(size qtcore.QSizeF_ITF, unitsint, namestring) *QPageSize {
varconvArg0 unsafe.Pointer
ifsize!=nil&&size.QSizeF_PTR() !=nil {
convArg0=size.QSizeF_PTR().GetCthis()
}
vartmpArg2=qtcore.NewQString5(name)
varconvArg2=tmpArg2.GetCthis()
// arg: 3, QPageSize::SizeMatchPolicy=Enum, QPageSize::SizeMatchPolicy=Enum, , Invalid
matchPolicy:=0
rv, err:=qtrt.InvokeQtFunc6("_ZN9QPageSizeC2ERK6QSizeFNS_4UnitERK7QStringNS_15SizeMatchPolicyE", qtrt.FFI_TYPE_POINTER, convArg0, units, convArg2, matchPolicy)
qtrt.ErrPrint(err, rv)
gothis:=NewQPageSizeFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.SetFinalizer(gothis, DeleteQPageSize)
returngothis
}
// /usr/include/qt/QtGui/qpagesize.h:240
// index:0
// Public inline Visibility=Default Availability=Available
// [8] QPageSize & operator=(QPageSize &&)
/*
*/
func (this*QPageSize) Operator_equal(other unsafe.Pointer/*333*/) *QPageSize {
rv, err:=qtrt.InvokeQtFunc6("_ZN9QPageSizeaSEOS_", qtrt.FFI_TYPE_POINTER, this.GetCthis(), other)
qtrt.ErrPrint(err, rv)
rv2:=/*==*/NewQPageSizeFromPointer(unsafe.Pointer(uintptr(rv))) // 4441
qtrt.SetFinalizer(rv2/*==*/, DeleteQPageSize)
returnrv2
}
// /usr/include/qt/QtGui/qpagesize.h:242
// index:1
// Public Visibility=Default Availability=Available
// [8] QPageSize & operator=(const QPageSize &)
/*
*/
func (this*QPageSize) Operator_equal1(otherQPageSize_ITF) *QPageSize {
varconvArg0 unsafe.Pointer
ifother!=nil&&other.QPageSize_PTR() !=nil {
convArg0=other.QPageSize_PTR().GetCthis()
}
rv, err:=qtrt.InvokeQtFunc6("_ZN9QPageSizeaSERKS_", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
rv2:=/*==*/NewQPageSizeFromPointer(unsafe.Pointer(uintptr(rv))) // 4441
qtrt.SetFinalizer(rv2/*==*/, DeleteQPageSize)
returnrv2
}
// /usr/include/qt/QtGui/qpagesize.h:243
// index:0
// Public Visibility=Default Availability=Available
// [-2] void ~QPageSize()
/*
*/
funcDeleteQPageSize(this*QPageSize) {
rv, err:=qtrt.InvokeQtFunc6("_ZN9QPageSizeD2Ev", qtrt.FFI_TYPE_VOID, this.GetCthis())
qtrt.Cmemset(this.GetCthis(), 9, 8)
qtrt.ErrPrint(err, rv)
this.SetCthis(nil)
}
// /usr/include/qt/QtGui/qpagesize.h:246
// index:0
// Public inline Visibility=Default Availability=Available
// [-2] void swap(QPageSize &)
/*
Swaps this QPageSize with other. This function is very fast and never fails.
*/
func (this*QPageSize) Swap(otherQPageSize_ITF) {
varconvArg0 unsafe.Pointer
ifother!=nil&&other.QPageSize_PTR() !=nil {
convArg0=other.QPageSize_PTR().GetCthis()
}
rv, err:=qtrt.InvokeQtFunc6("_ZN9QPageSize4swapERS_", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qpagesize.h:249
// index:0
// Public Visibility=Default Availability=Available
// [1] bool isEquivalentTo(const QPageSize &) const
/*
Returns true if this page is equivalent to the other page, i.e. if the page has the same size regardless of other attributes like name.
*/
func (this*QPageSize) IsEquivalentTo(otherQPageSize_ITF) bool {
varconvArg0 unsafe.Pointer
ifother!=nil&&other.QPageSize_PTR() !=nil {
convArg0=other.QPageSize_PTR().GetCthis()
}
rv, err:=qtrt.InvokeQtFunc6("_ZNK9QPageSize14isEquivalentToERKS_", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
returnrv!=0
}
// /usr/include/qt/QtGui/qpagesize.h:251
// index:0
// Public Visibility=Default Availability=Available
// [1] bool isValid() const
/*
Returns true if this page size is valid.
The page size may be invalid if created with an invalid PageSizeId, or a negative or invalid QSize or QSizeF, or the null constructor.
*/
func (this*QPageSize) IsValid() bool {
rv, err:=qtrt.InvokeQtFunc6("_ZNK9QPageSize7isValidEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnrv!=0
}
// /usr/include/qt/QtGui/qpagesize.h:253
// index:0
// Public Visibility=Default Availability=Available
// [8] QString key() const
/*
Returns the unique key of the page size.
By default this is the PPD standard mediaOption keyword for the page size, or the PPD custom format key. If the QPageSize instance was obtained from a print device then this will be the key provided by the print device and may differ from the standard key.
If the QPageSize is invalid then the key will be an empty string.
This key should never be shown to end users, it is an internal key only. For a human-readable name use name().
See also name().
*/
func (this*QPageSize) Key() string {
rv, err:=qtrt.InvokeQtFunc6("_ZNK9QPageSize3keyEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
rv2:=qtcore.NewQStringFromPointer(unsafe.Pointer(uintptr(rv)))
rv3:=rv2.ToUtf8().Data()
qtcore.DeleteQString(rv2)
returnrv3
}
// /usr/include/qt/QtGui/qpagesize.h:271
// index:1
// Public static Visibility=Default Availability=Available
// [8] QString key(QPageSize::PageSizeId)
/*
Returns the unique key of the page size.
By default this is the PPD standard mediaOption keyword for the page size, or the PPD custom format key. If the QPageSize instance was obtained from a print device then this will be the key provided by the print device and may differ from the standard key.
If the QPageSize is invalid then the key will be an empty string.
This key should never be shown to end users, it is an internal key only. For a human-readable name use name().
See also name().
*/
func (this*QPageSize) Key1(pageSizeIdint) string {
rv, err:=qtrt.InvokeQtFunc6("_ZN9QPageSize3keyENS_10PageSizeIdE", qtrt.FFI_TYPE_POINTER, pageSizeId)
qtrt.ErrPrint(err, rv)
rv2:=qtcore.NewQStringFromPointer(unsafe.Pointer(uintptr(rv)))
rv3:=rv2.ToUtf8().Data()
qtcore.DeleteQString(rv2)
returnrv3
}
funcQPageSize_Key1(pageSizeIdint) string {
varnilthis*QPageSize
rv:=nilthis.Key1(pageSizeId)
returnrv
}
// /usr/include/qt/QtGui/qpagesize.h:254
// index:0
// Public Visibility=Default Availability=Available
// [8] QString name() const
/*
Returns a localized human-readable name for the page size.
If the QPageSize instance was obtained from a print device then the name used is that provided by the print device. Note that a print device may not support the current default locale language.
If the QPageSize is invalid then the name will be an empty string.
*/
func (this*QPageSize) Name() string {
rv, err:=qtrt.InvokeQtFunc6("_ZNK9QPageSize4nameEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
rv2:=qtcore.NewQStringFromPointer(unsafe.Pointer(uintptr(rv)))
rv3:=rv2.ToUtf8().Data()
qtcore.DeleteQString(rv2)
returnrv3
}
// /usr/include/qt/QtGui/qpagesize.h:272
// index:1
// Public static Visibility=Default Availability=Available
// [8] QString name(QPageSize::PageSizeId)
/*
Returns a localized human-readable name for the page size.
If the QPageSize instance was obtained from a print device then the name used is that provided by the print device. Note that a print device may not support the current default locale language.
If the QPageSize is invalid then the name will be an empty string.
*/
func (this*QPageSize) Name1(pageSizeIdint) string {
rv, err:=qtrt.InvokeQtFunc6("_ZN9QPageSize4nameENS_10PageSizeIdE", qtrt.FFI_TYPE_POINTER, pageSizeId)
qtrt.ErrPrint(err, rv)
rv2:=qtcore.NewQStringFromPointer(unsafe.Pointer(uintptr(rv)))
rv3:=rv2.ToUtf8().Data()
qtcore.DeleteQString(rv2)
returnrv3
}
funcQPageSize_Name1(pageSizeIdint) string {
varnilthis*QPageSize
rv:=nilthis.Name1(pageSizeId)
returnrv
}
// /usr/include/qt/QtGui/qpagesize.h:256
// index:0
// Public Visibility=Default Availability=Available
// [4] QPageSize::PageSizeId id() const
/*
Returns the standard QPageSize::PageSizeId of the page, or QPageSize::Custom.
If the QPageSize is invalid then the ID will be QPageSize::Custom.
*/
func (this*QPageSize) Id() int {
rv, err:=qtrt.InvokeQtFunc6("_ZNK9QPageSize2idEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnint(rv)
}
// /usr/include/qt/QtGui/qpagesize.h:274
// index:1
// Public static Visibility=Default Availability=Available
// [4] QPageSize::PageSizeId id(const QSize &, QPageSize::SizeMatchPolicy)
/*
Returns the standard QPageSize::PageSizeId of the page, or QPageSize::Custom.
If the QPageSize is invalid then the ID will be QPageSize::Custom.
*/
func (this*QPageSize) Id1(pointSize qtcore.QSize_ITF, matchPolicyint) int {
varconvArg0 unsafe.Pointer
ifpointSize!=nil&&pointSize.QSize_PTR() !=nil {
convArg0=pointSize.QSize_PTR().GetCthis()
}
rv, err:=qtrt.InvokeQtFunc6("_ZN9QPageSize2idERK5QSizeNS_15SizeMatchPolicyE", qtrt.FFI_TYPE_POINTER, convArg0, matchPolicy)
qtrt.ErrPrint(err, rv)
returnint(rv)
}
funcQPageSize_Id1(pointSize qtcore.QSize_ITF, matchPolicyint) int {
varnilthis*QPageSize
rv:=nilthis.Id1(pointSize, matchPolicy)
returnrv
}
// /usr/include/qt/QtGui/qpagesize.h:274
// index:1
// Public static Visibility=Default Availability=Available
// [4] QPageSize::PageSizeId id(const QSize &, QPageSize::SizeMatchPolicy)
/*
Returns the standard QPageSize::PageSizeId of the page, or QPageSize::Custom.
If the QPageSize is invalid then the ID will be QPageSize::Custom.
*/
func (this*QPageSize) Id1p(pointSize qtcore.QSize_ITF) int {
varconvArg0 unsafe.Pointer
ifpointSize!=nil&&pointSize.QSize_PTR() !=nil {
convArg0=pointSize.QSize_PTR().GetCthis()
}
// arg: 1, QPageSize::SizeMatchPolicy=Enum, QPageSize::SizeMatchPolicy=Enum, , Invalid
matchPolicy:=0
rv, err:=qtrt.InvokeQtFunc6("_ZN9QPageSize2idERK5QSizeNS_15SizeMatchPolicyE", qtrt.FFI_TYPE_POINTER, convArg0, matchPolicy)
qtrt.ErrPrint(err, rv)
returnint(rv)
}
// /usr/include/qt/QtGui/qpagesize.h:276
// index:2
// Public static Visibility=Default Availability=Available
// [4] QPageSize::PageSizeId id(const QSizeF &, QPageSize::Unit, QPageSize::SizeMatchPolicy)
/*
Returns the standard QPageSize::PageSizeId of the page, or QPageSize::Custom.
If the QPageSize is invalid then the ID will be QPageSize::Custom.
*/
func (this*QPageSize) Id2(size qtcore.QSizeF_ITF, unitsint, matchPolicyint) int {
varconvArg0 unsafe.Pointer
ifsize!=nil&&size.QSizeF_PTR() !=nil {
convArg0=size.QSizeF_PTR().GetCthis()
}
rv, err:=qtrt.InvokeQtFunc6("_ZN9QPageSize2idERK6QSizeFNS_4UnitENS_15SizeMatchPolicyE", qtrt.FFI_TYPE_POINTER, convArg0, units, matchPolicy)
qtrt.ErrPrint(err, rv)
returnint(rv)
}
funcQPageSize_Id2(size qtcore.QSizeF_ITF, unitsint, matchPolicyint) int {
varnilthis*QPageSize
rv:=nilthis.Id2(size, units, matchPolicy)
returnrv
}
// /usr/include/qt/QtGui/qpagesize.h:276
// index:2
// Public static Visibility=Default Availability=Available
// [4] QPageSize::PageSizeId id(const QSizeF &, QPageSize::Unit, QPageSize::SizeMatchPolicy)
/*
Returns the standard QPageSize::PageSizeId of the page, or QPageSize::Custom.
If the QPageSize is invalid then the ID will be QPageSize::Custom.
*/
func (this*QPageSize) Id2p(size qtcore.QSizeF_ITF, unitsint) int {
varconvArg0 unsafe.Pointer
ifsize!=nil&&size.QSizeF_PTR() !=nil {
convArg0=size.QSizeF_PTR().GetCthis()
}
// arg: 2, QPageSize::SizeMatchPolicy=Enum, QPageSize::SizeMatchPolicy=Enum, , Invalid
matchPolicy:=0
rv, err:=qtrt.InvokeQtFunc6("_ZN9QPageSize2idERK6QSizeFNS_4UnitENS_15SizeMatchPolicyE", qtrt.FFI_TYPE_POINTER, convArg0, units, matchPolicy)
qtrt.ErrPrint(err, rv)
returnint(rv)
}
// /usr/include/qt/QtGui/qpagesize.h:279
// index:3
// Public static Visibility=Default Availability=Available
// [4] QPageSize::PageSizeId id(int)
/*
Returns the standard QPageSize::PageSizeId of the page, or QPageSize::Custom.
If the QPageSize is invalid then the ID will be QPageSize::Custom.
*/
func (this*QPageSize) Id3(windowsIdint) int {
rv, err:=qtrt.InvokeQtFunc6("_ZN9QPageSize2idEi", qtrt.FFI_TYPE_POINTER, windowsId)
qtrt.ErrPrint(err, rv)
returnint(rv)
}
funcQPageSize_Id3(windowsIdint) int {
varnilthis*QPageSize
rv:=nilthis.Id3(windowsId)
returnrv
}
// /usr/include/qt/QtGui/qpagesize.h:258
// index:0
// Public Visibility=Default Availability=Available
// [4] int windowsId() const
/*
Returns the Windows DMPAPER enum value for the page size.
Not all valid PPD page sizes have a Windows equivalent, in which case 0 will be returned.
If the QPageSize is invalid then the Windows ID will be 0.
See also id().
*/
func (this*QPageSize) WindowsId() int {
rv, err:=qtrt.InvokeQtFunc6("_ZNK9QPageSize9windowsIdEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnqtrt.Cretval2go("int", rv).(int) // 1111
}
// /usr/include/qt/QtGui/qpagesize.h:280
// index:1
// Public static Visibility=Default Availability=Available
// [4] int windowsId(QPageSize::PageSizeId)
/*
Returns the Windows DMPAPER enum value for the page size.
Not all valid PPD page sizes have a Windows equivalent, in which case 0 will be returned.
If the QPageSize is invalid then the Windows ID will be 0.
See also id().
*/
func (this*QPageSize) WindowsId1(pageSizeIdint) int {
rv, err:=qtrt.InvokeQtFunc6("_ZN9QPageSize9windowsIdENS_10PageSizeIdE", qtrt.FFI_TYPE_POINTER, pageSizeId)
qtrt.ErrPrint(err, rv)
returnqtrt.Cretval2go("int", rv).(int) // 1111
}
funcQPageSize_WindowsId1(pageSizeIdint) int {
varnilthis*QPageSize
rv:=nilthis.WindowsId1(pageSizeId)
returnrv
}
// /usr/include/qt/QtGui/qpagesize.h:260
// index:0
// Public Visibility=Default Availability=Available
// [16] QSizeF definitionSize() const
/*
Returns the definition size of the page size.
For a standard page size this will be the size as defined in the relevant standard, i.e. ISO A4 will be defined in millimeters while ANSI Letter will be defined in inches.
For a custom page size this will be the original size used to create the page size object.
If the QPageSize is invalid then the QSizeF will be invalid.
See also definitionUnits().
*/
func (this*QPageSize) DefinitionSize() *qtcore.QSizeF/*123*/ {
rv, err:=qtrt.InvokeQtFunc6("_ZNK9QPageSize14definitionSizeEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
rv2:=qtcore.NewQSizeFFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2, qtcore.DeleteQSizeF)
returnrv2
}
// /usr/include/qt/QtGui/qpagesize.h:282
// index:1
// Public static Visibility=Default Availability=Available
// [16] QSizeF definitionSize(QPageSize::PageSizeId)
/*
Returns the definition size of the page size.
For a standard page size this will be the size as defined in the relevant standard, i.e. ISO A4 will be defined in millimeters while ANSI Letter will be defined in inches.
For a custom page size this will be the original size used to create the page size object.
If the QPageSize is invalid then the QSizeF will be invalid.
See also definitionUnits().
*/
func (this*QPageSize) DefinitionSize1(pageSizeIdint) *qtcore.QSizeF/*123*/ {
rv, err:=qtrt.InvokeQtFunc6("_ZN9QPageSize14definitionSizeENS_10PageSizeIdE", qtrt.FFI_TYPE_POINTER, pageSizeId)
qtrt.ErrPrint(err, rv)
rv2:=qtcore.NewQSizeFFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2, qtcore.DeleteQSizeF)
returnrv2
}
funcQPageSize_DefinitionSize1(pageSizeIdint) *qtcore.QSizeF/*123*/ {
varnilthis*QPageSize
rv:=nilthis.DefinitionSize1(pageSizeId)
returnrv
}
// /usr/include/qt/QtGui/qpagesize.h:261
// index:0
// Public Visibility=Default Availability=Available
// [4] QPageSize::Unit definitionUnits() const
/*
Returns the definition units of the page size.
For a standard page size this will be the units as defined in the relevant standard, i.e. ISO A4 will be defined in millimeters while ANSI Letter will be defined in inches.
For a custom page size this will be the original units used to create the page size object.
If the QPageSize is invalid then the QPageSize::Unit will be invalid.
See also definitionSize().
*/
func (this*QPageSize) DefinitionUnits() int {
rv, err:=qtrt.InvokeQtFunc6("_ZNK9QPageSize15definitionUnitsEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnint(rv)
}
// /usr/include/qt/QtGui/qpagesize.h:283
// index:1
// Public static Visibility=Default Availability=Available
// [4] QPageSize::Unit definitionUnits(QPageSize::PageSizeId)
/*
Returns the definition units of the page size.
For a standard page size this will be the units as defined in the relevant standard, i.e. ISO A4 will be defined in millimeters while ANSI Letter will be defined in inches.
For a custom page size this will be the original units used to create the page size object.
If the QPageSize is invalid then the QPageSize::Unit will be invalid.
See also definitionSize().
*/
func (this*QPageSize) DefinitionUnits1(pageSizeIdint) int {
rv, err:=qtrt.InvokeQtFunc6("_ZN9QPageSize15definitionUnitsENS_10PageSizeIdE", qtrt.FFI_TYPE_POINTER, pageSizeId)
qtrt.ErrPrint(err, rv)
returnint(rv)
}
funcQPageSize_DefinitionUnits1(pageSizeIdint) int {
varnilthis*QPageSize
rv:=nilthis.DefinitionUnits1(pageSizeId)
returnrv
}
// /usr/include/qt/QtGui/qpagesize.h:263
// index:0
// Public Visibility=Default Availability=Available
// [16] QSizeF size(QPageSize::Unit) const
/*
Returns the size of the page in the required units.
If the QPageSize is invalid then the QSizeF will be invalid.
*/
func (this*QPageSize) Size(unitsint) *qtcore.QSizeF/*123*/ {
rv, err:=qtrt.InvokeQtFunc6("_ZNK9QPageSize4sizeENS_4UnitE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), units)
qtrt.ErrPrint(err, rv)
rv2:=qtcore.NewQSizeFFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2, qtcore.DeleteQSizeF)
returnrv2
}
// /usr/include/qt/QtGui/qpagesize.h:285
// index:1
// Public static Visibility=Default Availability=Available
// [16] QSizeF size(QPageSize::PageSizeId, QPageSize::Unit)
/*
Returns the size of the page in the required units.
If the QPageSize is invalid then the QSizeF will be invalid.
*/
func (this*QPageSize) Size1(pageSizeIdint, unitsint) *qtcore.QSizeF/*123*/ {
rv, err:=qtrt.InvokeQtFunc6("_ZN9QPageSize4sizeENS_10PageSizeIdENS_4UnitE", qtrt.FFI_TYPE_POINTER, pageSizeId, units)
qtrt.ErrPrint(err, rv)
rv2:=qtcore.NewQSizeFFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2, qtcore.DeleteQSizeF)
returnrv2
}
funcQPageSize_Size1(pageSizeIdint, unitsint) *qtcore.QSizeF/*123*/ {
varnilthis*QPageSize
rv:=nilthis.Size1(pageSizeId, units)
returnrv
}
// /usr/include/qt/QtGui/qpagesize.h:264
// index:0
// Public Visibility=Default Availability=Available
// [8] QSize sizePoints() const
/*
Returns the size of the page in Postscript Points (1/72 of an inch).
If the QPageSize is invalid then the QSize will be invalid.
*/
func (this*QPageSize) SizePoints() *qtcore.QSize/*123*/ {
rv, err:=qtrt.InvokeQtFunc6("_ZNK9QPageSize10sizePointsEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
rv2:=qtcore.NewQSizeFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2, qtcore.DeleteQSize)
returnrv2
}
// /usr/include/qt/QtGui/qpagesize.h:286
// index:1
// Public static Visibility=Default Availability=Available
// [8] QSize sizePoints(QPageSize::PageSizeId)
/*
Returns the size of the page in Postscript Points (1/72 of an inch).
If the QPageSize is invalid then the QSize will be invalid.
*/
func (this*QPageSize) SizePoints1(pageSizeIdint) *qtcore.QSize/*123*/ {
rv, err:=qtrt.InvokeQtFunc6("_ZN9QPageSize10sizePointsENS_10PageSizeIdE", qtrt.FFI_TYPE_POINTER, pageSizeId)
qtrt.ErrPrint(err, rv)
rv2:=qtcore.NewQSizeFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2, qtcore.DeleteQSize)
returnrv2
}
funcQPageSize_SizePoints1(pageSizeIdint) *qtcore.QSize/*123*/ {
varnilthis*QPageSize
rv:=nilthis.SizePoints1(pageSizeId)
returnrv
}
// /usr/include/qt/QtGui/qpagesize.h:265
// index:0
// Public Visibility=Default Availability=Available
// [8] QSize sizePixels(int) const
/*
Returns the size of the page in Device Pixels at the given resolution.
If the QPageSize is invalid then the QSize will be invalid.
*/
func (this*QPageSize) SizePixels(resolutionint) *qtcore.QSize/*123*/ {
rv, err:=qtrt.InvokeQtFunc6("_ZNK9QPageSize10sizePixelsEi", qtrt.FFI_TYPE_POINTER, this.GetCthis(), resolution)
qtrt.ErrPrint(err, rv)
rv2:=qtcore.NewQSizeFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2, qtcore.DeleteQSize)
returnrv2
}
// /usr/include/qt/QtGui/qpagesize.h:287
// index:1
// Public static Visibility=Default Availability=Available
// [8] QSize sizePixels(QPageSize::PageSizeId, int)
/*
Returns the size of the page in Device Pixels at the given resolution.
If the QPageSize is invalid then the QSize will be invalid.
*/
func (this*QPageSize) SizePixels1(pageSizeIdint, resolutionint) *qtcore.QSize/*123*/ {
rv, err:=qtrt.InvokeQtFunc6("_ZN9QPageSize10sizePixelsENS_10PageSizeIdEi", qtrt.FFI_TYPE_POINTER, pageSizeId, resolution)
qtrt.ErrPrint(err, rv)
rv2:=qtcore.NewQSizeFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2, qtcore.DeleteQSize)
returnrv2
}
funcQPageSize_SizePixels1(pageSizeIdint, resolutionint) *qtcore.QSize/*123*/ {
varnilthis*QPageSize
rv:=nilthis.SizePixels1(pageSizeId, resolution)
returnrv
}
// /usr/include/qt/QtGui/qpagesize.h:267
// index:0
// Public Visibility=Default Availability=Available
// [32] QRectF rect(QPageSize::Unit) const
/*
Returns the page rectangle in the required units.
If the QPageSize is invalid then the QRect will be invalid.
*/
func (this*QPageSize) Rect(unitsint) *qtcore.QRectF/*123*/ {
rv, err:=qtrt.InvokeQtFunc6("_ZNK9QPageSize4rectENS_4UnitE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), units)
qtrt.ErrPrint(err, rv)
rv2:=qtcore.NewQRectFFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2, qtcore.DeleteQRectF)
returnrv2
}
// /usr/include/qt/QtGui/qpagesize.h:268
// index:0
// Public Visibility=Default Availability=Available
// [16] QRect rectPoints() const
/*
Returns the page rectangle in Postscript Points (1/72 of an inch).
If the QPageSize is invalid then the QRect will be invalid.
*/
func (this*QPageSize) RectPoints() *qtcore.QRect/*123*/ {
rv, err:=qtrt.InvokeQtFunc6("_ZNK9QPageSize10rectPointsEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
rv2:=qtcore.NewQRectFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2, qtcore.DeleteQRect)
returnrv2
}
// /usr/include/qt/QtGui/qpagesize.h:269
// index:0
// Public Visibility=Default Availability=Available
// [16] QRect rectPixels(int) const
/*
Returns the page rectangle in Device Pixels at the given resolution.
If the QPageSize is invalid then the QRect will be invalid.
*/
func (this*QPageSize) RectPixels(resolutionint) *qtcore.QRect/*123*/ {
rv, err:=qtrt.InvokeQtFunc6("_ZNK9QPageSize10rectPixelsEi", qtrt.FFI_TYPE_POINTER, this.GetCthis(), resolution)
qtrt.ErrPrint(err, rv)
rv2:=qtcore.NewQRectFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2, qtcore.DeleteQRect)
returnrv2
}
/*
This enum type lists the available page sizes as defined in the Postscript PPD standard. These values are duplicated in QPagedPaintDevice and QPrinter.
The defined sizes are:
QPageSize::AnsiALetter= Letter
QPageSize::AnsiBLedger= Ledger
QPageSize::EnvelopeDLDLE= DLE
Due to historic reasons QPageSize::Executive is not the same as the standard Postscript and Windows Executive size, use QPageSize::ExecutiveStandard instead.
The Postscript standard size QPageSize::Folio is different to the Windows DMPAPER_FOLIO size, use the Postscript standard size QPageSize::FanFoldGermanLegal if needed.
*/
typeQPageSize__PageSizeId=int
//
constQPageSize__A4QPageSize__PageSizeId=0
//
constQPageSize__B5QPageSize__PageSizeId=1
//
constQPageSize__LetterQPageSize__PageSizeId=2
//
constQPageSize__LegalQPageSize__PageSizeId=3
//
constQPageSize__ExecutiveQPageSize__PageSizeId=4
//
constQPageSize__A0QPageSize__PageSizeId=5
//
constQPageSize__A1QPageSize__PageSizeId=6
//
constQPageSize__A2QPageSize__PageSizeId=7
//
constQPageSize__A3QPageSize__PageSizeId=8
//
constQPageSize__A5QPageSize__PageSizeId=9
//
constQPageSize__A6QPageSize__PageSizeId=10
//
constQPageSize__A7QPageSize__PageSizeId=11
//
constQPageSize__A8QPageSize__PageSizeId=12
//
constQPageSize__A9QPageSize__PageSizeId=13
//
constQPageSize__B0QPageSize__PageSizeId=14
//
constQPageSize__B1QPageSize__PageSizeId=15
//
constQPageSize__B10QPageSize__PageSizeId=16
//
constQPageSize__B2QPageSize__PageSizeId=17
//
constQPageSize__B3QPageSize__PageSizeId=18
//
constQPageSize__B4QPageSize__PageSizeId=19
//