cairo

package
v0.0.0-...-6016eac Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CCairoT

type CCairoT *C.cairo_t

type Cairo

type Cairo struct{ Cr *C.cairo_t }

func (Cairo) Arc

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

func (Cairo) ArcNegative

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

func (Cairo) Clip

func (cr Cairo) Clip()

func (Cairo) ClipExtents

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

func (Cairo) ClipPreserve

func (cr Cairo) ClipPreserve()

func (Cairo) ClosePath

func (cr Cairo) ClosePath()

func (Cairo) CopyPage

func (cr Cairo) CopyPage()

func (Cairo) CurrentPoint

func (cr Cairo) CurrentPoint() (x, y float64)

func (Cairo) CurveTo

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

func (Cairo) Dash

func (cr Cairo) Dash() (dashes, offset float64)

func (Cairo) DashCount

func (cr Cairo) DashCount() float64

func (Cairo) DeviceToUser

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

func (Cairo) DeviceToUserDistance

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

func (Cairo) Fill

func (cr Cairo) Fill()

func (Cairo) FillExtents

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

func (Cairo) FillPreserve

func (cr Cairo) FillPreserve()

func (Cairo) HasCurrentPoint

func (cr Cairo) HasCurrentPoint() bool

func (Cairo) IdentityMatrix

func (cr Cairo) IdentityMatrix()

func (Cairo) InClip

func (cr Cairo) InClip(x, y float64) bool

func (Cairo) InFill

func (cr Cairo) InFill(x, y float64) bool

func (Cairo) InStroke

func (cr Cairo) InStroke(x, y float64) bool

func (Cairo) LineTo

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

func (Cairo) LineWidth

func (cr Cairo) LineWidth() float64

func (Cairo) Mask

func (cr Cairo) Mask(pat Pattern)

func (Cairo) MiterLimit

func (cr Cairo) MiterLimit() float64

func (Cairo) MoveTo

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

func (Cairo) NewPath

func (cr Cairo) NewPath()

func (Cairo) NewSubPath

func (cr Cairo) NewSubPath()

func (Cairo) Paint

func (cr Cairo) Paint()

func (Cairo) PaintWithAlpha

func (cr Cairo) PaintWithAlpha(alpha float64)

func (Cairo) PathExtents

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

func (Cairo) PopGroup

func (cr Cairo) PopGroup() Pattern

func (Cairo) PopGroupToSource

func (cr Cairo) PopGroupToSource()

func (Cairo) PushGroup

func (cr Cairo) PushGroup()

func (Cairo) Rectangle

func (cr Cairo) Rectangle(x, y, w, h float64)

func (Cairo) RelCurveTo

func (cr Cairo) RelCurveTo(dx1, dy1, dx2, dy2, dx3, dy3 float64)

func (Cairo) RelLineTo

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

func (Cairo) RelMoveTo

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

func (Cairo) ResetClip

func (cr Cairo) ResetClip()

func (Cairo) Restore

func (cr Cairo) Restore()

func (Cairo) Rotate

func (cr Cairo) Rotate(angle float64)

func (Cairo) Save

func (cr Cairo) Save()

func (Cairo) Scale

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

func (Cairo) SetLineWidth

func (cr Cairo) SetLineWidth(width float64)

func (Cairo) SetMatrix

func (cr Cairo) SetMatrix(mat Matrix)

func (Cairo) SetSource

func (cr Cairo) SetSource(pat Pattern)

func (Cairo) SetSourceColor

func (cr Cairo) SetSourceColor(c color.Color)

func (Cairo) SetSourceRGB

func (cr Cairo) SetSourceRGB(r, g, b float64)

func (Cairo) SetSourceRGBA

func (cr Cairo) SetSourceRGBA(r, g, b, a float64)

func (Cairo) ShowPage

func (cr Cairo) ShowPage()

func (Cairo) Source

func (cr Cairo) Source() Pattern

func (Cairo) Stroke

func (cr Cairo) Stroke()

func (Cairo) StrokeExtents

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

func (Cairo) StrokePreserve

func (cr Cairo) StrokePreserve()

func (Cairo) Tolerance

func (cr Cairo) Tolerance() float64

func (Cairo) Transform

func (cr Cairo) Transform(mat Matrix)

func (Cairo) Translate

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

func (Cairo) UserToDevice

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

func (Cairo) UserToDeviceDistance

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

type Extend

type Extend C.cairo_extend_t
const (
	ExtendNone    Extend = C.CAIRO_EXTEND_NONE
	ExtendRepeat  Extend = C.CAIRO_EXTEND_REPEAT
	ExtendReflect Extend = C.CAIRO_EXTEND_REFLECT
	ExtendPad     Extend = C.CAIRO_EXTEND_PAD
)

type Matrix

type Matrix struct{ XX, YX, XY, YY, X0, Y0 float64 }

type Pattern

type Pattern struct {
	// contains filtered or unexported fields
}

func PatternCreateLinear

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

func PatternCreateMesh

func PatternCreateMesh() Pattern

func PatternCreateRGB

func PatternCreateRGB(r, g, b float64) Pattern

func PatternCreateRGBA

func PatternCreateRGBA(r, g, b, a float64) Pattern

func PatternCreateRadial

func PatternCreateRadial(x0, y0, r0, x1, y1, r1 float64) Pattern

func (Pattern) AddColorStopRGB

func (pat Pattern) AddColorStopRGB(offset, r, g, b float64)

func (Pattern) AddColorStopRGBA

func (pat Pattern) AddColorStopRGBA(offset, r, g, b, a float64)

func (Pattern) Destroy

func (pat Pattern) Destroy()

func (Pattern) Extend

func (pat Pattern) Extend() Extend

func (Pattern) MeshBeginPatch

func (pat Pattern) MeshBeginPatch()

func (Pattern) MeshCurveTo

func (pat Pattern) MeshCurveTo(x1, y1, x2, y2, x3, y3 float64)

func (Pattern) MeshEndPatch

func (pat Pattern) MeshEndPatch()

func (Pattern) MeshLineTo

func (pat Pattern) MeshLineTo(x1, y1 float64)

func (Pattern) MeshMoveTo

func (pat Pattern) MeshMoveTo(x1, y1 float64)

func (Pattern) MeshSetControlPoint

func (pat Pattern) MeshSetControlPoint(pointNum uint, x, y float64)

func (Pattern) MeshSetCornerColorRGB

func (pat Pattern) MeshSetCornerColorRGB(cornerNum uint, r, g, b float64)

func (Pattern) MeshSetCornerColorRGBA

func (pat Pattern) MeshSetCornerColorRGBA(cornerNum uint, r, g, b, a float64)

func (Pattern) SetExtend

func (pat Pattern) SetExtend(extend Extend)

func (Pattern) Type

func (pat Pattern) Type() PatternType

Jump to

Keyboard shortcuts

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