cairo

package module
v0.0.0-...-4a4e1c0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2018 License: MIT Imports: 4 Imported by: 0

README

cairo bindings

Work In Progress.

Full Cairo bindings with examples:

  • Quartz-backed rendering for OS X;
  • GLFW crossplatform OpenGL 2.1 surface support.

Installation

To use libcairo and dependencies shipped with this package (darwin_amd64 at the moment):

$ go get github.com/golang-ui/cairo/cmd/cairo-example-glfw

To dynamically link against external libcairo (via pkg-config, darwin systems at the moment):

$ go get -tags external github.com/golang-ui/cairo/cmd/cairo-example-glfw

Examples

cairo-example-glfw

LICENSE

MIT

Documentation

Overview

Package cairo provides Go bindings for Cairo.

Index

Constants

View Source
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

func AppendPath(cr *Cairo, path *Path)

AppendPath function as declared in include/cairo.h:2113

func Arc

func Arc(cr *Cairo, xc float64, yc float64, radius float64, angle1 float64, angle2 float64)

Arc function as declared in include/cairo.h:870

func ArcNegative

func ArcNegative(cr *Cairo, xc float64, yc float64, radius float64, angle1 float64, angle2 float64)

ArcNegative function as declared in include/cairo.h:876

func Clip

func Clip(cr *Cairo)

Clip function as declared in include/cairo.h:981

func ClipExtents

func ClipExtents(cr *Cairo, x1 *float64, y1 *float64, x2 *float64, y2 *float64)

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 ClosePath

func ClosePath(cr *Cairo)

ClosePath function as declared in include/cairo.h:912

func CopyPage

func CopyPage(cr *Cairo)

CopyPage function as declared in include/cairo.h:950

func CurveTo

func CurveTo(cr *Cairo, x1 float64, y1 float64, x2 float64, y2 float64, x3 float64, y3 float64)

CurveTo function as declared in include/cairo.h:864

func DebugResetStaticData

func DebugResetStaticData()

DebugResetStaticData function as declared in include/cairo.h:3178

func Destroy

func Destroy(cr *Cairo)

Destroy function as declared in include/cairo.h:497

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

func DeviceGetReferenceCount(device *Device) uint32

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

func DeviceObserverElapsed(device *Device) float64

DeviceObserverElapsed function as declared in include/cairo.h:2310

func DeviceObserverFillElapsed

func DeviceObserverFillElapsed(device *Device) float64

DeviceObserverFillElapsed function as declared in include/cairo.h:2319

func DeviceObserverGlyphsElapsed

func DeviceObserverGlyphsElapsed(device *Device) float64

DeviceObserverGlyphsElapsed function as declared in include/cairo.h:2325

func DeviceObserverMaskElapsed

func DeviceObserverMaskElapsed(device *Device) float64

DeviceObserverMaskElapsed function as declared in include/cairo.h:2316

func DeviceObserverPaintElapsed

func DeviceObserverPaintElapsed(device *Device) float64

DeviceObserverPaintElapsed function as declared in include/cairo.h:2313

func DeviceObserverStrokeElapsed

func DeviceObserverStrokeElapsed(device *Device) float64

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

func DeviceToUser(cr *Cairo, x *float64, y *float64)

DeviceToUser function as declared in include/cairo.h:845

func DeviceToUserDistance

func DeviceToUserDistance(cr *Cairo, dx *float64, dy *float64)

DeviceToUserDistance function as declared in include/cairo.h:848

func Fill

func Fill(cr *Cairo)

Fill function as declared in include/cairo.h:944

func FillExtents

func FillExtents(cr *Cairo, x1 *float64, y1 *float64, x2 *float64, y2 *float64)

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

func FontFaceGetReferenceCount(fontFace *FontFace) uint32

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

func FormatStrideForWidth(format Format, width int32) int32

FormatStrideForWidth function as declared in include/cairo.h:2550

func GetCurrentPoint

func GetCurrentPoint(cr *Cairo, x *float64, y *float64)

GetCurrentPoint function as declared in include/cairo.h:1948

func GetDash

func GetDash(cr *Cairo, dashes *float64, offset *float64)

GetDash function as declared in include/cairo.h:1969

func GetDashCount

