// Package cairo was automatically generated by github.com/bnema/puregotk DO NOT EDIT package cairo import ( "structs" "unsafe" "github.com/ebitengine/purego" "github.com/bnema/puregotk/pkg/core" "github.com/bnema/puregotk/v4/gobject/types" ) type Context struct { _ structs.HostLayout } var xContextGLibType func() types.GType func ContextGLibType() types.GType { return xContextGLibType() } func (x *Context) GoPointer() uintptr { return uintptr(unsafe.Pointer(x)) } type Device struct { _ structs.HostLayout } var xDeviceGLibType func() types.GType func DeviceGLibType() types.GType { return xDeviceGLibType() } func (x *Device) GoPointer() uintptr { return uintptr(unsafe.Pointer(x)) } type Surface struct { _ structs.HostLayout } var xSurfaceGLibType func() types.GType func SurfaceGLibType() types.GType { return xSurfaceGLibType() } func (x *Surface) GoPointer() uintptr { return uintptr(unsafe.Pointer(x)) } type Matrix struct { _ structs.HostLayout } func (x *Matrix) GoPointer() uintptr { return uintptr(unsafe.Pointer(x)) } type Pattern struct { _ structs.HostLayout } var xPatternGLibType func() types.GType func PatternGLibType() types.GType { return xPatternGLibType() } func (x *Pattern) GoPointer() uintptr { return uintptr(unsafe.Pointer(x)) } type Region struct { _ structs.HostLayout } var xRegionGLibType func() types.GType func RegionGLibType() types.GType { return xRegionGLibType() } func (x *Region) GoPointer() uintptr { return uintptr(unsafe.Pointer(x)) } type FontOptions struct { _ structs.HostLayout } var xFontOptionsGLibType func() types.GType func FontOptionsGLibType() types.GType { return xFontOptionsGLibType() } func (x *FontOptions) GoPointer() uintptr { return uintptr(unsafe.Pointer(x)) } type FontFace struct { _ structs.HostLayout } var xFontFaceGLibType func() types.GType func FontFaceGLibType() types.GType { return xFontFaceGLibType() } func (x *FontFace) GoPointer() uintptr { return uintptr(unsafe.Pointer(x)) } type ScaledFont struct { _ structs.HostLayout } var xScaledFontGLibType func() types.GType func ScaledFontGLibType() types.GType { return xScaledFontGLibType() } func (x *ScaledFont) GoPointer() uintptr { return uintptr(unsafe.Pointer(x)) } type Path struct { _ structs.HostLayout } func (x *Path) GoPointer() uintptr { return uintptr(unsafe.Pointer(x)) } type Rectangle struct { _ structs.HostLayout X float64 Y float64 Width float64 Height float64 } var xRectangleGLibType func() types.GType func RectangleGLibType() types.GType { return xRectangleGLibType() } func (x *Rectangle) GoPointer() uintptr { return uintptr(unsafe.Pointer(x)) } type RectangleInt struct { _ structs.HostLayout X int32 Y int32 Width int32 Height int32 } var xRectangleIntGLibType func() types.GType func RectangleIntGLibType() types.GType { return xRectangleIntGLibType() } func (x *RectangleInt) GoPointer() uintptr { return uintptr(unsafe.Pointer(x)) } type Glyph struct { _ structs.HostLayout Index uint X float64 Y float64 } var xGlyphGLibType func() types.GType func GlyphGLibType() types.GType { return xGlyphGLibType() } func (x *Glyph) GoPointer() uintptr { return uintptr(unsafe.Pointer(x)) } type TextCluster struct { _ structs.HostLayout NumBytes int NumGlyphs int } var xTextClusterGLibType func() types.GType func TextClusterGLibType() types.GType { return xTextClusterGLibType() } func (x *TextCluster) GoPointer() uintptr { return uintptr(unsafe.Pointer(x)) } type Status int var xStatusGLibType func() types.GType func StatusGLibType() types.GType { return xStatusGLibType() } const ( StatusSuccessValue Status = 0 StatusNoMemoryValue Status = 1 StatusInvalidRestoreValue Status = 2 StatusInvalidPopGroupValue Status = 3 StatusNoCurrentPointValue Status = 4 StatusInvalidMatrixValue Status = 5 StatusInvalidStatusValue Status = 6 StatusNullPointerValue Status = 7 StatusInvalidStringValue Status = 8 StatusInvalidPathDataValue Status = 9 StatusReadErrorValue Status = 10 StatusWriteErrorValue Status = 11 StatusSurfaceFinishedValue Status = 12 StatusSurfaceTypeMismatchValue Status = 13 StatusPatternTypeMismatchValue Status = 14 StatusInvalidContentValue Status = 15 StatusInvalidFormatValue Status = 16 StatusInvalidVisualValue Status = 17 StatusFileNotFoundValue Status = 18 StatusInvalidDashValue Status = 19 StatusInvalidDscCommentValue Status = 20 StatusInvalidIndexValue Status = 21 StatusClipNotRepresentableValue Status = 22 StatusTempFileErrorValue Status = 23 StatusInvalidStrideValue Status = 24 StatusFontTypeMismatchValue Status = 25 StatusUserFontImmutableValue Status = 26 StatusUserFontErrorValue Status = 27 StatusNegativeCountValue Status = 28 StatusInvalidClustersValue Status = 29 StatusInvalidSlantValue Status = 30 StatusInvalidWeightValue Status = 31 StatusInvalidSizeValue Status = 32 StatusUserFontNotImplementedValue Status = 33 StatusDeviceTypeMismatchValue Status = 34 StatusDeviceErrorValue Status = 35 StatusInvalidMeshConstructionValue Status = 36 StatusDeviceFinishedValue Status = 37 StatusJbig2GlobalMissingValue Status = 38 ) type Content int var xContentGLibType func() types.GType func ContentGLibType() types.GType { return xContentGLibType() } const ( ContentColorValue Content = 4096 ContentAlphaValue Content = 8192 ContentColorAlphaValue Content = 12288 ) type Operator int var xOperatorGLibType func() types.GType func OperatorGLibType() types.GType { return xOperatorGLibType() } const ( OperatorClearValue Operator = 0 OperatorSourceValue Operator = 1 OperatorOverValue Operator = 2 OperatorInValue Operator = 3 OperatorOutValue Operator = 4 OperatorAtopValue Operator = 5 OperatorDestValue Operator = 6 OperatorDestOverValue Operator = 7 OperatorDestInValue Operator = 8 OperatorDestOutValue Operator = 9 OperatorDestAtopValue Operator = 10 OperatorXorValue Operator = 11 OperatorAddValue Operator = 12 OperatorSaturateValue Operator = 13 OperatorMultiplyValue Operator = 14 OperatorScreenValue Operator = 15 OperatorOverlayValue Operator = 16 OperatorDarkenValue Operator = 17 OperatorLightenValue Operator = 18 OperatorColorDodgeValue Operator = 19 OperatorColorBurnValue Operator = 20 OperatorHardLightValue Operator = 21 OperatorSoftLightValue Operator = 22 OperatorDifferenceValue Operator = 23 OperatorExclusionValue Operator = 24 OperatorHslHueValue Operator = 25 OperatorHslSaturationValue Operator = 26 OperatorHslColorValue Operator = 27 OperatorHslLuminosityValue Operator = 28 ) type Antialias int var xAntialiasGLibType func() types.GType func AntialiasGLibType() types.GType { return xAntialiasGLibType() } const ( AntialiasDefaultValue Antialias = 0 AntialiasNoneValue Antialias = 1 AntialiasGrayValue Antialias = 2 AntialiasSubpixelValue Antialias = 3 AntialiasFastValue Antialias = 4 AntialiasGoodValue Antialias = 5 AntialiasBestValue Antialias = 6 ) type FillRule int var xFillRuleGLibType func() types.GType func FillRuleGLibType() types.GType { return xFillRuleGLibType() } const ( FillRuleWindingValue FillRule = 0 FillRuleEvenOddValue FillRule = 1 ) type LineCap int var xLineCapGLibType func() types.GType func LineCapGLibType() types.GType { return xLineCapGLibType() } const ( LineCapButtValue LineCap = 0 LineCapRoundValue LineCap = 1 LineCapSquareValue LineCap = 2 ) type LineJoin int var xLineJoinGLibType func() types.GType func LineJoinGLibType() types.GType { return xLineJoinGLibType() } const ( LineJoinMiterValue LineJoin = 0 LineJoinRoundValue LineJoin = 1 LineJoinBevelValue LineJoin = 2 ) type TextClusterFlags int var xTextClusterFlagsGLibType func() types.GType func TextClusterFlagsGLibType() types.GType { return xTextClusterFlagsGLibType() } const ( TextClusterFlagBackwardValue TextClusterFlags = 1 ) type FontSlant int var xFontSlantGLibType func() types.GType func FontSlantGLibType() types.GType { return xFontSlantGLibType() } const ( FontSlantNormalValue FontSlant = 0 FontSlantItalicValue FontSlant = 1 FontSlantObliqueValue FontSlant = 2 ) type FontWeight int var xFontWeightGLibType func() types.GType func FontWeightGLibType() types.GType { return xFontWeightGLibType() } const ( FontWeightNormalValue FontWeight = 0 FontWeightBoldValue FontWeight = 1 ) type SubpixelOrder int var xSubpixelOrderGLibType func() types.GType func SubpixelOrderGLibType() types.GType { return xSubpixelOrderGLibType() } const ( SubpixelOrderDefaultValue SubpixelOrder = 0 SubpixelOrderRgbValue SubpixelOrder = 1 SubpixelOrderBgrValue SubpixelOrder = 2 SubpixelOrderVrgbValue SubpixelOrder = 3 SubpixelOrderVbgrValue SubpixelOrder = 4 ) type HintStyle int var xHintStyleGLibType func() types.GType func HintStyleGLibType() types.GType { return xHintStyleGLibType() } const ( HintStyleDefaultValue HintStyle = 0 HintStyleNoneValue HintStyle = 1 HintStyleSlightValue HintStyle = 2 HintStyleMediumValue HintStyle = 3 HintStyleFullValue HintStyle = 4 ) type HintMetrics int var xHintMetricsGLibType func() types.GType func HintMetricsGLibType() types.GType { return xHintMetricsGLibType() } const ( HintMetricsDefaultValue HintMetrics = 0 HintMetricsOffValue HintMetrics = 1 HintMetricsOnValue HintMetrics = 2 ) type FontType int var xFontTypeGLibType func() types.GType func FontTypeGLibType() types.GType { return xFontTypeGLibType() } const ( FontTypeToyValue FontType = 0 FontTypeFtValue FontType = 1 FontTypeWin32Value FontType = 2 FontTypeQuartzValue FontType = 3 FontTypeUserValue FontType = 4 ) type PathDataType int var xPathDataTypeGLibType func() types.GType func PathDataTypeGLibType() types.GType { return xPathDataTypeGLibType() } const ( PathMoveToValue PathDataType = 0 PathLineToValue PathDataType = 1 PathCurveToValue PathDataType = 2 PathClosePathValue PathDataType = 3 ) type DeviceType int var xDeviceTypeGLibType func() types.GType func DeviceTypeGLibType() types.GType { return xDeviceTypeGLibType() } const ( DeviceTypeDrmValue DeviceType = 0 DeviceTypeGlValue DeviceType = 1 DeviceTypeScriptValue DeviceType = 2 DeviceTypeXcbValue DeviceType = 3 DeviceTypeXlibValue DeviceType = 4 DeviceTypeXmlValue DeviceType = 5 DeviceTypeCoglValue DeviceType = 6 DeviceTypeWin32Value DeviceType = 7 DeviceTypeInvalidValue DeviceType = -1 ) type SurfaceType int var xSurfaceTypeGLibType func() types.GType func SurfaceTypeGLibType() types.GType { return xSurfaceTypeGLibType() } const ( SurfaceTypeImageValue SurfaceType = 0 SurfaceTypePdfValue SurfaceType = 1 SurfaceTypePsValue SurfaceType = 2 SurfaceTypeXlibValue SurfaceType = 3 SurfaceTypeXcbValue SurfaceType = 4 SurfaceTypeGlitzValue SurfaceType = 5 SurfaceTypeQuartzValue SurfaceType = 6 SurfaceTypeWin32Value SurfaceType = 7 SurfaceTypeBeosValue SurfaceType = 8 SurfaceTypeDirectfbValue SurfaceType = 9 SurfaceTypeSvgValue SurfaceType = 10 SurfaceTypeOs2Value SurfaceType = 11 SurfaceTypeWin32PrintingValue SurfaceType = 12 SurfaceTypeQuartzImageValue SurfaceType = 13 SurfaceTypeScriptValue SurfaceType = 14 SurfaceTypeQtValue SurfaceType = 15 SurfaceTypeRecordingValue SurfaceType = 16 SurfaceTypeVgValue SurfaceType = 17 SurfaceTypeGlValue SurfaceType = 18 SurfaceTypeDrmValue SurfaceType = 19 SurfaceTypeTeeValue SurfaceType = 20 SurfaceTypeXmlValue SurfaceType = 21 SurfaceTypeSkiaValue SurfaceType = 22 SurfaceTypeSubsurfaceValue SurfaceType = 23 SurfaceTypeCoglValue SurfaceType = 24 ) type Format int var xFormatGLibType func() types.GType func FormatGLibType() types.GType { return xFormatGLibType() } const ( FormatInvalidValue Format = -1 FormatArgb32Value Format = 0 FormatRgb24Value Format = 1 FormatA8Value Format = 2 FormatA1Value Format = 3 FormatRgb16565Value Format = 4 FormatRgb30Value Format = 5 ) type PatternType int var xPatternTypeGLibType func() types.GType func PatternTypeGLibType() types.GType { return xPatternTypeGLibType() } const ( PatternTypeSolidValue PatternType = 0 PatternTypeSurfaceValue PatternType = 1 PatternTypeLinearValue PatternType = 2 PatternTypeRadialValue PatternType = 3 PatternTypeMeshValue PatternType = 4 PatternTypeRasterSourceValue PatternType = 5 ) type Extend int var xExtendGLibType func() types.GType func ExtendGLibType() types.GType { return xExtendGLibType() } const ( ExtendNoneValue Extend = 0 ExtendRepeatValue Extend = 1 ExtendReflectValue Extend = 2 ExtendPadValue Extend = 3 ) type Filter int var xFilterGLibType func() types.GType func FilterGLibType() types.GType { return xFilterGLibType() } const ( FilterFastValue Filter = 0 FilterGoodValue Filter = 1 FilterBestValue Filter = 2 FilterNearestValue Filter = 3 FilterBilinearValue Filter = 4 FilterGaussianValue Filter = 5 ) type RegionOverlap int var xRegionOverlapGLibType func() types.GType func RegionOverlapGLibType() types.GType { return xRegionOverlapGLibType() } const ( RegionOverlapInValue RegionOverlap = 0 RegionOverlapOutValue RegionOverlap = 1 RegionOverlapPartValue RegionOverlap = 2 ) var xImageSurfaceCreate func() func ImageSurfaceCreate() { xImageSurfaceCreate() } func init() { core.SetPackageName("CAIRO", "cairo-gobject") core.SetSharedLibraries("CAIRO", []string{"libcairo-gobject.so.2"}) var libs []uintptr for _, libPath := range core.GetPaths("CAIRO") { lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) if err != nil { panic(err) } libs = append(libs, lib) } core.PuregoSafeRegister(&xStatusGLibType, libs, "cairo_gobject_status_get_type") core.PuregoSafeRegister(&xContentGLibType, libs, "cairo_gobject_content_get_type") core.PuregoSafeRegister(&xOperatorGLibType, libs, "cairo_gobject_operator_get_type") core.PuregoSafeRegister(&xAntialiasGLibType, libs, "cairo_gobject_antialias_get_type") core.PuregoSafeRegister(&xFillRuleGLibType, libs, "cairo_gobject_fill_rule_get_type") core.PuregoSafeRegister(&xLineCapGLibType, libs, "cairo_gobject_line_cap_get_type") core.PuregoSafeRegister(&xLineJoinGLibType, libs, "cairo_gobject_line_join_get_type") core.PuregoSafeRegister(&xTextClusterFlagsGLibType, libs, "cairo_gobject_text_cluster_flags_get_type") core.PuregoSafeRegister(&xFontSlantGLibType, libs, "cairo_gobject_font_slant_get_type") core.PuregoSafeRegister(&xFontWeightGLibType, libs, "cairo_gobject_font_weight_get_type") core.PuregoSafeRegister(&xSubpixelOrderGLibType, libs, "cairo_gobject_subpixel_order_get_type") core.PuregoSafeRegister(&xHintStyleGLibType, libs, "cairo_gobject_hint_style_get_type") core.PuregoSafeRegister(&xHintMetricsGLibType, libs, "cairo_gobject_hint_metrics_get_type") core.PuregoSafeRegister(&xFontTypeGLibType, libs, "cairo_gobject_font_type_get_type") core.PuregoSafeRegister(&xPathDataTypeGLibType, libs, "cairo_gobject_path_data_type_get_type") core.PuregoSafeRegister(&xDeviceTypeGLibType, libs, "cairo_gobject_device_type_get_type") core.PuregoSafeRegister(&xSurfaceTypeGLibType, libs, "cairo_gobject_surface_type_get_type") core.PuregoSafeRegister(&xFormatGLibType, libs, "cairo_gobject_format_get_type") core.PuregoSafeRegister(&xPatternTypeGLibType, libs, "cairo_gobject_pattern_type_get_type") core.PuregoSafeRegister(&xExtendGLibType, libs, "cairo_gobject_extend_get_type") core.PuregoSafeRegister(&xFilterGLibType, libs, "cairo_gobject_filter_get_type") core.PuregoSafeRegister(&xRegionOverlapGLibType, libs, "cairo_gobject_region_overlap_get_type") core.PuregoSafeRegister(&xImageSurfaceCreate, libs, "cairo_image_surface_create") core.PuregoSafeRegister(&xContextGLibType, libs, "cairo_gobject_context_get_type") core.PuregoSafeRegister(&xDeviceGLibType, libs, "cairo_gobject_device_get_type") core.PuregoSafeRegister(&xSurfaceGLibType, libs, "cairo_gobject_surface_get_type") core.PuregoSafeRegister(&xPatternGLibType, libs, "cairo_gobject_pattern_get_type") core.PuregoSafeRegister(&xRegionGLibType, libs, "cairo_gobject_region_get_type") core.PuregoSafeRegister(&xFontOptionsGLibType, libs, "cairo_gobject_font_options_get_type") core.PuregoSafeRegister(&xFontFaceGLibType, libs, "cairo_gobject_font_face_get_type") core.PuregoSafeRegister(&xScaledFontGLibType, libs, "cairo_gobject_scaled_font_get_type") core.PuregoSafeRegister(&xRectangleGLibType, libs, "cairo_gobject_rectangle_get_type") core.PuregoSafeRegister(&xRectangleIntGLibType, libs, "cairo_gobject_rectangle_int_get_type") core.PuregoSafeRegister(&xGlyphGLibType, libs, "cairo_gobject_glyph_get_type") core.PuregoSafeRegister(&xTextClusterGLibType, libs, "cairo_gobject_text_cluster_get_type") }