1// Package cairo was automatically generated by github.com/bnema/puregotk DO NOT EDIT
2package cairo
3
4import (
5 "structs"
6 "unsafe"
7
8 "github.com/ebitengine/purego"
9
10 "github.com/bnema/puregotk/pkg/core"
11 "github.com/bnema/puregotk/v4/gobject/types"
12)
13
14type Context struct {
15 _ structs.HostLayout
16}
17
18var xContextGLibType func() types.GType
19
20func ContextGLibType() types.GType {
21 return xContextGLibType()
22}
23
24func (x *Context) GoPointer() uintptr {
25 return uintptr(unsafe.Pointer(x))
26}
27
28type Device struct {
29 _ structs.HostLayout
30}
31
32var xDeviceGLibType func() types.GType
33
34func DeviceGLibType() types.GType {
35 return xDeviceGLibType()
36}
37
38func (x *Device) GoPointer() uintptr {
39 return uintptr(unsafe.Pointer(x))
40}
41
42type Surface struct {
43 _ structs.HostLayout
44}
45
46var xSurfaceGLibType func() types.GType
47
48func SurfaceGLibType() types.GType {
49 return xSurfaceGLibType()
50}
51
52func (x *Surface) GoPointer() uintptr {
53 return uintptr(unsafe.Pointer(x))
54}
55
56type Matrix struct {
57 _ structs.HostLayout
58}
59
60func (x *Matrix) GoPointer() uintptr {
61 return uintptr(unsafe.Pointer(x))
62}
63
64type Pattern struct {
65 _ structs.HostLayout
66}
67
68var xPatternGLibType func() types.GType
69
70func PatternGLibType() types.GType {
71 return xPatternGLibType()
72}
73
74func (x *Pattern) GoPointer() uintptr {
75 return uintptr(unsafe.Pointer(x))
76}
77
78type Region struct {
79 _ structs.HostLayout
80}
81
82var xRegionGLibType func() types.GType
83
84func RegionGLibType() types.GType {
85 return xRegionGLibType()
86}
87
88func (x *Region) GoPointer() uintptr {
89 return uintptr(unsafe.Pointer(x))
90}
91
92type FontOptions struct {
93 _ structs.HostLayout
94}
95
96var xFontOptionsGLibType func() types.GType
97
98func FontOptionsGLibType() types.GType {
99 return xFontOptionsGLibType()
100}
101
102func (x *FontOptions) GoPointer() uintptr {
103 return uintptr(unsafe.Pointer(x))
104}
105
106type FontFace struct {
107 _ structs.HostLayout
108}
109
110var xFontFaceGLibType func() types.GType
111
112func FontFaceGLibType() types.GType {
113 return xFontFaceGLibType()
114}
115
116func (x *FontFace) GoPointer() uintptr {
117 return uintptr(unsafe.Pointer(x))
118}
119
120type ScaledFont struct {
121 _ structs.HostLayout
122}
123
124var xScaledFontGLibType func() types.GType
125
126func ScaledFontGLibType() types.GType {
127 return xScaledFontGLibType()
128}
129
130func (x *ScaledFont) GoPointer() uintptr {
131 return uintptr(unsafe.Pointer(x))
132}
133
134type Path struct {
135 _ structs.HostLayout
136}
137
138func (x *Path) GoPointer() uintptr {
139 return uintptr(unsafe.Pointer(x))
140}
141
142type Rectangle struct {
143 _ structs.HostLayout
144
145 X float64
146
147 Y float64
148
149 Width float64
150
151 Height float64
152}
153
154var xRectangleGLibType func() types.GType
155
156func RectangleGLibType() types.GType {
157 return xRectangleGLibType()
158}
159
160func (x *Rectangle) GoPointer() uintptr {
161 return uintptr(unsafe.Pointer(x))
162}
163
164type RectangleInt struct {
165 _ structs.HostLayout
166
167 X int32
168
169 Y int32
170
171 Width int32
172
173 Height int32
174}
175
176var xRectangleIntGLibType func() types.GType
177
178func RectangleIntGLibType() types.GType {
179 return xRectangleIntGLibType()
180}
181
182func (x *RectangleInt) GoPointer() uintptr {
183 return uintptr(unsafe.Pointer(x))
184}
185
186type Glyph struct {
187 _ structs.HostLayout
188
189 Index uint
190
191 X float64
192
193 Y float64
194}
195
196var xGlyphGLibType func() types.GType
197
198func GlyphGLibType() types.GType {
199 return xGlyphGLibType()
200}
201
202func (x *Glyph) GoPointer() uintptr {
203 return uintptr(unsafe.Pointer(x))
204}
205
206type TextCluster struct {
207 _ structs.HostLayout
208
209 NumBytes int
210
211 NumGlyphs int
212}
213
214var xTextClusterGLibType func() types.GType
215
216func TextClusterGLibType() types.GType {
217 return xTextClusterGLibType()
218}
219
220func (x *TextCluster) GoPointer() uintptr {
221 return uintptr(unsafe.Pointer(x))
222}
223
224type Status int
225
226var xStatusGLibType func() types.GType
227
228func StatusGLibType() types.GType {
229 return xStatusGLibType()
230}
231
232const (
233 StatusSuccessValue Status = 0
234
235 StatusNoMemoryValue Status = 1
236
237 StatusInvalidRestoreValue Status = 2
238
239 StatusInvalidPopGroupValue Status = 3
240
241 StatusNoCurrentPointValue Status = 4
242
243 StatusInvalidMatrixValue Status = 5
244
245 StatusInvalidStatusValue Status = 6
246
247 StatusNullPointerValue Status = 7
248
249 StatusInvalidStringValue Status = 8
250
251 StatusInvalidPathDataValue Status = 9
252
253 StatusReadErrorValue Status = 10
254
255 StatusWriteErrorValue Status = 11
256
257 StatusSurfaceFinishedValue Status = 12
258
259 StatusSurfaceTypeMismatchValue Status = 13
260
261 StatusPatternTypeMismatchValue Status = 14
262
263 StatusInvalidContentValue Status = 15
264
265 StatusInvalidFormatValue Status = 16
266
267 StatusInvalidVisualValue Status = 17
268
269 StatusFileNotFoundValue Status = 18
270
271 StatusInvalidDashValue Status = 19
272
273 StatusInvalidDscCommentValue Status = 20
274
275 StatusInvalidIndexValue Status = 21
276
277 StatusClipNotRepresentableValue Status = 22
278
279 StatusTempFileErrorValue Status = 23
280
281 StatusInvalidStrideValue Status = 24
282
283 StatusFontTypeMismatchValue Status = 25
284
285 StatusUserFontImmutableValue Status = 26
286
287 StatusUserFontErrorValue Status = 27
288
289 StatusNegativeCountValue Status = 28
290
291 StatusInvalidClustersValue Status = 29
292
293 StatusInvalidSlantValue Status = 30
294
295 StatusInvalidWeightValue Status = 31
296
297 StatusInvalidSizeValue Status = 32
298
299 StatusUserFontNotImplementedValue Status = 33
300
301 StatusDeviceTypeMismatchValue Status = 34
302
303 StatusDeviceErrorValue Status = 35
304
305 StatusInvalidMeshConstructionValue Status = 36
306
307 StatusDeviceFinishedValue Status = 37
308
309 StatusJbig2GlobalMissingValue Status = 38
310)
311
312type Content int
313
314var xContentGLibType func() types.GType
315
316func ContentGLibType() types.GType {
317 return xContentGLibType()
318}
319
320const (
321 ContentColorValue Content = 4096
322
323 ContentAlphaValue Content = 8192
324
325 ContentColorAlphaValue Content = 12288
326)
327
328type Operator int
329
330var xOperatorGLibType func() types.GType
331
332func OperatorGLibType() types.GType {
333 return xOperatorGLibType()
334}
335
336const (
337 OperatorClearValue Operator = 0
338
339 OperatorSourceValue Operator = 1
340
341 OperatorOverValue Operator = 2
342
343 OperatorInValue Operator = 3
344
345 OperatorOutValue Operator = 4
346
347 OperatorAtopValue Operator = 5
348
349 OperatorDestValue Operator = 6
350
351 OperatorDestOverValue Operator = 7
352
353 OperatorDestInValue Operator = 8
354
355 OperatorDestOutValue Operator = 9
356
357 OperatorDestAtopValue Operator = 10
358
359 OperatorXorValue Operator = 11
360
361 OperatorAddValue Operator = 12
362
363 OperatorSaturateValue Operator = 13
364
365 OperatorMultiplyValue Operator = 14
366
367 OperatorScreenValue Operator = 15
368
369 OperatorOverlayValue Operator = 16
370
371 OperatorDarkenValue Operator = 17
372
373 OperatorLightenValue Operator = 18
374
375 OperatorColorDodgeValue Operator = 19
376
377 OperatorColorBurnValue Operator = 20
378
379 OperatorHardLightValue Operator = 21
380
381 OperatorSoftLightValue Operator = 22
382
383 OperatorDifferenceValue Operator = 23
384
385 OperatorExclusionValue Operator = 24
386
387 OperatorHslHueValue Operator = 25
388
389 OperatorHslSaturationValue Operator = 26
390
391 OperatorHslColorValue Operator = 27
392
393 OperatorHslLuminosityValue Operator = 28
394)
395
396type Antialias int
397
398var xAntialiasGLibType func() types.GType
399
400func AntialiasGLibType() types.GType {
401 return xAntialiasGLibType()
402}
403
404const (
405 AntialiasDefaultValue Antialias = 0
406
407 AntialiasNoneValue Antialias = 1
408
409 AntialiasGrayValue Antialias = 2
410
411 AntialiasSubpixelValue Antialias = 3
412
413 AntialiasFastValue Antialias = 4
414
415 AntialiasGoodValue Antialias = 5
416
417 AntialiasBestValue Antialias = 6
418)
419
420type FillRule int
421
422var xFillRuleGLibType func() types.GType
423
424func FillRuleGLibType() types.GType {
425 return xFillRuleGLibType()
426}
427
428const (
429 FillRuleWindingValue FillRule = 0
430
431 FillRuleEvenOddValue FillRule = 1
432)
433
434type LineCap int
435
436var xLineCapGLibType func() types.GType
437
438func LineCapGLibType() types.GType {
439 return xLineCapGLibType()
440}
441
442const (
443 LineCapButtValue LineCap = 0
444
445 LineCapRoundValue LineCap = 1
446
447 LineCapSquareValue LineCap = 2
448)
449
450type LineJoin int
451
452var xLineJoinGLibType func() types.GType
453
454func LineJoinGLibType() types.GType {
455 return xLineJoinGLibType()
456}
457
458const (
459 LineJoinMiterValue LineJoin = 0
460
461 LineJoinRoundValue LineJoin = 1
462
463 LineJoinBevelValue LineJoin = 2
464)
465
466type TextClusterFlags int
467
468var xTextClusterFlagsGLibType func() types.GType
469
470func TextClusterFlagsGLibType() types.GType {
471 return xTextClusterFlagsGLibType()
472}
473
474const (
475 TextClusterFlagBackwardValue TextClusterFlags = 1
476)
477
478type FontSlant int
479
480var xFontSlantGLibType func() types.GType
481
482func FontSlantGLibType() types.GType {
483 return xFontSlantGLibType()
484}
485
486const (
487 FontSlantNormalValue FontSlant = 0
488
489 FontSlantItalicValue FontSlant = 1
490
491 FontSlantObliqueValue FontSlant = 2
492)
493
494type FontWeight int
495
496var xFontWeightGLibType func() types.GType
497
498func FontWeightGLibType() types.GType {
499 return xFontWeightGLibType()
500}
501
502const (
503 FontWeightNormalValue FontWeight = 0
504
505 FontWeightBoldValue FontWeight = 1
506)
507
508type SubpixelOrder int
509
510var xSubpixelOrderGLibType func() types.GType
511
512func SubpixelOrderGLibType() types.GType {
513 return xSubpixelOrderGLibType()
514}
515
516const (
517 SubpixelOrderDefaultValue SubpixelOrder = 0
518
519 SubpixelOrderRgbValue SubpixelOrder = 1
520
521 SubpixelOrderBgrValue SubpixelOrder = 2
522
523 SubpixelOrderVrgbValue SubpixelOrder = 3
524
525 SubpixelOrderVbgrValue SubpixelOrder = 4
526)
527
528type HintStyle int
529
530var xHintStyleGLibType func() types.GType
531
532func HintStyleGLibType() types.GType {
533 return xHintStyleGLibType()
534}
535
536const (
537 HintStyleDefaultValue HintStyle = 0
538
539 HintStyleNoneValue HintStyle = 1
540
541 HintStyleSlightValue HintStyle = 2
542
543 HintStyleMediumValue HintStyle = 3
544
545 HintStyleFullValue HintStyle = 4
546)
547
548type HintMetrics int
549
550var xHintMetricsGLibType func() types.GType
551
552func HintMetricsGLibType() types.GType {
553 return xHintMetricsGLibType()
554}
555
556const (
557 HintMetricsDefaultValue HintMetrics = 0
558
559 HintMetricsOffValue HintMetrics = 1
560
561 HintMetricsOnValue HintMetrics = 2
562)
563
564type FontType int
565
566var xFontTypeGLibType func() types.GType
567
568func FontTypeGLibType() types.GType {
569 return xFontTypeGLibType()
570}
571
572const (
573 FontTypeToyValue FontType = 0
574
575 FontTypeFtValue FontType = 1
576
577 FontTypeWin32Value FontType = 2
578
579 FontTypeQuartzValue FontType = 3
580
581 FontTypeUserValue FontType = 4
582)
583
584type PathDataType int
585
586var xPathDataTypeGLibType func() types.GType
587
588func PathDataTypeGLibType() types.GType {
589 return xPathDataTypeGLibType()
590}
591
592const (
593 PathMoveToValue PathDataType = 0
594
595 PathLineToValue PathDataType = 1
596
597 PathCurveToValue PathDataType = 2
598
599 PathClosePathValue PathDataType = 3
600)
601
602type DeviceType int
603
604var xDeviceTypeGLibType func() types.GType
605
606func DeviceTypeGLibType() types.GType {
607 return xDeviceTypeGLibType()
608}
609
610const (
611 DeviceTypeDrmValue DeviceType = 0
612
613 DeviceTypeGlValue DeviceType = 1
614
615 DeviceTypeScriptValue DeviceType = 2
616
617 DeviceTypeXcbValue DeviceType = 3
618
619 DeviceTypeXlibValue DeviceType = 4
620
621 DeviceTypeXmlValue DeviceType = 5
622
623 DeviceTypeCoglValue DeviceType = 6
624
625 DeviceTypeWin32Value DeviceType = 7
626
627 DeviceTypeInvalidValue DeviceType = -1
628)
629
630type SurfaceType int
631
632var xSurfaceTypeGLibType func() types.GType
633
634func SurfaceTypeGLibType() types.GType {
635 return xSurfaceTypeGLibType()
636}
637
638const (
639 SurfaceTypeImageValue SurfaceType = 0
640
641 SurfaceTypePdfValue SurfaceType = 1
642
643 SurfaceTypePsValue SurfaceType = 2
644
645 SurfaceTypeXlibValue SurfaceType = 3
646
647 SurfaceTypeXcbValue SurfaceType = 4
648
649 SurfaceTypeGlitzValue SurfaceType = 5
650
651 SurfaceTypeQuartzValue SurfaceType = 6
652
653 SurfaceTypeWin32Value SurfaceType = 7
654
655 SurfaceTypeBeosValue SurfaceType = 8
656
657 SurfaceTypeDirectfbValue SurfaceType = 9
658
659 SurfaceTypeSvgValue SurfaceType = 10
660
661 SurfaceTypeOs2Value SurfaceType = 11
662
663 SurfaceTypeWin32PrintingValue SurfaceType = 12
664
665 SurfaceTypeQuartzImageValue SurfaceType = 13
666
667 SurfaceTypeScriptValue SurfaceType = 14
668
669 SurfaceTypeQtValue SurfaceType = 15
670
671 SurfaceTypeRecordingValue SurfaceType = 16
672
673 SurfaceTypeVgValue SurfaceType = 17
674
675 SurfaceTypeGlValue SurfaceType = 18
676
677 SurfaceTypeDrmValue SurfaceType = 19
678
679 SurfaceTypeTeeValue SurfaceType = 20
680
681 SurfaceTypeXmlValue SurfaceType = 21
682
683 SurfaceTypeSkiaValue SurfaceType = 22
684
685 SurfaceTypeSubsurfaceValue SurfaceType = 23
686
687 SurfaceTypeCoglValue SurfaceType = 24
688)
689
690type Format int
691
692var xFormatGLibType func() types.GType
693
694func FormatGLibType() types.GType {
695 return xFormatGLibType()
696}
697
698const (
699 FormatInvalidValue Format = -1
700
701 FormatArgb32Value Format = 0
702
703 FormatRgb24Value Format = 1
704
705 FormatA8Value Format = 2
706
707 FormatA1Value Format = 3
708
709 FormatRgb16565Value Format = 4
710
711 FormatRgb30Value Format = 5
712)
713
714type PatternType int
715
716var xPatternTypeGLibType func() types.GType
717
718func PatternTypeGLibType() types.GType {
719 return xPatternTypeGLibType()
720}
721
722const (
723 PatternTypeSolidValue PatternType = 0
724
725 PatternTypeSurfaceValue PatternType = 1
726
727 PatternTypeLinearValue PatternType = 2
728
729 PatternTypeRadialValue PatternType = 3
730
731 PatternTypeMeshValue PatternType = 4
732
733 PatternTypeRasterSourceValue PatternType = 5
734)
735
736type Extend int
737
738var xExtendGLibType func() types.GType
739
740func ExtendGLibType() types.GType {
741 return xExtendGLibType()
742}
743
744const (
745 ExtendNoneValue Extend = 0
746
747 ExtendRepeatValue Extend = 1
748
749 ExtendReflectValue Extend = 2
750
751 ExtendPadValue Extend = 3
752)
753
754type Filter int
755
756var xFilterGLibType func() types.GType
757
758func FilterGLibType() types.GType {
759 return xFilterGLibType()
760}
761
762const (
763 FilterFastValue Filter = 0
764
765 FilterGoodValue Filter = 1
766
767 FilterBestValue Filter = 2
768
769 FilterNearestValue Filter = 3
770
771 FilterBilinearValue Filter = 4
772
773 FilterGaussianValue Filter = 5
774)
775
776type RegionOverlap int
777
778var xRegionOverlapGLibType func() types.GType
779
780func RegionOverlapGLibType() types.GType {
781 return xRegionOverlapGLibType()
782}
783
784const (
785 RegionOverlapInValue RegionOverlap = 0
786
787 RegionOverlapOutValue RegionOverlap = 1
788
789 RegionOverlapPartValue RegionOverlap = 2
790)
791
792var xImageSurfaceCreate func()
793
794func ImageSurfaceCreate() {
795
796 xImageSurfaceCreate()
797
798}
799
800func init() {
801 core.SetPackageName("CAIRO", "cairo-gobject")
802 core.SetSharedLibraries("CAIRO", []string{"libcairo-gobject.so.2"})
803 var libs []uintptr
804 for _, libPath := range core.GetPaths("CAIRO") {
805 lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
806 if err != nil {
807 panic(err)
808 }
809 libs = append(libs, lib)
810 }
811
812 core.PuregoSafeRegister(&xStatusGLibType, libs, "cairo_gobject_status_get_type")
813
814 core.PuregoSafeRegister(&xContentGLibType, libs, "cairo_gobject_content_get_type")
815
816 core.PuregoSafeRegister(&xOperatorGLibType, libs, "cairo_gobject_operator_get_type")
817
818 core.PuregoSafeRegister(&xAntialiasGLibType, libs, "cairo_gobject_antialias_get_type")
819
820 core.PuregoSafeRegister(&xFillRuleGLibType, libs, "cairo_gobject_fill_rule_get_type")
821
822 core.PuregoSafeRegister(&xLineCapGLibType, libs, "cairo_gobject_line_cap_get_type")
823
824 core.PuregoSafeRegister(&xLineJoinGLibType, libs, "cairo_gobject_line_join_get_type")
825
826 core.PuregoSafeRegister(&xTextClusterFlagsGLibType, libs, "cairo_gobject_text_cluster_flags_get_type")
827
828 core.PuregoSafeRegister(&xFontSlantGLibType, libs, "cairo_gobject_font_slant_get_type")
829
830 core.PuregoSafeRegister(&xFontWeightGLibType, libs, "cairo_gobject_font_weight_get_type")
831
832 core.PuregoSafeRegister(&xSubpixelOrderGLibType, libs, "cairo_gobject_subpixel_order_get_type")
833
834 core.PuregoSafeRegister(&xHintStyleGLibType, libs, "cairo_gobject_hint_style_get_type")
835
836 core.PuregoSafeRegister(&xHintMetricsGLibType, libs, "cairo_gobject_hint_metrics_get_type")
837
838 core.PuregoSafeRegister(&xFontTypeGLibType, libs, "cairo_gobject_font_type_get_type")
839
840 core.PuregoSafeRegister(&xPathDataTypeGLibType, libs, "cairo_gobject_path_data_type_get_type")
841
842 core.PuregoSafeRegister(&xDeviceTypeGLibType, libs, "cairo_gobject_device_type_get_type")
843
844 core.PuregoSafeRegister(&xSurfaceTypeGLibType, libs, "cairo_gobject_surface_type_get_type")
845
846 core.PuregoSafeRegister(&xFormatGLibType, libs, "cairo_gobject_format_get_type")
847
848 core.PuregoSafeRegister(&xPatternTypeGLibType, libs, "cairo_gobject_pattern_type_get_type")
849
850 core.PuregoSafeRegister(&xExtendGLibType, libs, "cairo_gobject_extend_get_type")
851
852 core.PuregoSafeRegister(&xFilterGLibType, libs, "cairo_gobject_filter_get_type")
853
854 core.PuregoSafeRegister(&xRegionOverlapGLibType, libs, "cairo_gobject_region_overlap_get_type")
855
856 core.PuregoSafeRegister(&xImageSurfaceCreate, libs, "cairo_image_surface_create")
857
858 core.PuregoSafeRegister(&xContextGLibType, libs, "cairo_gobject_context_get_type")
859
860 core.PuregoSafeRegister(&xDeviceGLibType, libs, "cairo_gobject_device_get_type")
861
862 core.PuregoSafeRegister(&xSurfaceGLibType, libs, "cairo_gobject_surface_get_type")
863
864 core.PuregoSafeRegister(&xPatternGLibType, libs, "cairo_gobject_pattern_get_type")
865
866 core.PuregoSafeRegister(&xRegionGLibType, libs, "cairo_gobject_region_get_type")
867
868 core.PuregoSafeRegister(&xFontOptionsGLibType, libs, "cairo_gobject_font_options_get_type")
869
870 core.PuregoSafeRegister(&xFontFaceGLibType, libs, "cairo_gobject_font_face_get_type")
871
872 core.PuregoSafeRegister(&xScaledFontGLibType, libs, "cairo_gobject_scaled_font_get_type")
873
874 core.PuregoSafeRegister(&xRectangleGLibType, libs, "cairo_gobject_rectangle_get_type")
875
876 core.PuregoSafeRegister(&xRectangleIntGLibType, libs, "cairo_gobject_rectangle_int_get_type")
877
878 core.PuregoSafeRegister(&xGlyphGLibType, libs, "cairo_gobject_glyph_get_type")
879
880 core.PuregoSafeRegister(&xTextClusterGLibType, libs, "cairo_gobject_text_cluster_get_type")
881
882}