Documentation ¶
Overview ¶
Package cairo provides Go bindings for Cairo.
Index ¶
- Constants
- func AppendPath(cr *Cairo, path *Path)
- func Arc(cr *Cairo, xc float64, yc float64, radius float64, angle1 float64, ...)
- func ArcNegative(cr *Cairo, xc float64, yc float64, radius float64, angle1 float64, ...)
- func Clip(cr *Cairo)
- func ClipExtents(cr *Cairo, x1 *float64, y1 *float64, x2 *float64, y2 *float64)
- func ClipPreserve(cr *Cairo)
- func ClosePath(cr *Cairo)
- func CopyPage(cr *Cairo)
- func CurveTo(cr *Cairo, x1 float64, y1 float64, x2 float64, y2 float64, x3 float64, ...)
- func DebugResetStaticData()
- func Destroy(cr *Cairo)
- func DeviceDestroy(device *Device)
- func DeviceFinish(device *Device)
- func DeviceFlush(device *Device)
- func DeviceGetReferenceCount(device *Device) uint32
- func DeviceGetUserData(device *Device, key *UserDataKey) unsafe.Pointer
- func DeviceObserverElapsed(device *Device) float64
- func DeviceObserverFillElapsed(device *Device) float64
- func DeviceObserverGlyphsElapsed(device *Device) float64
- func DeviceObserverMaskElapsed(device *Device) float64
- func DeviceObserverPaintElapsed(device *Device) float64
- func DeviceObserverStrokeElapsed(device *Device) float64
- func DeviceRelease(device *Device)
- func DeviceToUser(cr *Cairo, x *float64, y *float64)
- func DeviceToUserDistance(cr *Cairo, dx *float64, dy *float64)
- func Fill(cr *Cairo)
- func FillExtents(cr *Cairo, x1 *float64, y1 *float64, x2 *float64, y2 *float64)
- func FillPreserve(cr *Cairo)
- func FontFaceDestroy(fontFace *FontFace)
- func FontFaceGetReferenceCount(fontFace *FontFace) uint32
- func FontFaceGetUserData(fontFace *FontFace, key *UserDataKey) unsafe.Pointer
- func FontOptionsDestroy(options *FontOptions)
- func FontOptionsGetVariations(options *FontOptions) string
- func FontOptionsHash(options *FontOptions) uint
- func FontOptionsMerge(options *FontOptions, other *FontOptions)
- func FontOptionsSetAntialias(options *FontOptions, antialias Antialias)
- func FontOptionsSetHintMetrics(options *FontOptions, hintMetrics HintMetrics)
- func FontOptionsSetHintStyle(options *FontOptions, hintStyle HintStyle)
- func FontOptionsSetSubpixelOrder(options *FontOptions, subpixelOrder SubpixelOrder)
- func FontOptionsSetVariations(options *FontOptions, variations string)
- func FormatStrideForWidth(format Format, width int32) int32
- func GetCurrentPoint(cr *Cairo, x *float64, y *float64)
- func GetDash(cr *Cairo, dashes *float64, offset *float64)
- func GetDashCount(cr *Cairo) int32
- func GetFontExtents(cr *Cairo, extents *FontExtents)
- func GetFontMatrix(cr *Cairo, matrix *Matrix)
- func GetFontOptions(cr *Cairo, options *FontOptions)
- func GetLineWidth(cr *Cairo) float64
- func GetMatrix(cr *Cairo, matrix *Matrix)
- func GetMiterLimit(cr *Cairo) float64
- func GetReferenceCount(cr *Cairo) uint32
- func GetTextExtents(cr *Cairo, utf8 string, extents *TextExtents)
- func GetTolerance(cr *Cairo) float64
- func GetUserData(cr *Cairo, key *UserDataKey) unsafe.Pointer
- func GetVersion() int32
- func GlyphExtents(cr *Cairo, glyphs *Glyph, numGlyphs int32, extents *TextExtents)
- func GlyphFree(glyphs *Glyph)
- func GlyphPath(cr *Cairo, glyphs *Glyph, numGlyphs int32)
- func IdentityMatrix(cr *Cairo)
- func ImageSurfaceGetData(surface *Surface) *byte
- func ImageSurfaceGetHeight(surface *Surface) int32
- func ImageSurfaceGetStride(surface *Surface) int32
- func ImageSurfaceGetWidth(surface *Surface) int32
- func LineTo(cr *Cairo, x float64, y float64)
- func MakeRectangle(cr *Cairo, x float64, y float64, width float64, height float64)
- func Mask(cr *Cairo, pattern *Pattern)
- func MaskSurface(cr *Cairo, surface *Surface, surfaceX float64, surfaceY float64)
- func MatrixInit(matrix *Matrix, xx float64, yx float64, xy float64, yy float64, x0 float64, ...)
- func MatrixInitIdentity(matrix *Matrix)
- func MatrixInitRotate(matrix *Matrix, radians float64)
- func MatrixInitScale(matrix *Matrix, sx float64, sy float64)
- func MatrixInitTranslate(matrix *Matrix, tx float64, ty float64)
- func MatrixMultiply(result *Matrix, a *Matrix, b *Matrix)
- func MatrixRotate(matrix *Matrix, radians float64)
- func MatrixScale(matrix *Matrix, sx float64, sy float64)
- func MatrixTransformDistance(matrix *Matrix, dx *float64, dy *float64)
- func MatrixTransformPoint(matrix *Matrix, x *float64, y *float64)
- func MatrixTranslate(matrix *Matrix, tx float64, ty float64)
- func MeshPatternBeginPatch(pattern *Pattern)
- func MeshPatternCurveTo(pattern *Pattern, x1 float64, y1 float64, x2 float64, y2 float64, x3 float64, ...)
- func MeshPatternEndPatch(pattern *Pattern)
- func MeshPatternLineTo(pattern *Pattern, x float64, y float64)
- func MeshPatternMoveTo(pattern *Pattern, x float64, y float64)
- func MeshPatternSetControlPoint(pattern *Pattern, pointNum uint32, x float64, y float64)
- func MeshPatternSetCornerColorRgb(pattern *Pattern, cornerNum uint32, red float64, green float64, blue float64)
- func MeshPatternSetCornerColorRgba(pattern *Pattern, cornerNum uint32, red float64, green float64, blue float64, ...)
- func MoveTo(cr *Cairo, x float64, y float64)
- func NewPath(cr *Cairo)
- func NewSubPath(cr *Cairo)
- func Paint(cr *Cairo)
- func PaintWithAlpha(cr *Cairo, alpha float64)
- func PathDestroy(path *Path)
- func PathExtents(cr *Cairo, x1 *float64, y1 *float64, x2 *float64, y2 *float64)
- func PatternAddColorStopRgb(pattern *Pattern, offset float64, red float64, green float64, blue float64)
- func PatternAddColorStopRgba(pattern *Pattern, offset float64, red float64, green float64, blue float64, ...)
- func PatternDestroy(pattern *Pattern)
- func PatternGetMatrix(pattern *Pattern, matrix *Matrix)
- func PatternGetReferenceCount(pattern *Pattern) uint32
- func PatternGetUserData(pattern *Pattern, key *UserDataKey) unsafe.Pointer
- func PatternSetExtend(pattern *Pattern, extend Extend)
- func PatternSetFilter(pattern *Pattern, filter Filter)
- func PatternSetMatrix(pattern *Pattern, matrix *Matrix)
- func PopGroupToSource(cr *Cairo)
- func PushGroup(cr *Cairo)
- func PushGroupWithContent(cr *Cairo, content Content)
- func RasterSourcePatternGetAcquire(pattern *Pattern, acquire RasterSourceAcquireFunc, ...)
- func RasterSourcePatternGetCallbackData(pattern *Pattern) unsafe.Pointer
- func RasterSourcePatternSetAcquire(pattern *Pattern, acquire RasterSourceAcquireFunc, ...)
- func RasterSourcePatternSetCallbackData(pattern *Pattern, data unsafe.Pointer)
- func RasterSourcePatternSetCopy(pattern *Pattern, copy RasterSourceCopyFunc)
- func RasterSourcePatternSetFinish(pattern *Pattern, finish RasterSourceFinishFunc)
- func RasterSourcePatternSetSnapshot(pattern *Pattern, snapshot RasterSourceSnapshotFunc)
- func RecordingSurfaceInkExtents(surface *Surface, x0 *float64, y0 *float64, width *float64, height *float64)
- func RectangleListDestroy(rectangleList *RectangleList)
- func RegionDestroy(region *Region)
- func RegionGetExtents(region *Region, extents *RectangleInt)
- func RegionGetRectangle(region *Region, nth int32, rectangle *RectangleInt)
- func RegionNumRectangles(region *Region) int32
- func RegionTranslate(region *Region, dx int32, dy int32)
- func RelCurveTo(cr *Cairo, dx1 float64, dy1 float64, dx2 float64, dy2 float64, dx3 float64, ...)
- func RelLineTo(cr *Cairo, dx float64, dy float64)
- func RelMoveTo(cr *Cairo, dx float64, dy float64)
- func ResetClip(cr *Cairo)
- func Restore(cr *Cairo)
- func Rotate(cr *Cairo, angle float64)
- func Save(cr *Cairo)
- func Scale(cr *Cairo, sx float64, sy float64)
- func ScaledFontDestroy(scaledFont *ScaledFont)
- func ScaledFontExtents(scaledFont *ScaledFont, extents *FontExtents)
- func ScaledFontGetCtm(scaledFont *ScaledFont, ctm *Matrix)
- func ScaledFontGetFontMatrix(scaledFont *ScaledFont, fontMatrix *Matrix)
- func ScaledFontGetFontOptions(scaledFont *ScaledFont, options *FontOptions)
- func ScaledFontGetReferenceCount(scaledFont *ScaledFont) uint32
- func ScaledFontGetScaleMatrix(scaledFont *ScaledFont, scaleMatrix *Matrix)
- func ScaledFontGetUserData(scaledFont *ScaledFont, key *UserDataKey) unsafe.Pointer
- func ScaledFontGlyphExtents(scaledFont *ScaledFont, glyphs *Glyph, numGlyphs int32, extents *TextExtents)
- func ScaledFontTextExtents(scaledFont *ScaledFont, utf8 string, extents *TextExtents)
- func SelectFontFace(cr *Cairo, family string, slant FontSlant, weight FontWeight)
- func SetAntialias(cr *Cairo, antialias Antialias)
- func SetDash(cr *Cairo, dashes *float64, numDashes int32, offset float64)
- func SetFillRule(cr *Cairo, fillRule FillRule)
- func SetFontFace(cr *Cairo, fontFace *FontFace)
- func SetFontMatrix(cr *Cairo, matrix *Matrix)
- func SetFontOptions(cr *Cairo, options *FontOptions)
- func SetFontSize(cr *Cairo, size float64)
- func SetLineCap(cr *Cairo, lineCap LineCap)
- func SetLineJoin(cr *Cairo, lineJoin LineJoin)
- func SetLineWidth(cr *Cairo, width float64)
- func SetMatrix(cr *Cairo, matrix *Matrix)
- func SetMiterLimit(cr *Cairo, limit float64)
- func SetOperator(cr *Cairo, op Operator)
- func SetScaledFont(cr *Cairo, scaledFont *ScaledFont)
- func SetSource(cr *Cairo, source *Pattern)
- func SetSourceRgb(cr *Cairo, red float64, green float64, blue float64)
- func SetSourceRgba(cr *Cairo, red float64, green float64, blue float64, alpha float64)
- func SetSourceSurface(cr *Cairo, surface *Surface, x float64, y float64)
- func SetTolerance(cr *Cairo, tolerance float64)
- func ShowGlyphs(cr *Cairo, glyphs *Glyph, numGlyphs int32)
- func ShowPage(cr *Cairo)
- func ShowText(cr *Cairo, utf8 string)
- func ShowTextGlyphs(cr *Cairo, utf8 string, utf8Len int32, glyphs *Glyph, numGlyphs int32, ...)
- func StatusToString(status Status) string
- func Stroke(cr *Cairo)
- func StrokeExtents(cr *Cairo, x1 *float64, y1 *float64, x2 *float64, y2 *float64)
- func StrokePreserve(cr *Cairo)
- func SurfaceCopyPage(surface *Surface)
- func SurfaceDestroy(surface *Surface)
- func SurfaceFinish(surface *Surface)
- func SurfaceFlush(surface *Surface)
- func SurfaceGetDeviceOffset(surface *Surface, xOffset *float64, yOffset *float64)
- func SurfaceGetDeviceScale(surface *Surface, xScale *float64, yScale *float64)
- func SurfaceGetFallbackResolution(surface *Surface, xPixelsPerInch *float64, yPixelsPerInch *float64)
- func SurfaceGetFontOptions(surface *Surface, options *FontOptions)
- func SurfaceGetReferenceCount(surface *Surface) uint32
- func SurfaceGetUserData(surface *Surface, key *UserDataKey) unsafe.Pointer
- func SurfaceMarkDirty(surface *Surface)
- func SurfaceMarkDirtyRectangle(surface *Surface, x int32, y int32, width int32, height int32)
- func SurfaceObserverElapsed(surface *Surface) float64
- func SurfaceSetDeviceOffset(surface *Surface, xOffset float64, yOffset float64)
- func SurfaceSetDeviceScale(surface *Surface, xScale float64, yScale float64)
- func SurfaceSetFallbackResolution(surface *Surface, xPixelsPerInch float64, yPixelsPerInch float64)
- func SurfaceShowPage(surface *Surface)
- func SurfaceUnmapImage(surface *Surface, image *Surface)
- func TagBegin(cr *Cairo, tagName string, attributes string)
- func TagEnd(cr *Cairo, tagName string)
- func TextClusterFree(clusters *TextCluster)
- func TextPath(cr *Cairo, utf8 string)
- func ToyFontFaceGetFamily(fontFace *FontFace) string
- func Transform(cr *Cairo, matrix *Matrix)
- func Translate(cr *Cairo, tx float64, ty float64)
- func UserFontFaceSetInitFunc(fontFace *FontFace, initFunc UserScaledFontInitFunc)
- func UserFontFaceSetRenderGlyphFunc(fontFace *FontFace, renderGlyphFunc UserScaledFontRenderGlyphFunc)
- func UserFontFaceSetTextToGlyphsFunc(fontFace *FontFace, textToGlyphsFunc UserScaledFontTextToGlyphsFunc)
- func UserFontFaceSetUnicodeToGlyphFunc(fontFace *FontFace, unicodeToGlyphFunc UserScaledFontUnicodeToGlyphFunc)
- func UserToDevice(cr *Cairo, x *float64, y *float64)
- func UserToDeviceDistance(cr *Cairo, dx *float64, dy *float64)
- func VersionString() string
- type Antialias
- type Bool
- func FontOptionsEqual(options *FontOptions, other *FontOptions) Bool
- func HasCurrentPoint(cr *Cairo) Bool
- func InClip(cr *Cairo, x float64, y float64) Bool
- func InFill(cr *Cairo, x float64, y float64) Bool
- func InStroke(cr *Cairo, x float64, y float64) Bool
- func RecordingSurfaceGetExtents(surface *Surface, extents *Rectangle) Bool
- func RegionContainsPoint(region *Region, x int32, y int32) Bool
- func RegionEqual(a *Region, b *Region) Bool
- func RegionIsEmpty(region *Region) Bool
- func SurfaceHasShowTextGlyphs(surface *Surface) Bool
- func SurfaceSupportsMimeType(surface *Surface, mimeType string) Bool
- type Cairo
- type Content
- type DestroyFunc
- type Device
- type DeviceType
- type Extend
- type FillRule
- type Filter
- type FontExtents
- type FontFace
- func FontFaceReference(fontFace *FontFace) *FontFace
- func GetFontFace(cr *Cairo) *FontFace
- func NewFontFace() *FontFace
- func NewFontFaceRef(ref unsafe.Pointer) *FontFace
- func ScaledFontGetFontFace(scaledFont *ScaledFont) *FontFace
- func ToyFontFaceCreate(family string, slant FontSlant, weight FontWeight) *FontFace
- func UserFontFaceCreate() *FontFace
- type FontOptions
- type FontSlant
- type FontType
- type FontWeight
- type Format
- type Glyph
- type HintMetrics
- type HintStyle
- type LineCap
- type LineJoin
- type Matrix
- type Operator
- type Path
- type PathData
- type PathDataType
- type Pattern
- func GetSource(cr *Cairo) *Pattern
- func NewPattern() *Pattern
- func NewPatternRef(ref unsafe.Pointer) *Pattern
- func PatternCreateForSurface(surface *Surface) *Pattern
- func PatternCreateLinear(x0 float64, y0 float64, x1 float64, y1 float64) *Pattern
- func PatternCreateMesh() *Pattern
- func PatternCreateRadial(cx0 float64, cy0 float64, radius0 float64, cx1 float64, cy1 float64, ...) *Pattern
- func PatternCreateRasterSource(userData unsafe.Pointer, content Content, width int32, height int32) *Pattern
- func PatternCreateRgb(red float64, green float64, blue float64) *Pattern
- func PatternCreateRgba(red float64, green float64, blue float64, alpha float64) *Pattern
- func PatternReference(pattern *Pattern) *Pattern
- func PopGroup(cr *Cairo) *Pattern
- type PatternType
- type RasterSourceAcquireFunc
- type RasterSourceCopyFunc
- type RasterSourceFinishFunc
- type RasterSourceReleaseFunc
- type RasterSourceSnapshotFunc
- type RawString
- type ReadFunc
- type Rectangle
- type RectangleInt
- type RectangleList
- type Region
- func NewRegion() *Region
- func NewRegionRef(ref unsafe.Pointer) *Region
- func RegionCopy(original *Region) *Region
- func RegionCreate() *Region
- func RegionCreateRectangle(rectangle *RectangleInt) *Region
- func RegionCreateRectangles(rects *RectangleInt, count int32) *Region
- func RegionReference(region *Region) *Region
- type RegionOverlap
- type ScaledFont
- type Status
- func DeviceAcquire(device *Device) Status
- func DeviceObserverPrint(device *Device, writeFunc WriteFunc, closure unsafe.Pointer) Status
- func DeviceSetUserData(device *Device, key *UserDataKey, userData unsafe.Pointer, destroy DestroyFunc) Status
- func DeviceStatus(device *Device) Status
- func FontFaceSetUserData(fontFace *FontFace, key *UserDataKey, userData unsafe.Pointer, ...) Status
- func FontFaceStatus(fontFace *FontFace) Status
- func FontOptionsStatus(options *FontOptions) Status
- func GetStatus(cr *Cairo) Status
- func MatrixInvert(matrix *Matrix) Status
- func MeshPatternGetControlPoint(pattern *Pattern, patchNum uint32, pointNum uint32, x *float64, y *float64) Status
- func MeshPatternGetCornerColorRgba(pattern *Pattern, patchNum uint32, cornerNum uint32, red *float64, ...) Status
- func MeshPatternGetPatchCount(pattern *Pattern, count *uint32) Status
- func PatternGetColorStopCount(pattern *Pattern, count *int32) Status
- func PatternGetColorStopRgba(pattern *Pattern, index int32, offset *float64, red *float64, green *float64, ...) Status
- func PatternGetLinearPoints(pattern *Pattern, x0 *float64, y0 *float64, x1 *float64, y1 *float64) Status
- func PatternGetRadialCircles(pattern *Pattern, x0 *float64, y0 *float64, r0 *float64, x1 *float64, ...) Status
- func PatternGetRgba(pattern *Pattern, red *float64, green *float64, blue *float64, alpha *float64) Status
- func PatternGetSurface(pattern *Pattern, surface []*Surface) Status
- func PatternSetUserData(pattern *Pattern, key *UserDataKey, userData unsafe.Pointer, ...) Status
- func PatternStatus(pattern *Pattern) Status
- func RegionIntersect(dst *Region, other *Region) Status
- func RegionIntersectRectangle(dst *Region, rectangle *RectangleInt) Status
- func RegionStatus(region *Region) Status
- func RegionSubtract(dst *Region, other *Region) Status
- func RegionSubtractRectangle(dst *Region, rectangle *RectangleInt) Status
- func RegionUnion(dst *Region, other *Region) Status
- func RegionUnionRectangle(dst *Region, rectangle *RectangleInt) Status
- func RegionXor(dst *Region, other *Region) Status
- func RegionXorRectangle(dst *Region, rectangle *RectangleInt) Status
- func ScaledFontSetUserData(scaledFont *ScaledFont, key *UserDataKey, userData unsafe.Pointer, ...) Status
- func ScaledFontStatus(scaledFont *ScaledFont) Status
- func ScaledFontTextToGlyphs(scaledFont *ScaledFont, x float64, y float64, utf8 string, utf8Len int32, ...) Status
- func SetUserData(cr *Cairo, key *UserDataKey, userData unsafe.Pointer, destroy DestroyFunc) Status
- func SurfaceObserverAddFillCallback(abstractSurface *Surface, _func SurfaceObserverCallback, data unsafe.Pointer) Status
- func SurfaceObserverAddFinishCallback(abstractSurface *Surface, _func SurfaceObserverCallback, data unsafe.Pointer) Status
- func SurfaceObserverAddFlushCallback(abstractSurface *Surface, _func SurfaceObserverCallback, data unsafe.Pointer) Status
- func SurfaceObserverAddGlyphsCallback(abstractSurface *Surface, _func SurfaceObserverCallback, data unsafe.Pointer) Status
- func SurfaceObserverAddMaskCallback(abstractSurface *Surface, _func SurfaceObserverCallback, data unsafe.Pointer) Status
- func SurfaceObserverAddPaintCallback(abstractSurface *Surface, _func SurfaceObserverCallback, data unsafe.Pointer) Status
- func SurfaceObserverAddStrokeCallback(abstractSurface *Surface, _func SurfaceObserverCallback, data unsafe.Pointer) Status
- func SurfaceObserverPrint(surface *Surface, writeFunc WriteFunc, closure unsafe.Pointer) Status
- func SurfaceSetMimeData(surface *Surface, mimeType string, data string, length uint, ...) Status
- func SurfaceSetUserData(surface *Surface, key *UserDataKey, userData unsafe.Pointer, ...) Status
- func SurfaceStatus(surface *Surface) Status
- func SurfaceWriteToPng(surface *Surface, filename string) Status
- func SurfaceWriteToPngStream(surface *Surface, writeFunc WriteFunc, closure unsafe.Pointer) Status
- type SubpixelOrder
- type Surface
- func GetGroupTarget(cr *Cairo) *Surface
- func GetTarget(cr *Cairo) *Surface
- func ImageSurfaceCreate(format Format, width int32, height int32) *Surface
- func ImageSurfaceCreateForData(data *byte, format Format, width int32, height int32, stride int32) *Surface
- func ImageSurfaceCreateFromPng(filename string) *Surface
- func ImageSurfaceCreateFromPngStream(readFunc ReadFunc, closure unsafe.Pointer) *Surface
- func NewSurface() *Surface
- func NewSurfaceRef(ref unsafe.Pointer) *Surface
- func RecordingSurfaceCreate(content Content, extents *Rectangle) *Surface
- func SurfaceCreateForRectangle(target *Surface, x float64, y float64, width float64, height float64) *Surface
- func SurfaceCreateObserver(target *Surface, mode SurfaceObserverMode) *Surface
- func SurfaceCreateSimilar(other *Surface, content Content, width int32, height int32) *Surface
- func SurfaceCreateSimilarImage(other *Surface, format Format, width int32, height int32) *Surface
- func SurfaceMapToImage(surface *Surface, extents *RectangleInt) *Surface
- func SurfaceReference(surface *Surface) *Surface
- type SurfaceObserverCallback
- type SurfaceObserverMode
- type SurfaceType
- type TextCluster
- type TextClusterFlags
- type TextExtents
- type UserDataKey
- type UserScaledFontInitFunc
- type UserScaledFontRenderGlyphFunc
- type UserScaledFontTextToGlyphsFunc
- type UserScaledFontUnicodeToGlyphFunc
- type WriteFunc
Constants ¶
const ( // HasMimeSurface as defined in cairo/<predefine>:24 HasMimeSurface = 1 // HasFcFont as defined in cairo/<predefine>:25 HasFcFont = 1 // HasGobjectFunctions as defined in cairo/<predefine>:26 HasGobjectFunctions = 1 // HasObserverSurface as defined in cairo/<predefine>:27 HasObserverSurface = 1 // HasRecordingSurface as defined in cairo/<predefine>:28 HasRecordingSurface = 1 // HasSvgSurface as defined in cairo/<predefine>:29 HasSvgSurface = 1 // HasUserFont as defined in cairo/<predefine>:30 HasUserFont = 1 // HasImageSurface as defined in cairo/<predefine>:31 HasImageSurface = 1 // HasPsSurface as defined in cairo/<predefine>:32 HasPsSurface = 1 // HasScriptSurface as defined in cairo/<predefine>:33 HasScriptSurface = 1 // HasFtFont as defined in cairo/<predefine>:34 HasFtFont = 1 // HasPdfSurface as defined in cairo/<predefine>:35 HasPdfSurface = 1 // HasPngFunctions as defined in cairo/<predefine>:36 HasPngFunctions = 1 // HasTeeSurface as defined in cairo/<predefine>:37 HasTeeSurface = 1 // Version as defined in include/cairo.h:68 Version = 11511 // TagDest as defined in include/cairo.h:1031 TagDest = "cairo.dest" // TagLink as defined in include/cairo.h:1032 TagLink = "Link" // MimeTypeJpeg as defined in include/cairo.h:2455 MimeTypeJpeg = "image/jpeg" // MimeTypePng as defined in include/cairo.h:2456 MimeTypePng = "image/png" // MimeTypeJp2 as defined in include/cairo.h:2457 MimeTypeJp2 = "image/jp2" // MimeTypeUri as defined in include/cairo.h:2458 MimeTypeUri = "text/x-uri" // MimeTypeUniqueId as defined in include/cairo.h:2459 MimeTypeUniqueId = "application/x-cairo.uuid" // MimeTypeJbig2 as defined in include/cairo.h:2460 MimeTypeJbig2 = "application/x-cairo.jbig2" // MimeTypeJbig2Global as defined in include/cairo.h:2461 MimeTypeJbig2Global = "application/x-cairo.jbig2-global" // MimeTypeJbig2GlobalId as defined in include/cairo.h:2462 MimeTypeJbig2GlobalId = "application/x-cairo.jbig2-global-id" // MimeTypeCcittFax as defined in include/cairo.h:2463 MimeTypeCcittFax = "image/g3fax" // MimeTypeCcittFaxParams as defined in include/cairo.h:2464 MimeTypeCcittFaxParams = "application/x-cairo.ccitt.params" // MimeTypeEps as defined in include/cairo.h:2465 MimeTypeEps = "application/postscript" // MimeTypeEpsParams as defined in include/cairo.h:2466 MimeTypeEpsParams = "application/x-cairo.eps.params" // VersionMajor as defined in include/cairo-version.h:4 VersionMajor = 1 // VersionMinor as defined in include/cairo-version.h:5 VersionMinor = 15 // VersionMicro as defined in include/cairo-version.h:6 VersionMicro = 11 // HasQuartzFont as defined in include/cairo-features.h:14 HasQuartzFont = 1 // HasQuartzSurface as defined in include/cairo-features.h:15 HasQuartzSurface = 1 // HasXlibSurface as defined in include/cairo-features.h:20 HasXlibSurface = 1 // HasXlibXrenderSurface as defined in include/cairo-features.h:21 HasXlibXrenderSurface = 1 )
Variables ¶
This section is empty.
Functions ¶
func AppendPath ¶
AppendPath function as declared in include/cairo.h:2113
func ArcNegative ¶
ArcNegative function as declared in include/cairo.h:876
func ClipExtents ¶
ClipExtents function as declared in include/cairo.h:987
func ClipPreserve ¶
func ClipPreserve(cr *Cairo)
ClipPreserve function as declared in include/cairo.h:984
func DebugResetStaticData ¶
func DebugResetStaticData()
DebugResetStaticData function as declared in include/cairo.h:3178
func DeviceDestroy ¶
func DeviceDestroy(device *Device)
DeviceDestroy function as declared in include/cairo.h:2195
func DeviceFinish ¶
func DeviceFinish(device *Device)
DeviceFinish function as declared in include/cairo.h:2192
func DeviceFlush ¶
func DeviceFlush(device *Device)
DeviceFlush function as declared in include/cairo.h:2189
func DeviceGetReferenceCount ¶
DeviceGetReferenceCount function as declared in include/cairo.h:2198
func DeviceGetUserData ¶
func DeviceGetUserData(device *Device, key *UserDataKey) unsafe.Pointer
DeviceGetUserData function as declared in include/cairo.h:2200
func DeviceObserverElapsed ¶
DeviceObserverElapsed function as declared in include/cairo.h:2310
func DeviceObserverFillElapsed ¶
DeviceObserverFillElapsed function as declared in include/cairo.h:2319
func DeviceObserverGlyphsElapsed ¶
DeviceObserverGlyphsElapsed function as declared in include/cairo.h:2325
func DeviceObserverMaskElapsed ¶
DeviceObserverMaskElapsed function as declared in include/cairo.h:2316
func DeviceObserverPaintElapsed ¶
DeviceObserverPaintElapsed function as declared in include/cairo.h:2313
func DeviceObserverStrokeElapsed ¶
DeviceObserverStrokeElapsed function as declared in include/cairo.h:2322
func DeviceRelease ¶
func DeviceRelease(device *Device)
DeviceRelease function as declared in include/cairo.h:2186
func DeviceToUser ¶
DeviceToUser function as declared in include/cairo.h:845
func DeviceToUserDistance ¶
DeviceToUserDistance function as declared in include/cairo.h:848
func FillExtents ¶
FillExtents function as declared in include/cairo.h:972
func FillPreserve ¶
func FillPreserve(cr *Cairo)
FillPreserve function as declared in include/cairo.h:947
func FontFaceDestroy ¶
func FontFaceDestroy(fontFace *FontFace)
FontFaceDestroy function as declared in include/cairo.h:1524
func FontFaceGetReferenceCount ¶
FontFaceGetReferenceCount function as declared in include/cairo.h:1527
func FontFaceGetUserData ¶
func FontFaceGetUserData(fontFace *FontFace, key *UserDataKey) unsafe.Pointer
FontFaceGetUserData function as declared in include/cairo.h:1583
func FontOptionsDestroy ¶
func FontOptionsDestroy(options *FontOptions)
FontOptionsDestroy function as declared in include/cairo.h:1394
func FontOptionsGetVariations ¶
func FontOptionsGetVariations(options *FontOptions) string
FontOptionsGetVariations function as declared in include/cairo.h:1433
func FontOptionsHash ¶
func FontOptionsHash(options *FontOptions) uint
FontOptionsHash function as declared in include/cairo.h:1407
func FontOptionsMerge ¶
func FontOptionsMerge(options *FontOptions, other *FontOptions)
FontOptionsMerge function as declared in include/cairo.h:1400
func FontOptionsSetAntialias ¶
func FontOptionsSetAntialias(options *FontOptions, antialias Antialias)
FontOptionsSetAntialias function as declared in include/cairo.h:1410
func FontOptionsSetHintMetrics ¶
func FontOptionsSetHintMetrics(options *FontOptions, hintMetrics HintMetrics)
FontOptionsSetHintMetrics function as declared in include/cairo.h:1428
func FontOptionsSetHintStyle ¶
func FontOptionsSetHintStyle(options *FontOptions, hintStyle HintStyle)
FontOptionsSetHintStyle function as declared in include/cairo.h:1422
func FontOptionsSetSubpixelOrder ¶
func FontOptionsSetSubpixelOrder(options *FontOptions, subpixelOrder SubpixelOrder)
FontOptionsSetSubpixelOrder function as declared in include/cairo.h:1416
func FontOptionsSetVariations ¶
func FontOptionsSetVariations(options *FontOptions, variations string)
FontOptionsSetVariations function as declared in include/cairo.h:1437
func FormatStrideForWidth ¶
FormatStrideForWidth function as declared in include/cairo.h:2550
func GetCurrentPoint ¶
GetCurrentPoint function as declared in include/cairo.h:1948
func GetDashCount ¶
GetDashCount function as declared in include/cairo.h:1966
func GetFontExtents ¶
func GetFontExtents(cr *Cairo, extents *FontExtents)
GetFontExtents function as declared in include/cairo.h:1515
func GetFontMatrix ¶
GetFontMatrix function as declared in include/cairo.h:1457
func GetFontOptions ¶
func GetFontOptions(cr *Cairo, options *FontOptions)
GetFontOptions function as declared in include/cairo.h:1465
func GetLineWidth ¶
GetLineWidth function as declared in include/cairo.h:1954
func GetMiterLimit ¶
GetMiterLimit function as declared in include/cairo.h:1963
func GetReferenceCount ¶
GetReferenceCount function as declared in include/cairo.h:500
func GetTextExtents ¶
func GetTextExtents(cr *Cairo, utf8 string, extents *TextExtents)
GetTextExtents function as declared in include/cairo.h:1504
func GetTolerance ¶
GetTolerance function as declared in include/cairo.h:1939
func GetUserData ¶
func GetUserData(cr *Cairo, key *UserDataKey) unsafe.Pointer
GetUserData function as declared in include/cairo.h:502
func GlyphExtents ¶
func GlyphExtents(cr *Cairo, glyphs *Glyph, numGlyphs int32, extents *TextExtents)
GlyphExtents function as declared in include/cairo.h:1509
func GlyphFree ¶
func GlyphFree(glyphs *Glyph)
GlyphFree function as declared in include/cairo.h:1118
func IdentityMatrix ¶
func IdentityMatrix(cr *Cairo)
IdentityMatrix function as declared in include/cairo.h:836
func ImageSurfaceGetData ¶
ImageSurfaceGetData function as declared in include/cairo.h:2560
func ImageSurfaceGetHeight ¶
ImageSurfaceGetHeight function as declared in include/cairo.h:2570
func ImageSurfaceGetStride ¶
ImageSurfaceGetStride function as declared in include/cairo.h:2573
func ImageSurfaceGetWidth ¶
ImageSurfaceGetWidth function as declared in include/cairo.h:2567
func MakeRectangle ¶
MakeRectangle function as declared in include/cairo.h:902
func MaskSurface ¶
MaskSurface function as declared in include/cairo.h:932
func MatrixInit ¶
func MatrixInit(matrix *Matrix, xx float64, yx float64, xy float64, yy float64, x0 float64, y0 float64)
MatrixInit function as declared in include/cairo.h:3019
func MatrixInitIdentity ¶
func MatrixInitIdentity(matrix *Matrix)
MatrixInitIdentity function as declared in include/cairo.h:3025
func MatrixInitRotate ¶
MatrixInitRotate function as declared in include/cairo.h:3036
func MatrixInitScale ¶
MatrixInitScale function as declared in include/cairo.h:3032
func MatrixInitTranslate ¶
MatrixInitTranslate function as declared in include/cairo.h:3028
func MatrixMultiply ¶
MatrixMultiply function as declared in include/cairo.h:3052
func MatrixRotate ¶
MatrixRotate function as declared in include/cairo.h:3046
func MatrixScale ¶
MatrixScale function as declared in include/cairo.h:3043
func MatrixTransformDistance ¶
MatrixTransformDistance function as declared in include/cairo.h:3057
func MatrixTransformPoint ¶
MatrixTransformPoint function as declared in include/cairo.h:3061
func MatrixTranslate ¶
MatrixTranslate function as declared in include/cairo.h:3040
func MeshPatternBeginPatch ¶
func MeshPatternBeginPatch(pattern *Pattern)
MeshPatternBeginPatch function as declared in include/cairo.h:2849
func MeshPatternCurveTo ¶
func MeshPatternCurveTo(pattern *Pattern, x1 float64, y1 float64, x2 float64, y2 float64, x3 float64, y3 float64)
MeshPatternCurveTo function as declared in include/cairo.h:2855
func MeshPatternEndPatch ¶
func MeshPatternEndPatch(pattern *Pattern)
MeshPatternEndPatch function as declared in include/cairo.h:2852
func MeshPatternLineTo ¶
MeshPatternLineTo function as declared in include/cairo.h:2861
func MeshPatternMoveTo ¶
MeshPatternMoveTo function as declared in include/cairo.h:2865
func MeshPatternSetControlPoint ¶
MeshPatternSetControlPoint function as declared in include/cairo.h:2869
func MeshPatternSetCornerColorRgb ¶
func MeshPatternSetCornerColorRgb(pattern *Pattern, cornerNum uint32, red float64, green float64, blue float64)
MeshPatternSetCornerColorRgb function as declared in include/cairo.h:2874
func MeshPatternSetCornerColorRgba ¶
func MeshPatternSetCornerColorRgba(pattern *Pattern, cornerNum uint32, red float64, green float64, blue float64, alpha float64)
MeshPatternSetCornerColorRgba function as declared in include/cairo.h:2879
func PaintWithAlpha ¶
PaintWithAlpha function as declared in include/cairo.h:924
func PathDestroy ¶
func PathDestroy(path *Path)
PathDestroy function as declared in include/cairo.h:2117
func PathExtents ¶
PathExtents function as declared in include/cairo.h:915
func PatternAddColorStopRgb ¶
func PatternAddColorStopRgb(pattern *Pattern, offset float64, red float64, green float64, blue float64)
PatternAddColorStopRgb function as declared in include/cairo.h:2838
func PatternAddColorStopRgba ¶
func PatternAddColorStopRgba(pattern *Pattern, offset float64, red float64, green float64, blue float64, alpha float64)
PatternAddColorStopRgba function as declared in include/cairo.h:2843
func PatternDestroy ¶
func PatternDestroy(pattern *Pattern)
PatternDestroy function as declared in include/cairo.h:2775
func PatternGetMatrix ¶
PatternGetMatrix function as declared in include/cairo.h:2889
func PatternGetReferenceCount ¶
PatternGetReferenceCount function as declared in include/cairo.h:2778
func PatternGetUserData ¶
func PatternGetUserData(pattern *Pattern, key *UserDataKey) unsafe.Pointer
PatternGetUserData function as declared in include/cairo.h:2783
func PatternSetExtend ¶
PatternSetExtend function as declared in include/cairo.h:2925
func PatternSetFilter ¶
PatternSetFilter function as declared in include/cairo.h:2960
func PatternSetMatrix ¶
PatternSetMatrix function as declared in include/cairo.h:2885
func PopGroupToSource ¶
func PopGroupToSource(cr *Cairo)
PopGroupToSource function as declared in include/cairo.h:528
func PushGroupWithContent ¶
PushGroupWithContent function as declared in include/cairo.h:522
func RasterSourcePatternGetAcquire ¶
func RasterSourcePatternGetAcquire(pattern *Pattern, acquire RasterSourceAcquireFunc, release RasterSourceReleaseFunc)
RasterSourcePatternGetAcquire function as declared in include/cairo.h:2724
func RasterSourcePatternGetCallbackData ¶
RasterSourcePatternGetCallbackData function as declared in include/cairo.h:2715
func RasterSourcePatternSetAcquire ¶
func RasterSourcePatternSetAcquire(pattern *Pattern, acquire RasterSourceAcquireFunc, release RasterSourceReleaseFunc)
RasterSourcePatternSetAcquire function as declared in include/cairo.h:2719
func RasterSourcePatternSetCallbackData ¶
RasterSourcePatternSetCallbackData function as declared in include/cairo.h:2712
func RasterSourcePatternSetCopy ¶
func RasterSourcePatternSetCopy(pattern *Pattern, copy RasterSourceCopyFunc)
RasterSourcePatternSetCopy function as declared in include/cairo.h:2735
func RasterSourcePatternSetFinish ¶
func RasterSourcePatternSetFinish(pattern *Pattern, finish RasterSourceFinishFunc)
RasterSourcePatternSetFinish function as declared in include/cairo.h:2742
func RasterSourcePatternSetSnapshot ¶
func RasterSourcePatternSetSnapshot(pattern *Pattern, snapshot RasterSourceSnapshotFunc)
RasterSourcePatternSetSnapshot function as declared in include/cairo.h:2728
func RecordingSurfaceInkExtents ¶
func RecordingSurfaceInkExtents(surface *Surface, x0 *float64, y0 *float64, width *float64, height *float64)
RecordingSurfaceInkExtents function as declared in include/cairo.h:2593
func RectangleListDestroy ¶
func RectangleListDestroy(rectangleList *RectangleList)
RectangleListDestroy function as declared in include/cairo.h:1027
func RegionDestroy ¶
func RegionDestroy(region *Region)
RegionDestroy function as declared in include/cairo.h:3115
func RegionGetExtents ¶
func RegionGetExtents(region *Region, extents *RectangleInt)
RegionGetExtents function as declared in include/cairo.h:3124
func RegionGetRectangle ¶
func RegionGetRectangle(region *Region, nth int32, rectangle *RectangleInt)
RegionGetRectangle function as declared in include/cairo.h:3131
func RegionNumRectangles ¶
RegionNumRectangles function as declared in include/cairo.h:3128
func RegionTranslate ¶
RegionTranslate function as declared in include/cairo.h:3146
func RelCurveTo ¶
func RelCurveTo(cr *Cairo, dx1 float64, dy1 float64, dx2 float64, dy2 float64, dx3 float64, dy3 float64)
RelCurveTo function as declared in include/cairo.h:896
func ScaledFontDestroy ¶
func ScaledFontDestroy(scaledFont *ScaledFont)
ScaledFontDestroy function as declared in include/cairo.h:1605
func ScaledFontExtents ¶
func ScaledFontExtents(scaledFont *ScaledFont, extents *FontExtents)
ScaledFontExtents function as declared in include/cairo.h:1627
func ScaledFontGetCtm ¶
func ScaledFontGetCtm(scaledFont *ScaledFont, ctm *Matrix)
ScaledFontGetCtm function as declared in include/cairo.h:1661
func ScaledFontGetFontMatrix ¶
func ScaledFontGetFontMatrix(scaledFont *ScaledFont, fontMatrix *Matrix)
ScaledFontGetFontMatrix function as declared in include/cairo.h:1657
func ScaledFontGetFontOptions ¶
func ScaledFontGetFontOptions(scaledFont *ScaledFont, options *FontOptions)
ScaledFontGetFontOptions function as declared in include/cairo.h:1669
func ScaledFontGetReferenceCount ¶
func ScaledFontGetReferenceCount(scaledFont *ScaledFont) uint32
ScaledFontGetReferenceCount function as declared in include/cairo.h:1608
func ScaledFontGetScaleMatrix ¶
func ScaledFontGetScaleMatrix(scaledFont *ScaledFont, scaleMatrix *Matrix)
ScaledFontGetScaleMatrix function as declared in include/cairo.h:1665
func ScaledFontGetUserData ¶
func ScaledFontGetUserData(scaledFont *ScaledFont, key *UserDataKey) unsafe.Pointer
ScaledFontGetUserData function as declared in include/cairo.h:1616
func ScaledFontGlyphExtents ¶
func ScaledFontGlyphExtents(scaledFont *ScaledFont, glyphs *Glyph, numGlyphs int32, extents *TextExtents)
ScaledFontGlyphExtents function as declared in include/cairo.h:1636
func ScaledFontTextExtents ¶
func ScaledFontTextExtents(scaledFont *ScaledFont, utf8 string, extents *TextExtents)
ScaledFontTextExtents function as declared in include/cairo.h:1631
func SelectFontFace ¶
func SelectFontFace(cr *Cairo, family string, slant FontSlant, weight FontWeight)
SelectFontFace function as declared in include/cairo.h:1444
func SetAntialias ¶
SetAntialias function as declared in include/cairo.h:724
func SetFillRule ¶
SetFillRule function as declared in include/cairo.h:759
func SetFontFace ¶
SetFontFace function as declared in include/cairo.h:1469
func SetFontMatrix ¶
SetFontMatrix function as declared in include/cairo.h:1453
func SetFontOptions ¶
func SetFontOptions(cr *Cairo, options *FontOptions)
SetFontOptions function as declared in include/cairo.h:1461
func SetFontSize ¶
SetFontSize function as declared in include/cairo.h:1450
func SetLineCap ¶
SetLineCap function as declared in include/cairo.h:783
func SetLineJoin ¶
SetLineJoin function as declared in include/cairo.h:807
func SetLineWidth ¶
SetLineWidth function as declared in include/cairo.h:762
func SetMiterLimit ¶
SetMiterLimit function as declared in include/cairo.h:816
func SetOperator ¶
SetOperator function as declared in include/cairo.h:650
func SetScaledFont ¶
func SetScaledFont(cr *Cairo, scaledFont *ScaledFont)
SetScaledFont function as declared in include/cairo.h:1475
func SetSourceRgb ¶
SetSourceRgb function as declared in include/cairo.h:656
func SetSourceRgba ¶
SetSourceRgba function as declared in include/cairo.h:659
func SetSourceSurface ¶
SetSourceSurface function as declared in include/cairo.h:664
func SetTolerance ¶
SetTolerance function as declared in include/cairo.h:670
func ShowGlyphs ¶
ShowGlyphs function as declared in include/cairo.h:1485
func ShowTextGlyphs ¶
func ShowTextGlyphs(cr *Cairo, utf8 string, utf8Len int32, glyphs *Glyph, numGlyphs int32, clusters *TextCluster, numClusters int32, clusterFlags TextClusterFlags)
ShowTextGlyphs function as declared in include/cairo.h:1488
func StatusToString ¶
StatusToString function as declared in include/cairo.h:2124
func StrokeExtents ¶
StrokeExtents function as declared in include/cairo.h:967
func StrokePreserve ¶
func StrokePreserve(cr *Cairo)
StrokePreserve function as declared in include/cairo.h:941
func SurfaceCopyPage ¶
func SurfaceCopyPage(surface *Surface)
SurfaceCopyPage function as declared in include/cairo.h:2534
func SurfaceDestroy ¶
func SurfaceDestroy(surface *Surface)
SurfaceDestroy function as declared in include/cairo.h:2334
func SurfaceFinish ¶
func SurfaceFinish(surface *Surface)
SurfaceFinish function as declared in include/cairo.h:2331
func SurfaceFlush ¶
func SurfaceFlush(surface *Surface)
SurfaceFlush function as declared in include/cairo.h:2491
func SurfaceGetDeviceOffset ¶
SurfaceGetDeviceOffset function as declared in include/cairo.h:2519
func SurfaceGetDeviceScale ¶
SurfaceGetDeviceScale function as declared in include/cairo.h:2509
func SurfaceGetFallbackResolution ¶
func SurfaceGetFallbackResolution(surface *Surface, xPixelsPerInch *float64, yPixelsPerInch *float64)
SurfaceGetFallbackResolution function as declared in include/cairo.h:2529
func SurfaceGetFontOptions ¶
func SurfaceGetFontOptions(surface *Surface, options *FontOptions)
SurfaceGetFontOptions function as declared in include/cairo.h:2487
func SurfaceGetReferenceCount ¶
SurfaceGetReferenceCount function as declared in include/cairo.h:2340
func SurfaceGetUserData ¶
func SurfaceGetUserData(surface *Surface, key *UserDataKey) unsafe.Pointer
SurfaceGetUserData function as declared in include/cairo.h:2445
func SurfaceMarkDirty ¶
func SurfaceMarkDirty(surface *Surface)
SurfaceMarkDirty function as declared in include/cairo.h:2494
func SurfaceMarkDirtyRectangle ¶
SurfaceMarkDirtyRectangle function as declared in include/cairo.h:2497
func SurfaceObserverElapsed ¶
SurfaceObserverElapsed function as declared in include/cairo.h:2302
func SurfaceSetDeviceOffset ¶
SurfaceSetDeviceOffset function as declared in include/cairo.h:2514
func SurfaceSetDeviceScale ¶
SurfaceSetDeviceScale function as declared in include/cairo.h:2504
func SurfaceSetFallbackResolution ¶
SurfaceSetFallbackResolution function as declared in include/cairo.h:2524
func SurfaceShowPage ¶
func SurfaceShowPage(surface *Surface)
SurfaceShowPage function as declared in include/cairo.h:2537
func SurfaceUnmapImage ¶
SurfaceUnmapImage function as declared in include/cairo.h:2230
func TextClusterFree ¶
func TextClusterFree(clusters *TextCluster)
TextClusterFree function as declared in include/cairo.h:1149
func ToyFontFaceGetFamily ¶
ToyFontFaceGetFamily function as declared in include/cairo.h:1680
func UserFontFaceSetInitFunc ¶
func UserFontFaceSetInitFunc(fontFace *FontFace, initFunc UserScaledFontInitFunc)
UserFontFaceSetInitFunc function as declared in include/cairo.h:1900
func UserFontFaceSetRenderGlyphFunc ¶
func UserFontFaceSetRenderGlyphFunc(fontFace *FontFace, renderGlyphFunc UserScaledFontRenderGlyphFunc)
UserFontFaceSetRenderGlyphFunc function as declared in include/cairo.h:1904
func UserFontFaceSetTextToGlyphsFunc ¶
func UserFontFaceSetTextToGlyphsFunc(fontFace *FontFace, textToGlyphsFunc UserScaledFontTextToGlyphsFunc)
UserFontFaceSetTextToGlyphsFunc function as declared in include/cairo.h:1908
func UserFontFaceSetUnicodeToGlyphFunc ¶
func UserFontFaceSetUnicodeToGlyphFunc(fontFace *FontFace, unicodeToGlyphFunc UserScaledFontUnicodeToGlyphFunc)
UserFontFaceSetUnicodeToGlyphFunc function as declared in include/cairo.h:1912
func UserToDevice ¶
UserToDevice function as declared in include/cairo.h:839
func UserToDeviceDistance ¶
UserToDeviceDistance function as declared in include/cairo.h:842
func VersionString ¶
func VersionString() string
VersionString function as declared in include/cairo.h:88
Types ¶
type Antialias ¶
type Antialias int32
Antialias as declared in include/cairo.h:721
const ( AntialiasDefault Antialias = iota AntialiasNone Antialias = 1 AntialiasGray Antialias = 2 AntialiasSubpixel Antialias = 3 AntialiasFast Antialias = 4 AntialiasGood Antialias = 5 AntialiasBest Antialias = 6 )
Antialias enumeration from include/cairo.h:721
func FontOptionsGetAntialias ¶
func FontOptionsGetAntialias(options *FontOptions) Antialias
FontOptionsGetAntialias function as declared in include/cairo.h:1413
func GetAntialias ¶
GetAntialias function as declared in include/cairo.h:1942
type Bool ¶
type Bool int32
Bool type as declared in include/cairo.h:107
func FontOptionsEqual ¶
func FontOptionsEqual(options *FontOptions, other *FontOptions) Bool
FontOptionsEqual function as declared in include/cairo.h:1403
func HasCurrentPoint ¶
HasCurrentPoint function as declared in include/cairo.h:1945
func RecordingSurfaceGetExtents ¶
RecordingSurfaceGetExtents function as declared in include/cairo.h:2600
func RegionContainsPoint ¶
RegionContainsPoint function as declared in include/cairo.h:3143
func RegionEqual ¶
RegionEqual function as declared in include/cairo.h:3118
func RegionIsEmpty ¶
RegionIsEmpty function as declared in include/cairo.h:3136
func SurfaceHasShowTextGlyphs ¶
SurfaceHasShowTextGlyphs function as declared in include/cairo.h:2540
func SurfaceSupportsMimeType ¶
SurfaceSupportsMimeType function as declared in include/cairo.h:2483
type Cairo ¶
Cairo as declared in include/cairo.h:124
func NewCairo ¶
func NewCairo() *Cairo
NewCairo allocates a new C object of this type and converts the reference into a raw struct reference without wrapping.
func NewCairoRef ¶
NewCairoRef converts the C object reference into a raw struct reference without wrapping.
type Content ¶
type Content int32
Content as declared in include/cairo.h:383
Content enumeration from include/cairo.h:383
func SurfaceGetContent ¶
SurfaceGetContent function as declared in include/cairo.h:2430
type DestroyFunc ¶
DestroyFunc type as declared in include/cairo.h:232
func NewDestroyFuncRef ¶
func NewDestroyFuncRef(ref unsafe.Pointer) *DestroyFunc
func (DestroyFunc) PassRef ¶
func (x DestroyFunc) PassRef() (ref *C.cairo_destroy_func_t, allocs *cgoAllocMap)
func (DestroyFunc) PassValue ¶
func (x DestroyFunc) PassValue() (ref C.cairo_destroy_func_t, allocs *cgoAllocMap)
type Device ¶
type Device C.cairo_device_t
Device as declared in include/cairo.h:171
func DeviceReference ¶
DeviceReference function as declared in include/cairo.h:2129
func NewDevice ¶
func NewDevice() *Device
NewDevice allocates a new C object of this type and converts the reference into a raw struct reference without wrapping.
func NewDeviceRef ¶
NewDeviceRef converts the C object reference into a raw struct reference without wrapping.
func SurfaceGetDevice ¶
SurfaceGetDevice function as declared in include/cairo.h:2336
func (*Device) PassRef ¶
func (x *Device) PassRef() *C.cairo_device_t
PassRef returns a reference to C object as it is or allocates a new C object of this type.
func (*Device) Ref ¶
func (x *Device) Ref() *C.cairo_device_t
Ref returns a reference to C object as it is.
type DeviceType ¶
type DeviceType int32
DeviceType as declared in include/cairo.h:2174
const ( DeviceTypeDrm DeviceType = iota DeviceTypeGl DeviceType = 1 DeviceTypeScript DeviceType = 2 DeviceTypeXcb DeviceType = 3 DeviceTypeXlib DeviceType = 4 DeviceTypeXml DeviceType = 5 DeviceTypeCogl DeviceType = 6 DeviceTypeWin32 DeviceType = 7 DeviceTypeInvalid DeviceType = -1 )
DeviceType enumeration from include/cairo.h:2174
func DeviceGetType ¶
func DeviceGetType(device *Device) DeviceType
DeviceGetType function as declared in include/cairo.h:2177
type Extend ¶
type Extend int32
Extend as declared in include/cairo.h:2922
const ( ExtendNone Extend = iota ExtendRepeat Extend = 1 ExtendReflect Extend = 2 ExtendPad Extend = 3 )
Extend enumeration from include/cairo.h:2922
func PatternGetExtend ¶
PatternGetExtend function as declared in include/cairo.h:2928
type FillRule ¶
type FillRule int32
FillRule as declared in include/cairo.h:756
FillRule enumeration from include/cairo.h:756
func GetFillRule ¶
GetFillRule function as declared in include/cairo.h:1951
type Filter ¶
type Filter int32
Filter as declared in include/cairo.h:2957
const ( FilterFast Filter = iota FilterGood Filter = 1 FilterBest Filter = 2 FilterNearest Filter = 3 FilterBilinear Filter = 4 FilterGaussian Filter = 5 )
Filter enumeration from include/cairo.h:2957
func PatternGetFilter ¶
PatternGetFilter function as declared in include/cairo.h:2963
type FontExtents ¶
type FontExtents struct { Ascent float64 Descent float64 Height float64 MaxXAdvance float64 MaxYAdvance float64 // contains filtered or unexported fields }
FontExtents as declared in include/cairo.h:1251
func NewFontExtentsRef ¶
func NewFontExtentsRef(ref unsafe.Pointer) *FontExtents
NewFontExtentsRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FontExtents) Deref ¶
func (x *FontExtents) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FontExtents) Free ¶
func (x *FontExtents) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FontExtents) PassRef ¶
func (x *FontExtents) PassRef() (*C.cairo_font_extents_t, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FontExtents) PassValue ¶
func (x FontExtents) PassValue() (C.cairo_font_extents_t, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FontExtents) Ref ¶
func (x *FontExtents) Ref() *C.cairo_font_extents_t
Ref returns the underlying reference to C object or nil if struct is nil.
type FontFace ¶
type FontFace C.cairo_font_face_t
FontFace as declared in include/cairo.h:1080
func FontFaceReference ¶
FontFaceReference function as declared in include/cairo.h:1520
func GetFontFace ¶
GetFontFace function as declared in include/cairo.h:1471
func NewFontFace ¶
func NewFontFace() *FontFace
NewFontFace allocates a new C object of this type and converts the reference into a raw struct reference without wrapping.
func NewFontFaceRef ¶
NewFontFaceRef converts the C object reference into a raw struct reference without wrapping.
func ScaledFontGetFontFace ¶
func ScaledFontGetFontFace(scaledFont *ScaledFont) *FontFace
ScaledFontGetFontFace function as declared in include/cairo.h:1653
func ToyFontFaceCreate ¶
func ToyFontFaceCreate(family string, slant FontSlant, weight FontWeight) *FontFace
ToyFontFaceCreate function as declared in include/cairo.h:1675
func UserFontFaceCreate ¶
func UserFontFaceCreate() *FontFace
UserFontFaceCreate function as declared in include/cairo.h:1692
func (*FontFace) PassRef ¶
func (x *FontFace) PassRef() *C.cairo_font_face_t
PassRef returns a reference to C object as it is or allocates a new C object of this type.
func (*FontFace) Ref ¶
func (x *FontFace) Ref() *C.cairo_font_face_t
Ref returns a reference to C object as it is.
type FontOptions ¶
type FontOptions C.cairo_font_options_t
FontOptions as declared in include/cairo.h:1385
func FontOptionsCopy ¶
func FontOptionsCopy(original *FontOptions) *FontOptions
FontOptionsCopy function as declared in include/cairo.h:1390
func FontOptionsCreate ¶
func FontOptionsCreate() *FontOptions
FontOptionsCreate function as declared in include/cairo.h:1387
func NewFontOptions ¶
func NewFontOptions() *FontOptions
NewFontOptions allocates a new C object of this type and converts the reference into a raw struct reference without wrapping.
func NewFontOptionsRef ¶
func NewFontOptionsRef(ref unsafe.Pointer) *FontOptions
NewFontOptionsRef converts the C object reference into a raw struct reference without wrapping.
func (*FontOptions) Free ¶
func (x *FontOptions) Free()
Free cleanups the referenced memory using C free.
func (*FontOptions) PassRef ¶
func (x *FontOptions) PassRef() *C.cairo_font_options_t
PassRef returns a reference to C object as it is or allocates a new C object of this type.
func (*FontOptions) Ref ¶
func (x *FontOptions) Ref() *C.cairo_font_options_t
Ref returns a reference to C object as it is.
type FontSlant ¶
type FontSlant int32
FontSlant as declared in include/cairo.h:1267
const ( FontSlantNormal FontSlant = iota FontSlantItalic FontSlant = 1 FontSlantOblique FontSlant = 2 )
FontSlant enumeration from include/cairo.h:1267
func ToyFontFaceGetSlant ¶
ToyFontFaceGetSlant function as declared in include/cairo.h:1684
type FontType ¶
type FontType int32
FontType as declared in include/cairo.h:1578
const ( FontTypeToy FontType = iota FontTypeFt FontType = 1 FontTypeWin32 FontType = 2 FontTypeQuartz FontType = 3 FontTypeUser FontType = 4 )
FontType enumeration from include/cairo.h:1578
func FontFaceGetType ¶
FontFaceGetType function as declared in include/cairo.h:1581
func ScaledFontGetType ¶
func ScaledFontGetType(scaledFont *ScaledFont) FontType
ScaledFontGetType function as declared in include/cairo.h:1614
type FontWeight ¶
type FontWeight int32
FontWeight as declared in include/cairo.h:1281
const ( FontWeightNormal FontWeight = iota FontWeightBold FontWeight = 1 )
FontWeight enumeration from include/cairo.h:1281
func ToyFontFaceGetWeight ¶
func ToyFontFaceGetWeight(fontFace *FontFace) FontWeight
ToyFontFaceGetWeight function as declared in include/cairo.h:1687
type Format ¶
type Format int32
Format as declared in include/cairo.h:424
const ( FormatInvalid Format = -1 FormatArgb32 Format = 0 FormatRgb24 Format = 1 FormatA8 Format = 2 FormatA1 Format = 3 FormatRgb16565 Format = 4 FormatRgb30 Format = 5 )
Format enumeration from include/cairo.h:424
func ImageSurfaceGetFormat ¶
ImageSurfaceGetFormat function as declared in include/cairo.h:2564
type Glyph ¶
Glyph as declared in include/cairo.h:1112
func GlyphAllocate ¶
GlyphAllocate function as declared in include/cairo.h:1114
func NewGlyphRef ¶
NewGlyphRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*Glyph) Deref ¶
func (x *Glyph) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*Glyph) Free ¶
func (x *Glyph) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*Glyph) PassRef ¶
func (x *Glyph) PassRef() (*C.cairo_glyph_t, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (Glyph) PassValue ¶
func (x Glyph) PassValue() (C.cairo_glyph_t, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*Glyph) Ref ¶
func (x *Glyph) Ref() *C.cairo_glyph_t
Ref returns the underlying reference to C object or nil if struct is nil.
type HintMetrics ¶
type HintMetrics int32
HintMetrics as declared in include/cairo.h:1361
const ( HintMetricsDefault HintMetrics = iota HintMetricsOff HintMetrics = 1 HintMetricsOn HintMetrics = 2 )
HintMetrics enumeration from include/cairo.h:1361
func FontOptionsGetHintMetrics ¶
func FontOptionsGetHintMetrics(options *FontOptions) HintMetrics
FontOptionsGetHintMetrics function as declared in include/cairo.h:1431
type HintStyle ¶
type HintStyle int32
HintStyle as declared in include/cairo.h:1340
const ( HintStyleDefault HintStyle = iota HintStyleNone HintStyle = 1 HintStyleSlight HintStyle = 2 HintStyleMedium HintStyle = 3 HintStyleFull HintStyle = 4 )
HintStyle enumeration from include/cairo.h:1340
func FontOptionsGetHintStyle ¶
func FontOptionsGetHintStyle(options *FontOptions) HintStyle
FontOptionsGetHintStyle function as declared in include/cairo.h:1425
type LineCap ¶
type LineCap int32
LineCap as declared in include/cairo.h:780
LineCap enumeration from include/cairo.h:780
func GetLineCap ¶
GetLineCap function as declared in include/cairo.h:1957
type LineJoin ¶
type LineJoin int32
LineJoin as declared in include/cairo.h:804
LineJoin enumeration from include/cairo.h:804
func GetLineJoin ¶
GetLineJoin function as declared in include/cairo.h:1960
type Matrix ¶
type Matrix struct { Xx float64 Yx float64 Xy float64 Yy float64 X0 float64 Y0 float64 // contains filtered or unexported fields }
Matrix as declared in include/cairo.h:196
func NewMatrixRef ¶
NewMatrixRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*Matrix) Deref ¶
func (x *Matrix) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*Matrix) Free ¶
func (x *Matrix) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*Matrix) PassRef ¶
func (x *Matrix) PassRef() (*C.cairo_matrix_t, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (Matrix) PassValue ¶
func (x Matrix) PassValue() (C.cairo_matrix_t, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*Matrix) Ref ¶
func (x *Matrix) Ref() *C.cairo_matrix_t
Ref returns the underlying reference to C object or nil if struct is nil.
type Operator ¶
type Operator int32
Operator as declared in include/cairo.h:647
const ( OperatorClear Operator = iota OperatorSource Operator = 1 OperatorOver Operator = 2 OperatorIn Operator = 3 OperatorOut Operator = 4 OperatorAtop Operator = 5 OperatorDest Operator = 6 OperatorDestOver Operator = 7 OperatorDestIn Operator = 8 OperatorDestOut Operator = 9 OperatorDestAtop Operator = 10 OperatorXor Operator = 11 OperatorAdd Operator = 12 OperatorSaturate Operator = 13 OperatorMultiply Operator = 14 OperatorScreen Operator = 15 OperatorOverlay Operator = 16 OperatorDarken Operator = 17 OperatorLighten Operator = 18 OperatorColorDodge Operator = 19 OperatorColorBurn Operator = 20 OperatorHardLight Operator = 21 OperatorSoftLight Operator = 22 OperatorDifference Operator = 23 OperatorExclusion Operator = 24 OperatorHslHue Operator = 25 OperatorHslSaturation Operator = 26 OperatorHslColor Operator = 27 OperatorHslLuminosity Operator = 28 )
Operator enumeration from include/cairo.h:647
func GetOperator ¶
GetOperator function as declared in include/cairo.h:1933
type Path ¶
type Path struct { Status Status Data []PathData NumData int32 // contains filtered or unexported fields }
Path as declared in include/cairo.h:2104
func CopyPathFlat ¶
CopyPathFlat function as declared in include/cairo.h:2109
func MeshPatternGetPath ¶
MeshPatternGetPath function as declared in include/cairo.h:2999
func NewPathRef ¶
NewPathRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*Path) Deref ¶
func (x *Path) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*Path) Free ¶
func (x *Path) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*Path) PassRef ¶
func (x *Path) PassRef() (*C.cairo_path_t, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (Path) PassValue ¶
func (x Path) PassValue() (C.cairo_path_t, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*Path) Ref ¶
func (x *Path) Ref() *C.cairo_path_t
Ref returns the underlying reference to C object or nil if struct is nil.
type PathDataType ¶
type PathDataType int32
PathDataType as declared in include/cairo.h:1998
const ( PathMoveTo PathDataType = iota PathLineTo PathDataType = 1 PathCurveTo PathDataType = 2 PathClosePath PathDataType = 3 )
PathDataType enumeration from include/cairo.h:1998
type Pattern ¶
type Pattern C.cairo_pattern_t
Pattern as declared in include/cairo.h:220
func NewPattern ¶
func NewPattern() *Pattern
NewPattern allocates a new C object of this type and converts the reference into a raw struct reference without wrapping.
func NewPatternRef ¶
NewPatternRef converts the C object reference into a raw struct reference without wrapping.
func PatternCreateForSurface ¶
PatternCreateForSurface function as declared in include/cairo.h:2757
func PatternCreateLinear ¶
PatternCreateLinear function as declared in include/cairo.h:2760
func PatternCreateMesh ¶
func PatternCreateMesh() *Pattern
PatternCreateMesh function as declared in include/cairo.h:2768
func PatternCreateRadial ¶
func PatternCreateRadial(cx0 float64, cy0 float64, radius0 float64, cx1 float64, cy1 float64, radius1 float64) *Pattern
PatternCreateRadial function as declared in include/cairo.h:2764
func PatternCreateRasterSource ¶
func PatternCreateRasterSource(userData unsafe.Pointer, content Content, width int32, height int32) *Pattern
PatternCreateRasterSource function as declared in include/cairo.h:2706
func PatternCreateRgb ¶
PatternCreateRgb function as declared in include/cairo.h:2750
func PatternCreateRgba ¶
PatternCreateRgba function as declared in include/cairo.h:2753
func PatternReference ¶
PatternReference function as declared in include/cairo.h:2771
func (*Pattern) PassRef ¶
func (x *Pattern) PassRef() *C.cairo_pattern_t
PassRef returns a reference to C object as it is or allocates a new C object of this type.
func (*Pattern) Ref ¶
func (x *Pattern) Ref() *C.cairo_pattern_t
Ref returns a reference to C object as it is.
type PatternType ¶
type PatternType int32
PatternType as declared in include/cairo.h:2832
const ( PatternTypeSolid PatternType = iota PatternTypeSurface PatternType = 1 PatternTypeLinear PatternType = 2 PatternTypeRadial PatternType = 3 PatternTypeMesh PatternType = 4 PatternTypeRasterSource PatternType = 5 )
PatternType enumeration from include/cairo.h:2832
func PatternGetType ¶
func PatternGetType(pattern *Pattern) PatternType
PatternGetType function as declared in include/cairo.h:2835
type RasterSourceAcquireFunc ¶
type RasterSourceAcquireFunc func(pattern *Pattern, callbackData unsafe.Pointer, target *Surface, extents *RectangleInt) *Surface
RasterSourceAcquireFunc type as declared in include/cairo.h:2629
func NewRasterSourceAcquireFuncRef ¶
func NewRasterSourceAcquireFuncRef(ref unsafe.Pointer) *RasterSourceAcquireFunc
func (RasterSourceAcquireFunc) PassRef ¶
func (x RasterSourceAcquireFunc) PassRef() (ref *C.cairo_raster_source_acquire_func_t, allocs *cgoAllocMap)
func (RasterSourceAcquireFunc) PassValue ¶
func (x RasterSourceAcquireFunc) PassValue() (ref C.cairo_raster_source_acquire_func_t, allocs *cgoAllocMap)
type RasterSourceCopyFunc ¶
type RasterSourceCopyFunc func(pattern *Pattern, callbackData unsafe.Pointer, other *Pattern) Status
RasterSourceCopyFunc type as declared in include/cairo.h:2688
func NewRasterSourceCopyFuncRef ¶
func NewRasterSourceCopyFuncRef(ref unsafe.Pointer) *RasterSourceCopyFunc
func RasterSourcePatternGetCopy ¶
func RasterSourcePatternGetCopy(pattern *Pattern) RasterSourceCopyFunc
RasterSourcePatternGetCopy function as declared in include/cairo.h:2739
func (RasterSourceCopyFunc) PassRef ¶
func (x RasterSourceCopyFunc) PassRef() (ref *C.cairo_raster_source_copy_func_t, allocs *cgoAllocMap)
func (RasterSourceCopyFunc) PassValue ¶
func (x RasterSourceCopyFunc) PassValue() (ref C.cairo_raster_source_copy_func_t, allocs *cgoAllocMap)
type RasterSourceFinishFunc ¶
RasterSourceFinishFunc type as declared in include/cairo.h:2703
func NewRasterSourceFinishFuncRef ¶
func NewRasterSourceFinishFuncRef(ref unsafe.Pointer) *RasterSourceFinishFunc
func RasterSourcePatternGetFinish ¶
func RasterSourcePatternGetFinish(pattern *Pattern) RasterSourceFinishFunc
RasterSourcePatternGetFinish function as declared in include/cairo.h:2746
func (RasterSourceFinishFunc) PassRef ¶
func (x RasterSourceFinishFunc) PassRef() (ref *C.cairo_raster_source_finish_func_t, allocs *cgoAllocMap)
func (RasterSourceFinishFunc) PassValue ¶
func (x RasterSourceFinishFunc) PassValue() (ref C.cairo_raster_source_finish_func_t, allocs *cgoAllocMap)
type RasterSourceReleaseFunc ¶
RasterSourceReleaseFunc type as declared in include/cairo.h:2649
func NewRasterSourceReleaseFuncRef ¶
func NewRasterSourceReleaseFuncRef(ref unsafe.Pointer) *RasterSourceReleaseFunc
func (RasterSourceReleaseFunc) PassRef ¶
func (x RasterSourceReleaseFunc) PassRef() (ref *C.cairo_raster_source_release_func_t, allocs *cgoAllocMap)
func (RasterSourceReleaseFunc) PassValue ¶
func (x RasterSourceReleaseFunc) PassValue() (ref C.cairo_raster_source_release_func_t, allocs *cgoAllocMap)
type RasterSourceSnapshotFunc ¶
RasterSourceSnapshotFunc type as declared in include/cairo.h:2670
func NewRasterSourceSnapshotFuncRef ¶
func NewRasterSourceSnapshotFuncRef(ref unsafe.Pointer) *RasterSourceSnapshotFunc
func RasterSourcePatternGetSnapshot ¶
func RasterSourcePatternGetSnapshot(pattern *Pattern) RasterSourceSnapshotFunc
RasterSourcePatternGetSnapshot function as declared in include/cairo.h:2732
func (RasterSourceSnapshotFunc) PassRef ¶
func (x RasterSourceSnapshotFunc) PassRef() (ref *C.cairo_raster_source_snapshot_func_t, allocs *cgoAllocMap)
func (RasterSourceSnapshotFunc) PassValue ¶
func (x RasterSourceSnapshotFunc) PassValue() (ref C.cairo_raster_source_snapshot_func_t, allocs *cgoAllocMap)
type ReadFunc ¶
ReadFunc type as declared in include/cairo.h:467
func NewReadFuncRef ¶
func (ReadFunc) PassRef ¶
func (x ReadFunc) PassRef() (ref *C.cairo_read_func_t, allocs *cgoAllocMap)
func (ReadFunc) PassValue ¶
func (x ReadFunc) PassValue() (ref C.cairo_read_func_t, allocs *cgoAllocMap)
type Rectangle ¶
type Rectangle struct { X float64 Y float64 Width float64 Height float64 // contains filtered or unexported fields }
Rectangle as declared in include/cairo.h:1004
func NewRectangleRef ¶
NewRectangleRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*Rectangle) Deref ¶
func (x *Rectangle) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*Rectangle) Free ¶
func (x *Rectangle) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*Rectangle) PassRef ¶
func (x *Rectangle) PassRef() (*C.cairo_rectangle_t, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (Rectangle) PassValue ¶
func (x Rectangle) PassValue() (C.cairo_rectangle_t, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*Rectangle) Ref ¶
func (x *Rectangle) Ref() *C.cairo_rectangle_t
Ref returns the underlying reference to C object or nil if struct is nil.
type RectangleInt ¶
type RectangleInt struct { X int32 Y int32 Width int32 Height int32 // contains filtered or unexported fields }
RectangleInt as declared in include/cairo.h:486
func NewRectangleIntRef ¶
func NewRectangleIntRef(ref unsafe.Pointer) *RectangleInt
NewRectangleIntRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*RectangleInt) Deref ¶
func (x *RectangleInt) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*RectangleInt) Free ¶
func (x *RectangleInt) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*RectangleInt) PassRef ¶
func (x *RectangleInt) PassRef() (*C.cairo_rectangle_int_t, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (RectangleInt) PassValue ¶
func (x RectangleInt) PassValue() (C.cairo_rectangle_int_t, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*RectangleInt) Ref ¶
func (x *RectangleInt) Ref() *C.cairo_rectangle_int_t
Ref returns the underlying reference to C object or nil if struct is nil.
type RectangleList ¶
type RectangleList struct { Status Status Rectangles []Rectangle NumRectangles int32 // contains filtered or unexported fields }
RectangleList as declared in include/cairo.h:1021
func CopyClipRectangleList ¶
func CopyClipRectangleList(cr *Cairo) *RectangleList
CopyClipRectangleList function as declared in include/cairo.h:1023
func NewRectangleListRef ¶
func NewRectangleListRef(ref unsafe.Pointer) *RectangleList
NewRectangleListRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*RectangleList) Deref ¶
func (x *RectangleList) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*RectangleList) Free ¶
func (x *RectangleList) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*RectangleList) PassRef ¶
func (x *RectangleList) PassRef() (*C.cairo_rectangle_list_t, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (RectangleList) PassValue ¶
func (x RectangleList) PassValue() (C.cairo_rectangle_list_t, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*RectangleList) Ref ¶
func (x *RectangleList) Ref() *C.cairo_rectangle_list_t
Ref returns the underlying reference to C object or nil if struct is nil.
type Region ¶
type Region C.cairo_region_t
Region as declared in include/cairo.h:3079
func NewRegion ¶
func NewRegion() *Region
NewRegion allocates a new C object of this type and converts the reference into a raw struct reference without wrapping.
func NewRegionRef ¶
NewRegionRef converts the C object reference into a raw struct reference without wrapping.
func RegionCopy ¶
RegionCopy function as declared in include/cairo.h:3108
func RegionCreate ¶
func RegionCreate() *Region
RegionCreate function as declared in include/cairo.h:3098
func RegionCreateRectangle ¶
func RegionCreateRectangle(rectangle *RectangleInt) *Region
RegionCreateRectangle function as declared in include/cairo.h:3101
func RegionCreateRectangles ¶
func RegionCreateRectangles(rects *RectangleInt, count int32) *Region
RegionCreateRectangles function as declared in include/cairo.h:3104
func RegionReference ¶
RegionReference function as declared in include/cairo.h:3111
func (*Region) PassRef ¶
func (x *Region) PassRef() *C.cairo_region_t
PassRef returns a reference to C object as it is or allocates a new C object of this type.
func (*Region) Ref ¶
func (x *Region) Ref() *C.cairo_region_t
Ref returns a reference to C object as it is.
type RegionOverlap ¶
type RegionOverlap int32
RegionOverlap as declared in include/cairo.h:3096
const ( RegionOverlapIn RegionOverlap = iota RegionOverlapOut RegionOverlap = 1 RegionOverlapPart RegionOverlap = 2 )
RegionOverlap enumeration from include/cairo.h:3096
func RegionContainsRectangle ¶
func RegionContainsRectangle(region *Region, rectangle *RectangleInt) RegionOverlap
RegionContainsRectangle function as declared in include/cairo.h:3139
type ScaledFont ¶
type ScaledFont C.cairo_scaled_font_t
ScaledFont as declared in include/cairo.h:1059
func GetScaledFont ¶
func GetScaledFont(cr *Cairo) *ScaledFont
GetScaledFont function as declared in include/cairo.h:1478
func NewScaledFont ¶
func NewScaledFont() *ScaledFont
NewScaledFont allocates a new C object of this type and converts the reference into a raw struct reference without wrapping.
func NewScaledFontRef ¶
func NewScaledFontRef(ref unsafe.Pointer) *ScaledFont
NewScaledFontRef converts the C object reference into a raw struct reference without wrapping.
func ScaledFontCreate ¶
func ScaledFontCreate(fontFace *FontFace, fontMatrix *Matrix, ctm *Matrix, options *FontOptions) *ScaledFont
ScaledFontCreate function as declared in include/cairo.h:1595
func ScaledFontReference ¶
func ScaledFontReference(scaledFont *ScaledFont) *ScaledFont
ScaledFontReference function as declared in include/cairo.h:1601
func (*ScaledFont) Free ¶
func (x *ScaledFont) Free()
Free cleanups the referenced memory using C free.
func (*ScaledFont) PassRef ¶
func (x *ScaledFont) PassRef() *C.cairo_scaled_font_t
PassRef returns a reference to C object as it is or allocates a new C object of this type.
func (*ScaledFont) Ref ¶
func (x *ScaledFont) Ref() *C.cairo_scaled_font_t
Ref returns a reference to C object as it is.
type Status ¶
type Status int32
Status as declared in include/cairo.h:361
const ( StatusSuccess Status = iota StatusNoMemory Status = 1 StatusInvalidRestore Status = 2 StatusInvalidPopGroup Status = 3 StatusNoCurrentPoint Status = 4 StatusInvalidMatrix Status = 5 StatusInvalidStatus Status = 6 StatusNullPointer Status = 7 StatusInvalidString Status = 8 StatusInvalidPathData Status = 9 StatusReadError Status = 10 StatusWriteError Status = 11 StatusSurfaceFinished Status = 12 StatusSurfaceTypeMismatch Status = 13 StatusPatternTypeMismatch Status = 14 StatusInvalidContent Status = 15 StatusInvalidFormat Status = 16 StatusInvalidVisual Status = 17 StatusFileNotFound Status = 18 StatusInvalidDash Status = 19 StatusInvalidDscComment Status = 20 StatusInvalidIndex Status = 21 StatusClipNotRepresentable Status = 22 StatusTempFileError Status = 23 StatusInvalidStride Status = 24 StatusFontTypeMismatch Status = 25 StatusUserFontImmutable Status = 26 StatusUserFontError Status = 27 StatusNegativeCount Status = 28 StatusInvalidClusters Status = 29 StatusInvalidSlant Status = 30 StatusInvalidWeight Status = 31 StatusInvalidSize Status = 32 StatusUserFontNotImplemented Status = 33 StatusDeviceTypeMismatch Status = 34 StatusDeviceError Status = 35 StatusInvalidMeshConstruction Status = 36 StatusDeviceFinished Status = 37 StatusJbig2GlobalMissing Status = 38 StatusPngError Status = 39 StatusFreetypeError Status = 40 StatusWin32GdiError Status = 41 StatusTagError Status = 42 StatusLastStatus Status = 43 )
Status enumeration from include/cairo.h:361
func DeviceAcquire ¶
DeviceAcquire function as declared in include/cairo.h:2183
func DeviceObserverPrint ¶
DeviceObserverPrint function as declared in include/cairo.h:2305
func DeviceSetUserData ¶
func DeviceSetUserData(device *Device, key *UserDataKey, userData unsafe.Pointer, destroy DestroyFunc) Status
DeviceSetUserData function as declared in include/cairo.h:2205
func DeviceStatus ¶
DeviceStatus function as declared in include/cairo.h:2180
func FontFaceSetUserData ¶
func FontFaceSetUserData(fontFace *FontFace, key *UserDataKey, userData unsafe.Pointer, destroy DestroyFunc) Status
FontFaceSetUserData function as declared in include/cairo.h:1588
func FontFaceStatus ¶
FontFaceStatus function as declared in include/cairo.h:1530
func FontOptionsStatus ¶
func FontOptionsStatus(options *FontOptions) Status
FontOptionsStatus function as declared in include/cairo.h:1397
func MatrixInvert ¶
MatrixInvert function as declared in include/cairo.h:3049
func MeshPatternGetControlPoint ¶
func MeshPatternGetControlPoint(pattern *Pattern, patchNum uint32, pointNum uint32, x *float64, y *float64) Status
MeshPatternGetControlPoint function as declared in include/cairo.h:3011
func MeshPatternGetCornerColorRgba ¶
func MeshPatternGetCornerColorRgba(pattern *Pattern, patchNum uint32, cornerNum uint32, red *float64, green *float64, blue *float64, alpha *float64) Status
MeshPatternGetCornerColorRgba function as declared in include/cairo.h:3004
func MeshPatternGetPatchCount ¶
MeshPatternGetPatchCount function as declared in include/cairo.h:2996
func PatternGetColorStopCount ¶
PatternGetColorStopCount function as declared in include/cairo.h:2982
func PatternGetColorStopRgba ¶
func PatternGetColorStopRgba(pattern *Pattern, index int32, offset *float64, red *float64, green *float64, blue *float64, alpha *float64) Status
PatternGetColorStopRgba function as declared in include/cairo.h:2976
func PatternGetLinearPoints ¶
func PatternGetLinearPoints(pattern *Pattern, x0 *float64, y0 *float64, x1 *float64, y1 *float64) Status
PatternGetLinearPoints function as declared in include/cairo.h:2986
func PatternGetRadialCircles ¶
func PatternGetRadialCircles(pattern *Pattern, x0 *float64, y0 *float64, r0 *float64, x1 *float64, y1 *float64, r1 *float64) Status
PatternGetRadialCircles function as declared in include/cairo.h:2991
func PatternGetRgba ¶
func PatternGetRgba(pattern *Pattern, red *float64, green *float64, blue *float64, alpha *float64) Status
PatternGetRgba function as declared in include/cairo.h:2966
func PatternGetSurface ¶
PatternGetSurface function as declared in include/cairo.h:2971
func PatternSetUserData ¶
func PatternSetUserData(pattern *Pattern, key *UserDataKey, userData unsafe.Pointer, destroy DestroyFunc) Status
PatternSetUserData function as declared in include/cairo.h:2788
func PatternStatus ¶
PatternStatus function as declared in include/cairo.h:2781
func RegionIntersect ¶
RegionIntersect function as declared in include/cairo.h:3156
func RegionIntersectRectangle ¶
func RegionIntersectRectangle(dst *Region, rectangle *RectangleInt) Status
RegionIntersectRectangle function as declared in include/cairo.h:3159
func RegionStatus ¶
RegionStatus function as declared in include/cairo.h:3121
func RegionSubtract ¶
RegionSubtract function as declared in include/cairo.h:3149
func RegionSubtractRectangle ¶
func RegionSubtractRectangle(dst *Region, rectangle *RectangleInt) Status
RegionSubtractRectangle function as declared in include/cairo.h:3152
func RegionUnion ¶
RegionUnion function as declared in include/cairo.h:3163
func RegionUnionRectangle ¶
func RegionUnionRectangle(dst *Region, rectangle *RectangleInt) Status
RegionUnionRectangle function as declared in include/cairo.h:3166
func RegionXorRectangle ¶
func RegionXorRectangle(dst *Region, rectangle *RectangleInt) Status
RegionXorRectangle function as declared in include/cairo.h:3173
func ScaledFontSetUserData ¶
func ScaledFontSetUserData(scaledFont *ScaledFont, key *UserDataKey, userData unsafe.Pointer, destroy DestroyFunc) Status
ScaledFontSetUserData function as declared in include/cairo.h:1621
func ScaledFontStatus ¶
func ScaledFontStatus(scaledFont *ScaledFont) Status
ScaledFontStatus function as declared in include/cairo.h:1611
func ScaledFontTextToGlyphs ¶
func ScaledFontTextToGlyphs(scaledFont *ScaledFont, x float64, y float64, utf8 string, utf8Len int32, glyphs []*Glyph, numGlyphs *int32, clusters [][]TextCluster, numClusters []int32, clusterFlags []TextClusterFlags) Status
ScaledFontTextToGlyphs function as declared in include/cairo.h:1642
func SetUserData ¶
func SetUserData(cr *Cairo, key *UserDataKey, userData unsafe.Pointer, destroy DestroyFunc) Status
SetUserData function as declared in include/cairo.h:507
func SurfaceObserverAddFillCallback ¶
func SurfaceObserverAddFillCallback(abstractSurface *Surface, _func SurfaceObserverCallback, data unsafe.Pointer) Status
SurfaceObserverAddFillCallback function as declared in include/cairo.h:2273
func SurfaceObserverAddFinishCallback ¶
func SurfaceObserverAddFinishCallback(abstractSurface *Surface, _func SurfaceObserverCallback, data unsafe.Pointer) Status
SurfaceObserverAddFinishCallback function as declared in include/cairo.h:2293
func SurfaceObserverAddFlushCallback ¶
func SurfaceObserverAddFlushCallback(abstractSurface *Surface, _func SurfaceObserverCallback, data unsafe.Pointer) Status
SurfaceObserverAddFlushCallback function as declared in include/cairo.h:2288
func SurfaceObserverAddGlyphsCallback ¶
func SurfaceObserverAddGlyphsCallback(abstractSurface *Surface, _func SurfaceObserverCallback, data unsafe.Pointer) Status
SurfaceObserverAddGlyphsCallback function as declared in include/cairo.h:2283
func SurfaceObserverAddMaskCallback ¶
func SurfaceObserverAddMaskCallback(abstractSurface *Surface, _func SurfaceObserverCallback, data unsafe.Pointer) Status
SurfaceObserverAddMaskCallback function as declared in include/cairo.h:2268
func SurfaceObserverAddPaintCallback ¶
func SurfaceObserverAddPaintCallback(abstractSurface *Surface, _func SurfaceObserverCallback, data unsafe.Pointer) Status
SurfaceObserverAddPaintCallback function as declared in include/cairo.h:2263
func SurfaceObserverAddStrokeCallback ¶
func SurfaceObserverAddStrokeCallback(abstractSurface *Surface, _func SurfaceObserverCallback, data unsafe.Pointer) Status
SurfaceObserverAddStrokeCallback function as declared in include/cairo.h:2278
func SurfaceObserverPrint ¶
SurfaceObserverPrint function as declared in include/cairo.h:2298
func SurfaceSetMimeData ¶
func SurfaceSetMimeData(surface *Surface, mimeType string, data string, length uint, destroy DestroyFunc, closure unsafe.Pointer) Status
SurfaceSetMimeData function as declared in include/cairo.h:2475
func SurfaceSetUserData ¶
func SurfaceSetUserData(surface *Surface, key *UserDataKey, userData unsafe.Pointer, destroy DestroyFunc) Status
SurfaceSetUserData function as declared in include/cairo.h:2450
func SurfaceStatus ¶
SurfaceStatus function as declared in include/cairo.h:2343
func SurfaceWriteToPng ¶
SurfaceWriteToPng function as declared in include/cairo.h:2435
type SubpixelOrder ¶
type SubpixelOrder int32
SubpixelOrder as declared in include/cairo.h:1308
const ( SubpixelOrderDefault SubpixelOrder = iota SubpixelOrderRgb SubpixelOrder = 1 SubpixelOrderBgr SubpixelOrder = 2 SubpixelOrderVrgb SubpixelOrder = 3 SubpixelOrderVbgr SubpixelOrder = 4 )
SubpixelOrder enumeration from include/cairo.h:1308
func FontOptionsGetSubpixelOrder ¶
func FontOptionsGetSubpixelOrder(options *FontOptions) SubpixelOrder
FontOptionsGetSubpixelOrder function as declared in include/cairo.h:1419
type Surface ¶
type Surface C.cairo_surface_t
Surface as declared in include/cairo.h:153
func GetGroupTarget ¶
GetGroupTarget function as declared in include/cairo.h:1977
func ImageSurfaceCreate ¶
ImageSurfaceCreate function as declared in include/cairo.h:2544
func ImageSurfaceCreateForData ¶
func ImageSurfaceCreateForData(data *byte, format Format, width int32, height int32, stride int32) *Surface
ImageSurfaceCreateForData function as declared in include/cairo.h:2553
func ImageSurfaceCreateFromPng ¶
ImageSurfaceCreateFromPng function as declared in include/cairo.h:2577
func ImageSurfaceCreateFromPngStream ¶
ImageSurfaceCreateFromPngStream function as declared in include/cairo.h:2580
func NewSurface ¶
func NewSurface() *Surface
NewSurface allocates a new C object of this type and converts the reference into a raw struct reference without wrapping.
func NewSurfaceRef ¶
NewSurfaceRef converts the C object reference into a raw struct reference without wrapping.
func RecordingSurfaceCreate ¶
RecordingSurfaceCreate function as declared in include/cairo.h:2588
func SurfaceCreateForRectangle ¶
func SurfaceCreateForRectangle(target *Surface, x float64, y float64, width float64, height float64) *Surface
SurfaceCreateForRectangle function as declared in include/cairo.h:2233
func SurfaceCreateObserver ¶
func SurfaceCreateObserver(target *Surface, mode SurfaceObserverMode) *Surface
SurfaceCreateObserver function as declared in include/cairo.h:2254
func SurfaceCreateSimilar ¶
SurfaceCreateSimilar function as declared in include/cairo.h:2213
func SurfaceCreateSimilarImage ¶
SurfaceCreateSimilarImage function as declared in include/cairo.h:2219
func SurfaceMapToImage ¶
func SurfaceMapToImage(surface *Surface, extents *RectangleInt) *Surface
SurfaceMapToImage function as declared in include/cairo.h:2225
func SurfaceReference ¶
SurfaceReference function as declared in include/cairo.h:2327
func (*Surface) PassRef ¶
func (x *Surface) PassRef() *C.cairo_surface_t
PassRef returns a reference to C object as it is or allocates a new C object of this type.
func (*Surface) Ref ¶
func (x *Surface) Ref() *C.cairo_surface_t
Ref returns a reference to C object as it is.
type SurfaceObserverCallback ¶
SurfaceObserverCallback type as declared in include/cairo.h:2258
func NewSurfaceObserverCallbackRef ¶
func NewSurfaceObserverCallbackRef(ref unsafe.Pointer) *SurfaceObserverCallback
func (SurfaceObserverCallback) PassRef ¶
func (x SurfaceObserverCallback) PassRef() (ref *C.cairo_surface_observer_callback_t, allocs *cgoAllocMap)
func (SurfaceObserverCallback) PassValue ¶
func (x SurfaceObserverCallback) PassValue() (ref C.cairo_surface_observer_callback_t, allocs *cgoAllocMap)
type SurfaceObserverMode ¶
type SurfaceObserverMode int32
SurfaceObserverMode as declared in include/cairo.h:2252
const ( SurfaceObserverNormal SurfaceObserverMode = iota SurfaceObserverRecordOperations SurfaceObserverMode = 1 )
SurfaceObserverMode enumeration from include/cairo.h:2252
type SurfaceType ¶
type SurfaceType int32
SurfaceType as declared in include/cairo.h:2424
const ( SurfaceTypeImage SurfaceType = iota SurfaceTypePdf SurfaceType = 1 SurfaceTypePs SurfaceType = 2 SurfaceTypeXlib SurfaceType = 3 SurfaceTypeXcb SurfaceType = 4 SurfaceTypeGlitz SurfaceType = 5 SurfaceTypeQuartz SurfaceType = 6 SurfaceTypeWin32 SurfaceType = 7 SurfaceTypeBeos SurfaceType = 8 SurfaceTypeDirectfb SurfaceType = 9 SurfaceTypeSvg SurfaceType = 10 SurfaceTypeOs2 SurfaceType = 11 SurfaceTypeWin32Printing SurfaceType = 12 SurfaceTypeQuartzImage SurfaceType = 13 SurfaceTypeScript SurfaceType = 14 SurfaceTypeQt SurfaceType = 15 SurfaceTypeRecording SurfaceType = 16 SurfaceTypeVg SurfaceType = 17 SurfaceTypeGl SurfaceType = 18 SurfaceTypeDrm SurfaceType = 19 SurfaceTypeTee SurfaceType = 20 SurfaceTypeXml SurfaceType = 21 SurfaceTypeSkia SurfaceType = 22 SurfaceTypeSubsurface SurfaceType = 23 SurfaceTypeCogl SurfaceType = 24 )
SurfaceType enumeration from include/cairo.h:2424
func SurfaceGetType ¶
func SurfaceGetType(surface *Surface) SurfaceType
SurfaceGetType function as declared in include/cairo.h:2427
type TextCluster ¶
type TextCluster struct { NumBytes int32 NumGlyphs int32 // contains filtered or unexported fields }
TextCluster as declared in include/cairo.h:1143
func NewTextClusterRef ¶
func NewTextClusterRef(ref unsafe.Pointer) *TextCluster
NewTextClusterRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func TextClusterAllocate ¶
func TextClusterAllocate(numClusters int32) *TextCluster
TextClusterAllocate function as declared in include/cairo.h:1145
func (*TextCluster) Deref ¶
func (x *TextCluster) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*TextCluster) Free ¶
func (x *TextCluster) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*TextCluster) PassRef ¶
func (x *TextCluster) PassRef() (*C.cairo_text_cluster_t, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (TextCluster) PassValue ¶
func (x TextCluster) PassValue() (C.cairo_text_cluster_t, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*TextCluster) Ref ¶
func (x *TextCluster) Ref() *C.cairo_text_cluster_t
Ref returns the underlying reference to C object or nil if struct is nil.
type TextClusterFlags ¶
type TextClusterFlags int32
TextClusterFlags as declared in include/cairo.h:1162
const (
TextClusterFlagBackward TextClusterFlags = 1
)
TextClusterFlags enumeration from include/cairo.h:1162
type TextExtents ¶
type TextExtents struct { XBearing float64 YBearing float64 Width float64 Height float64 XAdvance float64 YAdvance float64 // contains filtered or unexported fields }
TextExtents as declared in include/cairo.h:1200
func NewTextExtentsRef ¶
func NewTextExtentsRef(ref unsafe.Pointer) *TextExtents
NewTextExtentsRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*TextExtents) Deref ¶
func (x *TextExtents) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*TextExtents) Free ¶
func (x *TextExtents) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*TextExtents) PassRef ¶
func (x *TextExtents) PassRef() (*C.cairo_text_extents_t, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (TextExtents) PassValue ¶
func (x TextExtents) PassValue() (C.cairo_text_extents_t, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*TextExtents) Ref ¶
func (x *TextExtents) Ref() *C.cairo_text_extents_t
Ref returns the underlying reference to C object or nil if struct is nil.
type UserDataKey ¶
type UserDataKey struct { Unused int32 // contains filtered or unexported fields }
UserDataKey as declared in include/cairo.h:248
func NewUserDataKeyRef ¶
func NewUserDataKeyRef(ref unsafe.Pointer) *UserDataKey
NewUserDataKeyRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*UserDataKey) Deref ¶
func (x *UserDataKey) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*UserDataKey) Free ¶
func (x *UserDataKey) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*UserDataKey) PassRef ¶
func (x *UserDataKey) PassRef() (*C.cairo_user_data_key_t, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (UserDataKey) PassValue ¶
func (x UserDataKey) PassValue() (C.cairo_user_data_key_t, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*UserDataKey) Ref ¶
func (x *UserDataKey) Ref() *C.cairo_user_data_key_t
Ref returns the underlying reference to C object or nil if struct is nil.
type UserScaledFontInitFunc ¶
type UserScaledFontInitFunc func(scaledFont *ScaledFont, cr *Cairo, extents *FontExtents) Status
UserScaledFontInitFunc type as declared in include/cairo.h:1729
func NewUserScaledFontInitFuncRef ¶
func NewUserScaledFontInitFuncRef(ref unsafe.Pointer) *UserScaledFontInitFunc
func UserFontFaceGetInitFunc ¶
func UserFontFaceGetInitFunc(fontFace *FontFace) UserScaledFontInitFunc
UserFontFaceGetInitFunc function as declared in include/cairo.h:1918
func (UserScaledFontInitFunc) PassRef ¶
func (x UserScaledFontInitFunc) PassRef() (ref *C.cairo_user_scaled_font_init_func_t, allocs *cgoAllocMap)
func (UserScaledFontInitFunc) PassValue ¶
func (x UserScaledFontInitFunc) PassValue() (ref C.cairo_user_scaled_font_init_func_t, allocs *cgoAllocMap)
type UserScaledFontRenderGlyphFunc ¶
type UserScaledFontRenderGlyphFunc func(scaledFont *ScaledFont, glyph uint, cr *Cairo, extents *TextExtents) Status
UserScaledFontRenderGlyphFunc type as declared in include/cairo.h:1776
func NewUserScaledFontRenderGlyphFuncRef ¶
func NewUserScaledFontRenderGlyphFuncRef(ref unsafe.Pointer) *UserScaledFontRenderGlyphFunc
func UserFontFaceGetRenderGlyphFunc ¶
func UserFontFaceGetRenderGlyphFunc(fontFace *FontFace) UserScaledFontRenderGlyphFunc
UserFontFaceGetRenderGlyphFunc function as declared in include/cairo.h:1921
func (UserScaledFontRenderGlyphFunc) PassRef ¶
func (x UserScaledFontRenderGlyphFunc) PassRef() (ref *C.cairo_user_scaled_font_render_glyph_func_t, allocs *cgoAllocMap)
func (UserScaledFontRenderGlyphFunc) PassValue ¶
func (x UserScaledFontRenderGlyphFunc) PassValue() (ref C.cairo_user_scaled_font_render_glyph_func_t, allocs *cgoAllocMap)
type UserScaledFontTextToGlyphsFunc ¶
type UserScaledFontTextToGlyphsFunc func(scaledFont *ScaledFont, utf8 string, utf8Len int32, glyphs []*Glyph, numGlyphs *int32, clusters []*TextCluster, numClusters *int32, clusterFlags []TextClusterFlags) Status
UserScaledFontTextToGlyphsFunc type as declared in include/cairo.h:1846
func NewUserScaledFontTextToGlyphsFuncRef ¶
func NewUserScaledFontTextToGlyphsFuncRef(ref unsafe.Pointer) *UserScaledFontTextToGlyphsFunc
func UserFontFaceGetTextToGlyphsFunc ¶
func UserFontFaceGetTextToGlyphsFunc(fontFace *FontFace) UserScaledFontTextToGlyphsFunc
UserFontFaceGetTextToGlyphsFunc function as declared in include/cairo.h:1924
func (UserScaledFontTextToGlyphsFunc) PassRef ¶
func (x UserScaledFontTextToGlyphsFunc) PassRef() (ref *C.cairo_user_scaled_font_text_to_glyphs_func_t, allocs *cgoAllocMap)
func (UserScaledFontTextToGlyphsFunc) PassValue ¶
func (x UserScaledFontTextToGlyphsFunc) PassValue() (ref C.cairo_user_scaled_font_text_to_glyphs_func_t, allocs *cgoAllocMap)
type UserScaledFontUnicodeToGlyphFunc ¶
type UserScaledFontUnicodeToGlyphFunc func(scaledFont *ScaledFont, unicode uint, glyphIndex *uint) Status
UserScaledFontUnicodeToGlyphFunc type as declared in include/cairo.h:1893
func NewUserScaledFontUnicodeToGlyphFuncRef ¶
func NewUserScaledFontUnicodeToGlyphFuncRef(ref unsafe.Pointer) *UserScaledFontUnicodeToGlyphFunc
func UserFontFaceGetUnicodeToGlyphFunc ¶
func UserFontFaceGetUnicodeToGlyphFunc(fontFace *FontFace) UserScaledFontUnicodeToGlyphFunc
UserFontFaceGetUnicodeToGlyphFunc function as declared in include/cairo.h:1927
func (UserScaledFontUnicodeToGlyphFunc) PassRef ¶
func (x UserScaledFontUnicodeToGlyphFunc) PassRef() (ref *C.cairo_user_scaled_font_unicode_to_glyph_func_t, allocs *cgoAllocMap)
func (UserScaledFontUnicodeToGlyphFunc) PassValue ¶
func (x UserScaledFontUnicodeToGlyphFunc) PassValue() (ref C.cairo_user_scaled_font_unicode_to_glyph_func_t, allocs *cgoAllocMap)
type WriteFunc ¶
WriteFunc type as declared in include/cairo.h:445
func NewWriteFuncRef ¶
func (WriteFunc) PassRef ¶
func (x WriteFunc) PassRef() (ref *C.cairo_write_func_t, allocs *cgoAllocMap)
func (WriteFunc) PassValue ¶
func (x WriteFunc) PassValue() (ref C.cairo_write_func_t, allocs *cgoAllocMap)