func GetDashCount(cr *Cairo) int32

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

func GetFontMatrix(cr *Cairo, matrix *Matrix)

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

func GetLineWidth(cr *Cairo) float64

GetLineWidth function as declared in include/cairo.h:1954

func GetMatrix

func GetMatrix(cr *Cairo, matrix *Matrix)

GetMatrix function as declared in include/cairo.h:1972

func GetMiterLimit

func GetMiterLimit(cr *Cairo) float64

GetMiterLimit function as declared in include/cairo.h:1963

func GetReferenceCount

func GetReferenceCount(cr *Cairo) uint32

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

func GetTolerance(cr *Cairo) float64

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 GetVersion

func GetVersion() int32

GetVersion function as declared in include/cairo.h:86

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 GlyphPath

func GlyphPath(cr *Cairo, glyphs *Glyph, numGlyphs int32)

GlyphPath function as declared in include/cairo.h:1501

func IdentityMatrix

func IdentityMatrix(cr *Cairo)

IdentityMatrix function as declared in include/cairo.h:836

func ImageSurfaceGetData

func ImageSurfaceGetData(surface *Surface) *byte

ImageSurfaceGetData function as declared in include/cairo.h:2560

func ImageSurfaceGetHeight

func ImageSurfaceGetHeight(surface *Surface) int32

ImageSurfaceGetHeight function as declared in include/cairo.h:2570

func ImageSurfaceGetStride

func ImageSurfaceGetStride(surface *Surface) int32

ImageSurfaceGetStride function as declared in include/cairo.h:2573

func ImageSurfaceGetWidth

func ImageSurfaceGetWidth(surface *Surface) int32

ImageSurfaceGetWidth function as declared in include/cairo.h:2567

func LineTo

func LineTo(cr *Cairo, x float64, y float64)

LineTo function as declared in include/cairo.h:861

func MakeRectangle

func MakeRectangle(cr *Cairo, x float64, y float64, width float64, height float64)

MakeRectangle function as declared in include/cairo.h:902

func Mask

func Mask(cr *Cairo, pattern *Pattern)

Mask function as declared in include/cairo.h:928

func MaskSurface

func MaskSurface(cr *Cairo, surface *Surface, surfaceX float64, surfaceY float64)

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

func MatrixInitRotate(matrix *Matrix, radians float64)

MatrixInitRotate function as declared in include/cairo.h:3036

func MatrixInitScale

func MatrixInitScale(matrix *Matrix, sx float64, sy float64)

MatrixInitScale function as declared in include/cairo.h:3032

func MatrixInitTranslate

func MatrixInitTranslate(matrix *Matrix, tx float64, ty float64)

MatrixInitTranslate function as declared in include/cairo.h:3028

func MatrixMultiply

func MatrixMultiply(result *Matrix, a *Matrix, b *Matrix)

MatrixMultiply function as declared in include/cairo.h:3052

func MatrixRotate

func MatrixRotate(matrix *Matrix, radians float64)

MatrixRotate function as declared in include/cairo.h:3046

func MatrixScale

func MatrixScale(matrix *Matrix, sx float64, sy float64)

MatrixScale function as declared in include/cairo.h:3043

func MatrixTransformDistance

func MatrixTransformDistance(matrix *Matrix, dx *float64, dy *float64)

MatrixTransformDistance function as declared in include/cairo.h:3057

func MatrixTransformPoint

func MatrixTransformPoint(matrix *Matrix, x *float64, y *float64)

MatrixTransformPoint function as declared in include/cairo.h:3061

func MatrixTranslate

func MatrixTranslate(matrix *Matrix, tx float64, ty float64)

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

func MeshPatternLineTo(pattern *Pattern, x float64, y float64)

MeshPatternLineTo function as declared in include/cairo.h:2861

func MeshPatternMoveTo

func MeshPatternMoveTo(pattern *Pattern, x float64, y float64)

MeshPatternMoveTo function as declared in include/cairo.h:2865

func MeshPatternSetControlPoint

func MeshPatternSetControlPoint(pattern *Pattern, pointNum uint32, x float64, y float64)

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 MoveTo

func MoveTo(cr *Cairo, x float64, y float64)

MoveTo function as declared in include/cairo.h:855

