- Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathqfont.go
2182 lines (1751 loc) · 63.7 KB
/
qfont.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/qfont.h
// #include <qfont.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: 2
*/
// 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
/*
*/
typeQFontstruct {
*qtrt.CObject
}
typeQFont_ITFinterface {
QFont_PTR() *QFont
}
func (ptr*QFont) QFont_PTR() *QFont { returnptr }
func (this*QFont) GetCthis() unsafe.Pointer {
ifthis==nil {
returnnil
} else {
returnthis.Cthis
}
}
func (this*QFont) SetCthis(cthis unsafe.Pointer) {
ifthis.CObject==nil {
this.CObject=&qtrt.CObject{cthis}
} else {
this.CObject.Cthis=cthis
}
}
funcNewQFontFromPointer(cthis unsafe.Pointer) *QFont {
return&QFont{&qtrt.CObject{cthis}}
}
func (*QFont) NewFromPointer(cthis unsafe.Pointer) *QFont {
returnNewQFontFromPointer(cthis)
}
// /usr/include/qt/QtGui/qfont.h:170
// index:0
// Public Visibility=Default Availability=Available
// [-2] void QFont()
/*
Constructs a font object that uses the application's default font.
See also QGuiApplication::setFont() and QGuiApplication::font().
*/
func (*QFont) NewForInherit() *QFont {
returnNewQFont()
}
funcNewQFont() *QFont {
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFontC2Ev", qtrt.FFI_TYPE_POINTER)
qtrt.ErrPrint(err, rv)
gothis:=NewQFontFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.SetFinalizer(gothis, DeleteQFont)
returngothis
}
// /usr/include/qt/QtGui/qfont.h:171
// index:1
// Public Visibility=Default Availability=Available
// [-2] void QFont(const QString &, int, int, bool)
/*
Constructs a font object that uses the application's default font.
See also QGuiApplication::setFont() and QGuiApplication::font().
*/
func (*QFont) NewForInherit1(familystring, pointSizeint, weightint, italicbool) *QFont {
returnNewQFont1(family, pointSize, weight, italic)
}
funcNewQFont1(familystring, pointSizeint, weightint, italicbool) *QFont {
vartmpArg0=qtcore.NewQString5(family)
varconvArg0=tmpArg0.GetCthis()
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFontC2ERK7QStringiib", qtrt.FFI_TYPE_POINTER, convArg0, pointSize, weight, italic)
qtrt.ErrPrint(err, rv)
gothis:=NewQFontFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.SetFinalizer(gothis, DeleteQFont)
returngothis
}
// /usr/include/qt/QtGui/qfont.h:171
// index:1
// Public Visibility=Default Availability=Available
// [-2] void QFont(const QString &, int, int, bool)
/*
Constructs a font object that uses the application's default font.
See also QGuiApplication::setFont() and QGuiApplication::font().
*/
func (*QFont) NewForInherit1p(familystring) *QFont {
returnNewQFont1p(family)
}
funcNewQFont1p(familystring) *QFont {
vartmpArg0=qtcore.NewQString5(family)
varconvArg0=tmpArg0.GetCthis()
// arg: 1, int=Int, =Invalid, , Invalid
pointSize:=int(-1)
// arg: 2, int=Int, =Invalid, , Invalid
weight:=int(-1)
// arg: 3, bool=Bool, =Invalid, , Invalid
italic:=false
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFontC2ERK7QStringiib", qtrt.FFI_TYPE_POINTER, convArg0, pointSize, weight, italic)
qtrt.ErrPrint(err, rv)
gothis:=NewQFontFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.SetFinalizer(gothis, DeleteQFont)
returngothis
}
// /usr/include/qt/QtGui/qfont.h:171
// index:1
// Public Visibility=Default Availability=Available
// [-2] void QFont(const QString &, int, int, bool)
/*
Constructs a font object that uses the application's default font.
See also QGuiApplication::setFont() and QGuiApplication::font().
*/
func (*QFont) NewForInherit1p1(familystring, pointSizeint) *QFont {
returnNewQFont1p1(family, pointSize)
}
funcNewQFont1p1(familystring, pointSizeint) *QFont {
vartmpArg0=qtcore.NewQString5(family)
varconvArg0=tmpArg0.GetCthis()
// arg: 2, int=Int, =Invalid, , Invalid
weight:=int(-1)
// arg: 3, bool=Bool, =Invalid, , Invalid
italic:=false
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFontC2ERK7QStringiib", qtrt.FFI_TYPE_POINTER, convArg0, pointSize, weight, italic)
qtrt.ErrPrint(err, rv)
gothis:=NewQFontFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.SetFinalizer(gothis, DeleteQFont)
returngothis
}
// /usr/include/qt/QtGui/qfont.h:171
// index:1
// Public Visibility=Default Availability=Available
// [-2] void QFont(const QString &, int, int, bool)
/*
Constructs a font object that uses the application's default font.
See also QGuiApplication::setFont() and QGuiApplication::font().
*/
func (*QFont) NewForInherit1p2(familystring, pointSizeint, weightint) *QFont {
returnNewQFont1p2(family, pointSize, weight)
}
funcNewQFont1p2(familystring, pointSizeint, weightint) *QFont {
vartmpArg0=qtcore.NewQString5(family)
varconvArg0=tmpArg0.GetCthis()
// arg: 3, bool=Bool, =Invalid, , Invalid
italic:=false
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFontC2ERK7QStringiib", qtrt.FFI_TYPE_POINTER, convArg0, pointSize, weight, italic)
qtrt.ErrPrint(err, rv)
gothis:=NewQFontFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.SetFinalizer(gothis, DeleteQFont)
returngothis
}
// /usr/include/qt/QtGui/qfont.h:172
// index:2
// Public Visibility=Default Availability=Available
// [-2] void QFont(const QFont &, QPaintDevice *)
/*
Constructs a font object that uses the application's default font.
See also QGuiApplication::setFont() and QGuiApplication::font().
*/
func (*QFont) NewForInherit2(arg0QFont_ITF, pdQPaintDevice_ITF/*777 QPaintDevice **/) *QFont {
returnNewQFont2(arg0, pd)
}
funcNewQFont2(arg0QFont_ITF, pdQPaintDevice_ITF/*777 QPaintDevice **/) *QFont {
varconvArg0 unsafe.Pointer
ifarg0!=nil&&arg0.QFont_PTR() !=nil {
convArg0=arg0.QFont_PTR().GetCthis()
}
varconvArg1 unsafe.Pointer
ifpd!=nil&&pd.QPaintDevice_PTR() !=nil {
convArg1=pd.QPaintDevice_PTR().GetCthis()
}
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFontC2ERKS_P12QPaintDevice", qtrt.FFI_TYPE_POINTER, convArg0, convArg1)
qtrt.ErrPrint(err, rv)
gothis:=NewQFontFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.SetFinalizer(gothis, DeleteQFont)
returngothis
}
// /usr/include/qt/QtGui/qfont.h:174
// index:0
// Public Visibility=Default Availability=Available
// [-2] void ~QFont()
/*
*/
funcDeleteQFont(this*QFont) {
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFontD2Ev", qtrt.FFI_TYPE_VOID, this.GetCthis())
qtrt.Cmemset(this.GetCthis(), 9, 16)
qtrt.ErrPrint(err, rv)
this.SetCthis(nil)
}
// /usr/include/qt/QtGui/qfont.h:176
// index:0
// Public inline Visibility=Default Availability=Available
// [-2] void swap(QFont &)
/*
Swaps this font instance with other. This function is very fast and never fails.
This function was introduced in Qt 5.0.
*/
func (this*QFont) Swap(otherQFont_ITF) {
varconvArg0 unsafe.Pointer
ifother!=nil&&other.QFont_PTR() !=nil {
convArg0=other.QFont_PTR().GetCthis()
}
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFont4swapERS_", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qfont.h:179
// index:0
// Public Visibility=Default Availability=Available
// [8] QString family() const
/*
Returns the requested font family name, i.e. the name set in the constructor or the last setFont() call.
See also setFamily(), substitutes(), and substitute().
*/
func (this*QFont) Family() string {
rv, err:=qtrt.InvokeQtFunc6("_ZNK5QFont6familyEv", 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/qfont.h:180
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setFamily(const QString &)
/*
Sets the family name of the font. The name is case insensitive and may include a foundry name.
The family name may optionally also include a foundry name, e.g. "Helvetica [Cronyx]". If the family is available from more than one foundry and the foundry isn't specified, an arbitrary foundry is chosen. If the family isn't available a family will be set using the font matching algorithm.
See also family(), setStyleHint(), and QFontInfo.
*/
func (this*QFont) SetFamily(arg0string) {
vartmpArg0=qtcore.NewQString5(arg0)
varconvArg0=tmpArg0.GetCthis()
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFont9setFamilyERK7QString", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qfont.h:182
// index:0
// Public Visibility=Default Availability=Available
// [8] QString styleName() const
/*
Returns the requested font style name. This can be used to match the font with irregular styles (that can't be normalized in other style properties).
This function was introduced in Qt 4.8.
See also setStyleName(), setFamily(), and setStyle().
*/
func (this*QFont) StyleName() string {
rv, err:=qtrt.InvokeQtFunc6("_ZNK5QFont9styleNameEv", 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/qfont.h:183
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setStyleName(const QString &)
/*
Sets the style name of the font to styleName. When set, other style properties like style() and weight() will be ignored for font matching, though they may be simulated afterwards if supported by the platform's font engine.
Due to the lower quality of artificially simulated styles, and the lack of full cross platform support, it is not recommended to use matching by style name together with matching by style properties
This function was introduced in Qt 4.8.
See also styleName().
*/
func (this*QFont) SetStyleName(arg0string) {
vartmpArg0=qtcore.NewQString5(arg0)
varconvArg0=tmpArg0.GetCthis()
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFont12setStyleNameERK7QString", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qfont.h:185
// index:0
// Public Visibility=Default Availability=Available
// [4] int pointSize() const
/*
Returns the point size of the font. Returns -1 if the font size was specified in pixels.
See also setPointSize() and pointSizeF().
*/
func (this*QFont) PointSize() int {
rv, err:=qtrt.InvokeQtFunc6("_ZNK5QFont9pointSizeEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnqtrt.Cretval2go("int", rv).(int) // 1111
}
// /usr/include/qt/QtGui/qfont.h:186
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setPointSize(int)
/*
Sets the point size to pointSize. The point size must be greater than zero.
See also pointSize() and setPointSizeF().
*/
func (this*QFont) SetPointSize(arg0int) {
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFont12setPointSizeEi", qtrt.FFI_TYPE_POINTER, this.GetCthis(), arg0)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qfont.h:187
// index:0
// Public Visibility=Default Availability=Available
// [8] qreal pointSizeF() const
/*
Returns the point size of the font. Returns -1 if the font size was specified in pixels.
See also pointSize(), setPointSizeF(), pixelSize(), QFontInfo::pointSize(), and QFontInfo::pixelSize().
*/
func (this*QFont) PointSizeF() float64 {
rv, err:=qtrt.InvokeQtFunc6("_ZNK5QFont10pointSizeFEv", qtrt.FFI_TYPE_DOUBLE, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnqtrt.Cretval2go("float64", rv).(float64) // 1111
}
// /usr/include/qt/QtGui/qfont.h:188
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setPointSizeF(qreal)
/*
Sets the point size to pointSize. The point size must be greater than zero. The requested precision may not be achieved on all platforms.
See also pointSizeF(), setPointSize(), and setPixelSize().
*/
func (this*QFont) SetPointSizeF(arg0float64) {
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFont13setPointSizeFEd", qtrt.FFI_TYPE_POINTER, this.GetCthis(), arg0)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qfont.h:190
// index:0
// Public Visibility=Default Availability=Available
// [4] int pixelSize() const
/*
Returns the pixel size of the font if it was set with setPixelSize(). Returns -1 if the size was set with setPointSize() or setPointSizeF().
See also setPixelSize(), pointSize(), QFontInfo::pointSize(), and QFontInfo::pixelSize().
*/
func (this*QFont) PixelSize() int {
rv, err:=qtrt.InvokeQtFunc6("_ZNK5QFont9pixelSizeEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnqtrt.Cretval2go("int", rv).(int) // 1111
}
// /usr/include/qt/QtGui/qfont.h:191
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setPixelSize(int)
/*
Sets the font size to pixelSize pixels.
Using this function makes the font device dependent. Use setPointSize() or setPointSizeF() to set the size of the font in a device independent manner.
See also pixelSize().
*/
func (this*QFont) SetPixelSize(arg0int) {
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFont12setPixelSizeEi", qtrt.FFI_TYPE_POINTER, this.GetCthis(), arg0)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qfont.h:193
// index:0
// Public Visibility=Default Availability=Available
// [4] int weight() const
/*
Returns the weight of the font, using the same scale as the QFont::Weight enumeration.
See also setWeight(), Weight, and QFontInfo.
*/
func (this*QFont) Weight() int {
rv, err:=qtrt.InvokeQtFunc6("_ZNK5QFont6weightEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnqtrt.Cretval2go("int", rv).(int) // 1111
}
// /usr/include/qt/QtGui/qfont.h:194
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setWeight(int)
/*
Sets the weight of the font to weight, using the scale defined by QFont::Weight enumeration.
Note: If styleName() is set, this value may be ignored for font selection.
See also weight() and QFontInfo.
*/
func (this*QFont) SetWeight(arg0int) {
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFont9setWeightEi", qtrt.FFI_TYPE_POINTER, this.GetCthis(), arg0)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qfont.h:196
// index:0
// Public inline Visibility=Default Availability=Available
// [1] bool bold() const
/*
Returns true if weight() is a value greater than QFont::Medium; otherwise returns false.
See also weight(), setBold(), and QFontInfo::bold().
*/
func (this*QFont) Bold() bool {
rv, err:=qtrt.InvokeQtFunc6("_ZNK5QFont4boldEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnrv!=0
}
// /usr/include/qt/QtGui/qfont.h:197
// index:0
// Public inline Visibility=Default Availability=Available
// [-2] void setBold(bool)
/*
If enable is true sets the font's weight to QFont::Bold; otherwise sets the weight to QFont::Normal.
For finer boldness control use setWeight().
Note: If styleName() is set, this value may be ignored, or if supported on the platform, the font artificially embolded.
See also bold() and setWeight().
*/
func (this*QFont) SetBold(arg0bool) {
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFont7setBoldEb", qtrt.FFI_TYPE_POINTER, this.GetCthis(), arg0)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qfont.h:199
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setStyle(QFont::Style)
/*
Sets the style of the font to style.
See also style(), italic(), and QFontInfo.
*/
func (this*QFont) SetStyle(styleint) {
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFont8setStyleENS_5StyleE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), style)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qfont.h:200
// index:0
// Public Visibility=Default Availability=Available
// [4] QFont::Style style() const
/*
Returns the style of the font.
See also setStyle().
*/
func (this*QFont) Style() int {
rv, err:=qtrt.InvokeQtFunc6("_ZNK5QFont5styleEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnint(rv)
}
// /usr/include/qt/QtGui/qfont.h:202
// index:0
// Public inline Visibility=Default Availability=Available
// [1] bool italic() const
/*
Returns true if the style() of the font is not QFont::StyleNormal
See also setItalic() and style().
*/
func (this*QFont) Italic() bool {
rv, err:=qtrt.InvokeQtFunc6("_ZNK5QFont6italicEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnrv!=0
}
// /usr/include/qt/QtGui/qfont.h:203
// index:0
// Public inline Visibility=Default Availability=Available
// [-2] void setItalic(bool)
/*
Sets the style() of the font to QFont::StyleItalic if enable is true; otherwise the style is set to QFont::StyleNormal.
Note: If styleName() is set, this value may be ignored, or if supported on the platform, the font may be rendered tilted instead of picking a designed italic font-variant.
See also italic() and QFontInfo.
*/
func (this*QFont) SetItalic(bbool) {
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFont9setItalicEb", qtrt.FFI_TYPE_POINTER, this.GetCthis(), b)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qfont.h:205
// index:0
// Public Visibility=Default Availability=Available
// [1] bool underline() const
/*
Returns true if underline has been set; otherwise returns false.
See also setUnderline().
*/
func (this*QFont) Underline() bool {
rv, err:=qtrt.InvokeQtFunc6("_ZNK5QFont9underlineEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnrv!=0
}
// /usr/include/qt/QtGui/qfont.h:206
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setUnderline(bool)
/*
If enable is true, sets underline on; otherwise sets underline off.
See also underline() and QFontInfo.
*/
func (this*QFont) SetUnderline(arg0bool) {
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFont12setUnderlineEb", qtrt.FFI_TYPE_POINTER, this.GetCthis(), arg0)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qfont.h:208
// index:0
// Public Visibility=Default Availability=Available
// [1] bool overline() const
/*
Returns true if overline has been set; otherwise returns false.
See also setOverline().
*/
func (this*QFont) Overline() bool {
rv, err:=qtrt.InvokeQtFunc6("_ZNK5QFont8overlineEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnrv!=0
}
// /usr/include/qt/QtGui/qfont.h:209
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setOverline(bool)
/*
If enable is true, sets overline on; otherwise sets overline off.
See also overline() and QFontInfo.
*/
func (this*QFont) SetOverline(arg0bool) {
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFont11setOverlineEb", qtrt.FFI_TYPE_POINTER, this.GetCthis(), arg0)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qfont.h:211
// index:0
// Public Visibility=Default Availability=Available
// [1] bool strikeOut() const
/*
Returns true if strikeout has been set; otherwise returns false.
See also setStrikeOut().
*/
func (this*QFont) StrikeOut() bool {
rv, err:=qtrt.InvokeQtFunc6("_ZNK5QFont9strikeOutEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnrv!=0
}
// /usr/include/qt/QtGui/qfont.h:212
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setStrikeOut(bool)
/*
If enable is true, sets strikeout on; otherwise sets strikeout off.
See also strikeOut() and QFontInfo.
*/
func (this*QFont) SetStrikeOut(arg0bool) {
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFont12setStrikeOutEb", qtrt.FFI_TYPE_POINTER, this.GetCthis(), arg0)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qfont.h:214
// index:0
// Public Visibility=Default Availability=Available
// [1] bool fixedPitch() const
/*
Returns true if fixed pitch has been set; otherwise returns false.
See also setFixedPitch() and QFontInfo::fixedPitch().
*/
func (this*QFont) FixedPitch() bool {
rv, err:=qtrt.InvokeQtFunc6("_ZNK5QFont10fixedPitchEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnrv!=0
}
// /usr/include/qt/QtGui/qfont.h:215
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setFixedPitch(bool)
/*
If enable is true, sets fixed pitch on; otherwise sets fixed pitch off.
See also fixedPitch() and QFontInfo.
*/
func (this*QFont) SetFixedPitch(arg0bool) {
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFont13setFixedPitchEb", qtrt.FFI_TYPE_POINTER, this.GetCthis(), arg0)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qfont.h:217
// index:0
// Public Visibility=Default Availability=Available
// [1] bool kerning() const
/*
Returns true if kerning should be used when drawing text with this font.
See also setKerning().
*/
func (this*QFont) Kerning() bool {
rv, err:=qtrt.InvokeQtFunc6("_ZNK5QFont7kerningEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnrv!=0
}
// /usr/include/qt/QtGui/qfont.h:218
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setKerning(bool)
/*
Enables kerning for this font if enable is true; otherwise disables it. By default, kerning is enabled.
When kerning is enabled, glyph metrics do not add up anymore, even for Latin text. In other words, the assumption that width('a') + width('b') is equal to width("ab") is not necessarily true.
See also kerning() and QFontMetrics.
*/
func (this*QFont) SetKerning(arg0bool) {
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFont10setKerningEb", qtrt.FFI_TYPE_POINTER, this.GetCthis(), arg0)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qfont.h:220
// index:0
// Public Visibility=Default Availability=Available
// [4] QFont::StyleHint styleHint() const
/*
Returns the StyleHint.
The style hint affects the font matching algorithm. See QFont::StyleHint for the list of available hints.
See also setStyleHint(), QFont::StyleStrategy, and QFontInfo::styleHint().
*/
func (this*QFont) StyleHint() int {
rv, err:=qtrt.InvokeQtFunc6("_ZNK5QFont9styleHintEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnint(rv)
}
// /usr/include/qt/QtGui/qfont.h:221
// index:0
// Public Visibility=Default Availability=Available
// [4] QFont::StyleStrategy styleStrategy() const
/*
Returns the StyleStrategy.
The style strategy affects the font matching algorithm. See QFont::StyleStrategy for the list of available strategies.
See also setStyleStrategy(), setStyleHint(), and QFont::StyleHint.
*/
func (this*QFont) StyleStrategy() int {
rv, err:=qtrt.InvokeQtFunc6("_ZNK5QFont13styleStrategyEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnint(rv)
}
// /usr/include/qt/QtGui/qfont.h:222
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setStyleHint(QFont::StyleHint, QFont::StyleStrategy)
/*
Sets the style hint and strategy to hint and strategy, respectively.
If these aren't set explicitly the style hint will default to AnyStyle and the style strategy to PreferDefault.
Qt does not support style hints on X11 since this information is not provided by the window system.
See also StyleHint, styleHint(), StyleStrategy, styleStrategy(), and QFontInfo.
*/
func (this*QFont) SetStyleHint(arg0int, arg1int) {
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFont12setStyleHintENS_9StyleHintENS_13StyleStrategyE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), arg0, arg1)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qfont.h:222
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setStyleHint(QFont::StyleHint, QFont::StyleStrategy)
/*
Sets the style hint and strategy to hint and strategy, respectively.
If these aren't set explicitly the style hint will default to AnyStyle and the style strategy to PreferDefault.
Qt does not support style hints on X11 since this information is not provided by the window system.
See also StyleHint, styleHint(), StyleStrategy, styleStrategy(), and QFontInfo.
*/
func (this*QFont) SetStyleHintp(arg0int) {
// arg: 1, QFont::StyleStrategy=Enum, QFont::StyleStrategy=Enum, , Invalid
arg1:=0
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFont12setStyleHintENS_9StyleHintENS_13StyleStrategyE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), arg0, arg1)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qfont.h:223
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setStyleStrategy(QFont::StyleStrategy)
/*
Sets the style strategy for the font to s.
See also styleStrategy() and QFont::StyleStrategy.
*/
func (this*QFont) SetStyleStrategy(sint) {
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFont16setStyleStrategyENS_13StyleStrategyE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), s)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qfont.h:225
// index:0
// Public Visibility=Default Availability=Available
// [4] int stretch() const
/*
Returns the stretch factor for the font.
See also setStretch().
*/
func (this*QFont) Stretch() int {
rv, err:=qtrt.InvokeQtFunc6("_ZNK5QFont7stretchEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnqtrt.Cretval2go("int", rv).(int) // 1111
}
// /usr/include/qt/QtGui/qfont.h:226
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setStretch(int)
/*
Sets the stretch factor for the font.
The stretch factor matches a condensed or expanded version of the font or applies a stretch transform that changes the width of all characters in the font by factor percent. For example, setting factor to 150 results in all characters in the font being 1.5 times (ie. 150%) wider. The minimum stretch factor is 1, and the maximum stretch factor is 4000. The default stretch factor is AnyStretch, which will accept any stretch factor and not apply any transform on the font.
The stretch factor is only applied to outline fonts. The stretch factor is ignored for bitmap fonts.
Note: When matching a font with a native non-default stretch factor, requesting a stretch of 100 will stretch it back to a medium width font.
See also stretch() and QFont::Stretch.
*/
func (this*QFont) SetStretch(arg0int) {
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFont10setStretchEi", qtrt.FFI_TYPE_POINTER, this.GetCthis(), arg0)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qfont.h:228
// index:0
// Public Visibility=Default Availability=Available
// [8] qreal letterSpacing() const
/*
Returns the letter spacing for the font.
This function was introduced in Qt 4.4.
See also setLetterSpacing(), letterSpacingType(), and setWordSpacing().
*/
func (this*QFont) LetterSpacing() float64 {
rv, err:=qtrt.InvokeQtFunc6("_ZNK5QFont13letterSpacingEv", qtrt.FFI_TYPE_DOUBLE, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnqtrt.Cretval2go("float64", rv).(float64) // 1111
}
// /usr/include/qt/QtGui/qfont.h:229
// index:0
// Public Visibility=Default Availability=Available
// [4] QFont::SpacingType letterSpacingType() const
/*
Returns the spacing type used for letter spacing.
This function was introduced in Qt 4.4.
See also letterSpacing(), setLetterSpacing(), and setWordSpacing().
*/
func (this*QFont) LetterSpacingType() int {
rv, err:=qtrt.InvokeQtFunc6("_ZNK5QFont17letterSpacingTypeEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnint(rv)
}
// /usr/include/qt/QtGui/qfont.h:230
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setLetterSpacing(QFont::SpacingType, qreal)
/*
Sets the letter spacing for the font to spacing and the type of spacing to type.
Letter spacing changes the default spacing between individual letters in the font. The spacing between the letters can be made smaller as well as larger either in percentage of the character width or in pixels, depending on the selected spacing type.
This function was introduced in Qt 4.4.
See also letterSpacing(), letterSpacingType(), and setWordSpacing().
*/
func (this*QFont) SetLetterSpacing(type_int, spacingfloat64) {
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFont16setLetterSpacingENS_11SpacingTypeEd", qtrt.FFI_TYPE_POINTER, this.GetCthis(), type_, spacing)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qfont.h:232
// index:0
// Public Visibility=Default Availability=Available
// [8] qreal wordSpacing() const
/*
Returns the word spacing for the font.
This function was introduced in Qt 4.4.
See also setWordSpacing() and setLetterSpacing().
*/
func (this*QFont) WordSpacing() float64 {
rv, err:=qtrt.InvokeQtFunc6("_ZNK5QFont11wordSpacingEv", qtrt.FFI_TYPE_DOUBLE, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnqtrt.Cretval2go("float64", rv).(float64) // 1111
}
// /usr/include/qt/QtGui/qfont.h:233
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setWordSpacing(qreal)
/*
Sets the word spacing for the font to spacing.
Word spacing changes the default spacing between individual words. A positive value increases the word spacing by a corresponding amount of pixels, while a negative value decreases the inter-word spacing accordingly.
Word spacing will not apply to writing systems, where indiviaul words are not separated by white space.
This function was introduced in Qt 4.4.
See also wordSpacing() and setLetterSpacing().
*/
func (this*QFont) SetWordSpacing(spacingfloat64) {
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFont14setWordSpacingEd", qtrt.FFI_TYPE_POINTER, this.GetCthis(), spacing)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qfont.h:235
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setCapitalization(QFont::Capitalization)
/*
Sets the capitalization of the text in this font to caps.
A font's capitalization makes the text appear in the selected capitalization mode.
This function was introduced in Qt 4.4.
See also capitalization().
*/
func (this*QFont) SetCapitalization(arg0int) {
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFont17setCapitalizationENS_14CapitalizationE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), arg0)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qfont.h:236
// index:0
// Public Visibility=Default Availability=Available
// [4] QFont::Capitalization capitalization() const
/*
Returns the current capitalization type of the font.
This function was introduced in Qt 4.4.
See also setCapitalization().
*/
func (this*QFont) Capitalization() int {
rv, err:=qtrt.InvokeQtFunc6("_ZNK5QFont14capitalizationEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnint(rv)
}
// /usr/include/qt/QtGui/qfont.h:238
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setHintingPreference(QFont::HintingPreference)
/*
Set the preference for the hinting level of the glyphs to hintingPreference. This is a hint to the underlying font rendering system to use a certain level of hinting, and has varying support across platforms. See the table in the documentation for QFont::HintingPreference for more details.
The default hinting preference is QFont::PreferDefaultHinting.
This function was introduced in Qt 4.8.
See also hintingPreference().
*/
func (this*QFont) SetHintingPreference(hintingPreferenceint) {
rv, err:=qtrt.InvokeQtFunc6("_ZN5QFont20setHintingPreferenceENS_17HintingPreferenceE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), hintingPreference)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qfont.h:239
// index:0
// Public Visibility=Default Availability=Available