func NewPath

func NewPath(cr *Cairo)

NewPath function as declared in include/cairo.h:852

func NewSubPath

func NewSubPath(cr *Cairo)

NewSubPath function as declared in include/cairo.h:858

func Paint

func Paint(cr *Cairo)

Paint function as declared in include/cairo.h:921

func PaintWithAlpha

func PaintWithAlpha(cr *Cairo, alpha float64)

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

func PathExtents(cr *Cairo, x1 *float64, y1 *float64, x2 *float64, y2 *float64)

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

func PatternGetMatrix(pattern *Pattern, matrix *Matrix)

PatternGetMatrix function as declared in include/cairo.h:2889

func PatternGetReferenceCount

func PatternGetReferenceCount(pattern *Pattern) uint32

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

func PatternSetExtend(pattern *Pattern, extend Extend)

PatternSetExtend function as declared in include/cairo.h:2925

func PatternSetFilter

func PatternSetFilter(pattern *Pattern, filter Filter)

PatternSetFilter function as declared in include/cairo.h:2960

func PatternSetMatrix

func PatternSetMatrix(pattern *Pattern, matrix *Matrix)

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 PushGroup

func PushGroup(cr *Cairo)

PushGroup function as declared in include/cairo.h:519

func PushGroupWithContent

func PushGroupWithContent(cr *Cairo, content Content)

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

func RasterSourcePatternGetCallbackData(pattern *Pattern) unsafe.Pointer

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

func RasterSourcePatternSetCallbackData(pattern *Pattern, data unsafe.Pointer)

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

func RegionNumRectangles(region *Region) int32

RegionNumRectangles function as declared in include/cairo.h:3128

func RegionTranslate

func RegionTranslate(region *Region, dx int32, dy int32)

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 RelLineTo

func RelLineTo(cr *Cairo, dx float64, dy float64)

RelLineTo function as declared in include/cairo.h:893

func RelMoveTo

func RelMoveTo(cr *Cairo, dx float64, dy float64)

RelMoveTo function as declared in include/cairo.h:890

func ResetClip

func ResetClip(cr *Cairo)

ResetClip function as declared in include/cairo.h:978

func Restore

func Restore(cr *Cairo)

Restore function as declared in include/cairo.h:516

func Rotate

func Rotate(cr *Cairo, angle float64)

Rotate function as declared in include/cairo.h:825

func Save

func Save(cr *Cairo)

Save function as declared in include/cairo.h:513

func Scale

func Scale(cr *Cairo, sx float64, sy float64)

Scale function as declared in include/cairo.h:822

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

func SetAntialias(cr *Cairo, antialias Antialias)

SetAntialias function as declared in include/cairo.h:724

func SetDash

func SetDash(cr *Cairo, dashes *float64, numDashes int32, offset float64)

SetDash function as declared in include/cairo.h:810

func SetFillRule

func SetFillRule(cr *Cairo, fillRule FillRule)

SetFillRule function as declared in include/cairo.h:759

func SetFontFace

func SetFontFace(cr *Cairo, fontFace *FontFace)

SetFontFace function as declared in include/cairo.h:1469

func SetFontMatrix

func SetFontMatrix(cr *Cairo, matrix *Matrix)

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

func SetFontSize(cr *Cairo, size float64)

SetFontSize function as declared in include/cairo.h:1450

func SetLineCap

func SetLineCap(cr *Cairo, lineCap LineCap)

SetLineCap function as declared in include/cairo.h:783

func SetLineJoin

func SetLineJoin(cr *Cairo, lineJoin LineJoin)

SetLineJoin function as declared in include/cairo.h:807

func SetLineWidth

func SetLineWidth(cr *Cairo, width float64)

SetLineWidth function as declared in include/cairo.h:762

func SetMatrix

func SetMatrix(cr *Cairo, matrix *Matrix)

SetMatrix function as declared in include/cairo.h:832

func SetMiterLimit

func SetMiterLimit(cr *Cairo, limit float64)

SetMiterLimit function as declared in include/cairo.h:816

func SetOperator

func SetOperator(cr *Cairo, op Operator)

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 SetSource

func SetSource(cr *Cairo, source *Pattern)

SetSource function as declared in include/cairo.h:653

func SetSourceRgb

func SetSourceRgb(cr *Cairo, red float64, green float64, blue float64)

SetSourceRgb function as declared in include/cairo.h:656

func SetSourceRgba

func SetSourceRgba(cr *Cairo, red float64, green float64, blue float64, alpha float64)

SetSourceRgba function as declared in include/cairo.h:659

func SetSourceSurface

func SetSourceSurface(cr *Cairo, surface *Surface, x float64, y float64)

SetSourceSurface function as declared in include/cairo.h:664

func SetTolerance

func SetTolerance(cr *Cairo, tolerance float64)

SetTolerance function as declared in include/cairo.h:670

func ShowGlyphs

func ShowGlyphs(cr *Cairo, glyphs *Glyph, numGlyphs int32)

ShowGlyphs function as declared in include/cairo.h:1485

func ShowPage

func ShowPage(cr *Cairo)

ShowPage function as declared in include/cairo.h:953

func ShowText

func ShowText(cr *Cairo, utf8 string)

ShowText function as declared in include/cairo.h:1482

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

func StatusToString(status Status) string

StatusToString function as declared in include/cairo.h:2124

func Stroke

func Stroke(cr *Cairo)

Stroke function as declared in include/cairo.h:938

func StrokeExtents

func StrokeExtents(cr *Cairo, x1 *float64, y1 *float64, x2 *float64, y2 *float64)

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

func SurfaceGetDeviceOffset(surface *Surface, xOffset *float64, yOffset *float64)

SurfaceGetDeviceOffset function as declared in include/cairo.h:2519

func SurfaceGetDeviceScale

func SurfaceGetDeviceScale(surface *Surface, xScale *float64, yScale *float64)

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

func SurfaceGetReferenceCount(surface *Surface) uint32

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

func SurfaceMarkDirtyRectangle(surface *Surface, x int32, y int32, width int32, height int32)

SurfaceMarkDirtyRectangle function as declared in include/cairo.h:2497

func SurfaceObserverElapsed

func SurfaceObserverElapsed(surface *Surface) float64

SurfaceObserverElapsed function as declared in include/cairo.h:2302

func SurfaceSetDeviceOffset

func SurfaceSetDeviceOffset(surface *Surface, xOffset float64, yOffset float64)

SurfaceSetDeviceOffset function as declared in include/cairo.h:2514

func SurfaceSetDeviceScale

func SurfaceSetDeviceScale(surface *Surface, xScale float64, yScale float64)

SurfaceSetDeviceScale function as declared in include/cairo.h:2504

func SurfaceSetFallbackResolution

func SurfaceSetFallbackResolution(surface *Surface, xPixelsPerInch float64, yPixelsPerInch float64)

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

func SurfaceUnmapImage(surface *Surface, image *Surface)

SurfaceUnmapImage function as declared in include/cairo.h:2230

func TagBegin

func TagBegin(cr *Cairo, tagName string, attributes string)

TagBegin function as declared in include/cairo.h:1035

func TagEnd

func TagEnd(cr *Cairo, tagName string)

TagEnd function as declared in include/cairo.h:1038

func TextClusterFree

func TextClusterFree(clusters *TextCluster)

TextClusterFree function as declared in include/cairo.h:1149

func TextPath

func TextPath(cr *Cairo, utf8 string)

TextPath function as declared in include/cairo.h:1498

func ToyFontFaceGetFamily

func ToyFontFaceGetFamily(fontFace *FontFace) string

ToyFontFaceGetFamily function as declared in include/cairo.h:1680

func Transform

func Transform(cr *Cairo, matrix *Matrix)

Transform function as declared in include/cairo.h:828

func Translate

func Translate(cr *Cairo, tx float64, ty float64)

Translate function as declared in include/cairo.h:819

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

func UserToDevice(cr *Cairo, x *float64, y *float64)

UserToDevice function as declared in include/cairo.h:839

func UserToDeviceDistance

func UserToDeviceDistance(cr *Cairo, dx *float64, dy *float64)

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

func GetAntialias(cr *Cairo) Antialias

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

func HasCurrentPoint(cr *Cairo) Bool

HasCurrentPoint function as declared in include/cairo.h:1945

func InClip

func InClip(cr *Cairo, x float64, y float64) Bool

InClip function as declared in include/cairo.h:963

func InFill

func InFill(cr *Cairo, x float64, y float64) Bool

InFill function as declared in include/cairo.h:960

func InStroke

func InStroke(cr *Cairo, x float64, y float64) Bool

InStroke function as declared in include/cairo.h:957

func RecordingSurfaceGetExtents

func RecordingSurfaceGetExtents(surface *Surface, extents *Rectangle) Bool

RecordingSurfaceGetExtents function as declared in include/cairo.h:2600

func RegionContainsPoint

func RegionContainsPoint(region *Region, x int32, y int32) Bool

RegionContainsPoint function as declared in include/cairo.h:3143

func RegionEqual

func RegionEqual(a *Region, b *Region) Bool

RegionEqual function as declared in include/cairo.h:3118

func RegionIsEmpty

func RegionIsEmpty(region *Region) Bool

RegionIsEmpty function as declared in include/cairo.h:3136

func SurfaceHasShowTextGlyphs

func SurfaceHasShowTextGlyphs(surface *Surface) Bool

SurfaceHasShowTextGlyphs function as declared in include/cairo.h:2540

func SurfaceSupportsMimeType

func SurfaceSupportsMimeType(surface *Surface, mimeType string) Bool

SurfaceSupportsMimeType function as declared in include/cairo.h:2483

type Cairo

type Cairo C.cairo_t

Cairo as declared in include/cairo.h:124

func Create

func Create(target *Surface) *Cairo

Create function as declared in include/cairo.h:490

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

func NewCairoRef(ref unsafe.Pointer) *Cairo

NewCairoRef converts the C object reference into a raw struct reference without wrapping.

func Reference

func Reference(cr *Cairo) *Cairo

Reference function as declared in include/cairo.h:493

func (*Cairo) Free

func (x *Cairo) Free()

Free cleanups the referenced memory using C free.

func (*Cairo) PassRef

func (x *Cairo) PassRef() *C.cairo_t

PassRef returns a reference to C object as it is or allocates a new C object of this type.

func (*Cairo) Ref

func (x *Cairo) Ref() *C.cairo_t

Ref returns a reference to C object as it is.

type Content

type Content int32

Content as declared in include/cairo.h:383

const (
	ContentColor      Content = 4096
	ContentAlpha      Content = 8192
	ContentColorAlpha Content = 12288
)

Content enumeration from include/cairo.h:383

func SurfaceGetContent

func SurfaceGetContent(surface *Surface) Content

SurfaceGetContent function as declared in include/cairo.h:2430

type DestroyFunc

type DestroyFunc func(data unsafe.Pointer)

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

func DeviceReference(device *Device) *Device

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

func NewDeviceRef(ref unsafe.Pointer) *Device

NewDeviceRef converts the C object reference into a raw struct reference without wrapping.

func SurfaceGetDevice

func SurfaceGetDevice(surface *Surface) *Device

SurfaceGetDevice function as declared in include/cairo.h:2336

func (*Device) Free

func (x *Device) Free()

Free cleanups the referenced memory using C free.

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

func PatternGetExtend(pattern *Pattern) Extend

PatternGetExtend function as declared in include/cairo.h:2928

type FillRule

type FillRule int32

FillRule as declared in include/cairo.h:756

const (
	FillRuleWinding FillRule = iota
	FillRuleEvenOdd FillRule = 1
)

FillRule enumeration from include/cairo.h:756

func GetFillRule

func GetFillRule(cr *Cairo) FillRule

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

func PatternGetFilter(pattern *Pattern) Filter

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

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

func FontFaceReference(fontFace *FontFace) *FontFace

FontFaceReference function as declared in include/cairo.h:1520

func GetFontFace

func GetFontFace(cr *Cairo) *FontFace

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

func NewFontFaceRef(ref unsafe.Pointer) *FontFace

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) Free

func (x *FontFace) Free()

Free cleanups the referenced memory using C free.

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

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

func ToyFontFaceGetSlant(fontFace *FontFace) FontSlant

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

func FontFaceGetType(fontFace *FontFace) FontType

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

func ImageSurfaceGetFormat(surface *Surface) Format

ImageSurfaceGetFormat function as declared in include/cairo.h:2564

type Glyph

type Glyph struct {
	Index uint
	X     float64
	Y     float64
	// contains filtered or unexported fields
}

Glyph as declared in include/cairo.h:1112

func GlyphAllocate

func GlyphAllocate(numGlyphs int32) *Glyph

GlyphAllocate function as declared in include/cairo.h:1114

func NewGlyphRef

func NewGlyphRef(ref unsafe.Pointer) *Glyph

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

const (
	LineCapButt   LineCap = iota
	LineCapRound  LineCap = 1
	LineCapSquare LineCap = 2
)

LineCap enumeration from include/cairo.h:780

func GetLineCap

func GetLineCap(cr *Cairo) LineCap

GetLineCap function as declared in include/cairo.h:1957

type LineJoin

type LineJoin int32

LineJoin as declared in include/cairo.h:804

const (
	LineJoinMiter LineJoin = iota
	LineJoinRound LineJoin = 1
	LineJoinBevel LineJoin = 2
)

LineJoin enumeration from include/cairo.h:804

func GetLineJoin

func GetLineJoin(cr *Cairo) LineJoin

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

func NewMatrixRef(ref unsafe.Pointer) *Matrix

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

func GetOperator(cr *Cairo) Operator

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 CopyPath

func CopyPath(cr *Cairo) *Path

CopyPath function as declared in include/cairo.h:2106

func CopyPathFlat

func CopyPathFlat(cr *Cairo) *Path

CopyPathFlat function as declared in include/cairo.h:2109

func MeshPatternGetPath

func MeshPatternGetPath(pattern *Pattern, patchNum uint32) *Path

MeshPatternGetPath function as declared in include/cairo.h:2999

func NewPathRef

func NewPathRef(ref unsafe.Pointer) *Path

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 PathData

type PathData [sizeofPathData]byte

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 GetSource

func GetSource(cr *Cairo) *Pattern

GetSource function as declared in include/cairo.h:1935

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

func NewPatternRef(ref unsafe.Pointer) *Pattern

NewPatternRef converts the C object reference into a raw struct reference without wrapping.

func PatternCreateForSurface

func PatternCreateForSurface(surface *Surface) *Pattern

PatternCreateForSurface function as declared in include/cairo.h:2757

func PatternCreateLinear

func PatternCreateLinear(x0 float64, y0 float64, x1 float64, y1 float64) *Pattern

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

func PatternCreateRgb(red float64, green float64, blue float64) *Pattern

PatternCreateRgb function as declared in include/cairo.h:2750

func PatternCreateRgba

func PatternCreateRgba(red float64, green float64, blue float64, alpha float64) *Pattern

PatternCreateRgba function as declared in include/cairo.h:2753

func PatternReference

func PatternReference(pattern *Pattern) *Pattern

PatternReference function as declared in include/cairo.h:2771

func PopGroup

func PopGroup(cr *Cairo) *Pattern

PopGroup function as declared in include/cairo.h:524

func (*Pattern) Free

func (x *Pattern) Free()

Free cleanups the referenced memory using C free.

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

type RasterSourceFinishFunc func(pattern *Pattern, callbackData unsafe.Pointer)

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

type RasterSourceReleaseFunc func(pattern *Pattern, callbackData unsafe.Pointer, surface *Surface)

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

type RasterSourceSnapshotFunc func(pattern *Pattern, callbackData unsafe.Pointer) Status

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 RawString

type RawString string

RawString reperesents a string backed by data on the C side.

func (RawString) Copy

func (raw RawString) Copy() string

Copy returns a Go-managed copy of raw string.

type ReadFunc

type ReadFunc func(closure unsafe.Pointer, data *byte, length uint32) Status

ReadFunc type as declared in include/cairo.h:467

func NewReadFuncRef

func NewReadFuncRef(ref unsafe.Pointer) *ReadFunc

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

func NewRectangleRef(ref unsafe.Pointer) *Rectangle

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

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

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

func NewRegionRef(ref unsafe.Pointer) *Region

NewRegionRef converts the C object reference into a raw struct reference without wrapping.

func RegionCopy

func RegionCopy(original *Region) *Region

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

func RegionReference(region *Region) *Region

RegionReference function as declared in include/cairo.h:3111

func (*Region) Free

func (x *Region) Free()

Free cleanups the referenced memory using C free.

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

func DeviceAcquire(device *Device) Status

DeviceAcquire function as declared in include/cairo.h:2183

func DeviceObserverPrint

func DeviceObserverPrint(device *Device, writeFunc WriteFunc, closure unsafe.Pointer) Status

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

func DeviceStatus(device *Device) Status

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

func FontFaceStatus(fontFace *FontFace) Status

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 GetStatus

func GetStatus(cr *Cairo) Status

GetStatus function as declared in include/cairo.h:2122

func MatrixInvert

func MatrixInvert(matrix *Matrix) Status

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

func MeshPatternGetPatchCount(pattern *Pattern, count *uint32) Status

MeshPatternGetPatchCount function as declared in include/cairo.h:2996

func PatternGetColorStopCount

func PatternGetColorStopCount(pattern *Pattern, count *int32) Status

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

func PatternGetSurface(pattern *Pattern, surface []*Surface) Status

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

func PatternStatus(pattern *Pattern) Status

PatternStatus function as declared in include/cairo.h:2781

func RegionIntersect

func RegionIntersect(dst *Region, other *Region) Status

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

func RegionStatus(region *Region) Status

RegionStatus function as declared in include/cairo.h:3121

func RegionSubtract

func RegionSubtract(dst *Region, other *Region) Status

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

func RegionUnion(dst *Region, other *Region) Status

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 RegionXor

func RegionXor(dst *Region, other *Region) Status

RegionXor function as declared in include/cairo.h:3170

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

func SurfaceObserverPrint(surface *Surface, writeFunc WriteFunc, closure unsafe.Pointer) Status

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

func SurfaceStatus(surface *Surface) Status

SurfaceStatus function as declared in include/cairo.h:2343

func SurfaceWriteToPng

func SurfaceWriteToPng(surface *Surface, filename string) Status

SurfaceWriteToPng function as declared in include/cairo.h:2435

func SurfaceWriteToPngStream

func SurfaceWriteToPngStream(surface *Surface, writeFunc WriteFunc, closure unsafe.Pointer) Status

SurfaceWriteToPngStream function as declared in include/cairo.h:2439

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

func GetGroupTarget(cr *Cairo) *Surface

GetGroupTarget function as declared in include/cairo.h:1977

func GetTarget

func GetTarget(cr *Cairo) *Surface

GetTarget function as declared in include/cairo.h:1974

func ImageSurfaceCreate

func ImageSurfaceCreate(format Format, width int32, height int32) *Surface

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

func ImageSurfaceCreateFromPng(filename string) *Surface

ImageSurfaceCreateFromPng function as declared in include/cairo.h:2577

func ImageSurfaceCreateFromPngStream

func ImageSurfaceCreateFromPngStream(readFunc ReadFunc, closure unsafe.Pointer) *Surface

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

func NewSurfaceRef(ref unsafe.Pointer) *Surface

NewSurfaceRef converts the C object reference into a raw struct reference without wrapping.

func RecordingSurfaceCreate

func RecordingSurfaceCreate(content Content, extents *Rectangle) *Surface

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

func SurfaceCreateSimilar(other *Surface, content Content, width int32, height int32) *Surface

SurfaceCreateSimilar function as declared in include/cairo.h:2213

func SurfaceCreateSimilarImage

func SurfaceCreateSimilarImage(other *Surface, format Format, width int32, height int32) *Surface

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

func SurfaceReference(surface *Surface) *Surface

SurfaceReference function as declared in include/cairo.h:2327

func (*Surface) Free

func (x *Surface) Free()

Free cleanups the referenced memory using C free.

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

type SurfaceObserverCallback func(observer *Surface, target *Surface, data unsafe.Pointer)

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

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

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

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 (UserScaledFontUnicodeToGlyphFunc) PassValue

type WriteFunc

type WriteFunc func(closure unsafe.Pointer, data string, length uint32) Status

WriteFunc type as declared in include/cairo.h:445

func NewWriteFuncRef

func NewWriteFuncRef(ref unsafe.Pointer) *WriteFunc

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)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL