Documentation
¶
Index ¶
- type CCairoT
- type Cairo
- func (cr Cairo) Arc(xc, yc, radius, angle1, angle2 float64)
- func (cr Cairo) ArcNegative(xc, yc, radius, angle1, angle2 float64)
- func (cr Cairo) Clip()
- func (cr Cairo) ClipExtents() (x1, y1, x2, y2 float64)
- func (cr Cairo) ClipPreserve()
- func (cr Cairo) ClosePath()
- func (cr Cairo) CopyPage()
- func (cr Cairo) CurrentPoint() (x, y float64)
- func (cr Cairo) CurveTo(x1, y1, x2, y2, x3, y3 float64)
- func (cr Cairo) Dash() (dashes, offset float64)
- func (cr Cairo) DashCount() float64
- func (cr Cairo) DeviceToUser(x, y float64) (float64, float64)
- func (cr Cairo) DeviceToUserDistance(dx, dy float64) (float64, float64)
- func (cr Cairo) Fill()
- func (cr Cairo) FillExtents() (x1, y1, x2, y2 float64)
- func (cr Cairo) FillPreserve()
- func (cr Cairo) HasCurrentPoint() bool
- func (cr Cairo) IdentityMatrix()
- func (cr Cairo) InClip(x, y float64) bool
- func (cr Cairo) InFill(x, y float64) bool
- func (cr Cairo) InStroke(x, y float64) bool
- func (cr Cairo) LineTo(x, y float64)
- func (cr Cairo) LineWidth() float64
- func (cr Cairo) Mask(pat Pattern)
- func (cr Cairo) MiterLimit() float64
- func (cr Cairo) MoveTo(x, y float64)
- func (cr Cairo) NewPath()
- func (cr Cairo) NewSubPath()
- func (cr Cairo) Paint()
- func (cr Cairo) PaintWithAlpha(alpha float64)
- func (cr Cairo) PathExtents() (x1, y1, x2, y2 float64)
- func (cr Cairo) PopGroup() Pattern
- func (cr Cairo) PopGroupToSource()
- func (cr Cairo) PushGroup()
- func (cr Cairo) Rectangle(x, y, w, h float64)
- func (cr Cairo) RelCurveTo(dx1, dy1, dx2, dy2, dx3, dy3 float64)
- func (cr Cairo) RelLineTo(dx, dy float64)
- func (cr Cairo) RelMoveTo(dx, dy float64)
- func (cr Cairo) ResetClip()
- func (cr Cairo) Restore()
- func (cr Cairo) Rotate(angle float64)
- func (cr Cairo) Save()
- func (cr Cairo) Scale(sx, sy float64)
- func (cr Cairo) SetLineWidth(width float64)
- func (cr Cairo) SetMatrix(mat Matrix)
- func (cr Cairo) SetSource(pat Pattern)
- func (cr Cairo) SetSourceColor(c color.Color)
- func (cr Cairo) SetSourceRGB(r, g, b float64)
- func (cr Cairo) SetSourceRGBA(r, g, b, a float64)
- func (cr Cairo) ShowPage()
- func (cr Cairo) Source() Pattern
- func (cr Cairo) Stroke()
- func (cr Cairo) StrokeExtents() (x1, y1, x2, y2 float64)
- func (cr Cairo) StrokePreserve()
- func (cr Cairo) Tolerance() float64
- func (cr Cairo) Transform(mat Matrix)
- func (cr Cairo) Translate(tx, ty float64)
- func (cr Cairo) UserToDevice(x, y float64) (float64, float64)
- func (cr Cairo) UserToDeviceDistance(dx, dy float64) (float64, float64)
- type Extend
- type Matrix
- type Pattern
- func (pat Pattern) AddColorStopRGB(offset, r, g, b float64)
- func (pat Pattern) AddColorStopRGBA(offset, r, g, b, a float64)
- func (pat Pattern) Destroy()
- func (pat Pattern) Extend() Extend
- func (pat Pattern) MeshBeginPatch()
- func (pat Pattern) MeshCurveTo(x1, y1, x2, y2, x3, y3 float64)
- func (pat Pattern) MeshEndPatch()
- func (pat Pattern) MeshLineTo(x1, y1 float64)
- func (pat Pattern) MeshMoveTo(x1, y1 float64)
- func (pat Pattern) MeshSetControlPoint(pointNum uint, x, y float64)
- func (pat Pattern) MeshSetCornerColorRGB(cornerNum uint, r, g, b float64)
- func (pat Pattern) MeshSetCornerColorRGBA(cornerNum uint, r, g, b, a float64)
- func (pat Pattern) SetExtend(extend Extend)
- func (pat Pattern) Type() PatternType
- type PatternType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cairo ¶
func (Cairo) ArcNegative ¶
func (Cairo) ClipExtents ¶
func (Cairo) ClipPreserve ¶
func (cr Cairo) ClipPreserve()
func (Cairo) CurrentPoint ¶
func (Cairo) DeviceToUserDistance ¶
func (Cairo) FillExtents ¶
func (Cairo) FillPreserve ¶
func (cr Cairo) FillPreserve()
func (Cairo) HasCurrentPoint ¶
func (Cairo) IdentityMatrix ¶
func (cr Cairo) IdentityMatrix()
func (Cairo) MiterLimit ¶
func (Cairo) NewSubPath ¶
func (cr Cairo) NewSubPath()
func (Cairo) PaintWithAlpha ¶
func (Cairo) PathExtents ¶
func (Cairo) PopGroupToSource ¶
func (cr Cairo) PopGroupToSource()
func (Cairo) RelCurveTo ¶
func (Cairo) SetLineWidth ¶
func (Cairo) SetSourceColor ¶
func (Cairo) SetSourceRGB ¶
func (Cairo) SetSourceRGBA ¶
func (Cairo) StrokeExtents ¶
func (Cairo) StrokePreserve ¶
func (cr Cairo) StrokePreserve()
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 Pattern ¶
type Pattern struct {
// contains filtered or unexported fields
}
func PatternCreateLinear ¶
func PatternCreateMesh ¶
func PatternCreateMesh() Pattern
func PatternCreateRGB ¶
func PatternCreateRGBA ¶
func PatternCreateRadial ¶
func (Pattern) AddColorStopRGB ¶
func (Pattern) AddColorStopRGBA ¶
func (Pattern) MeshBeginPatch ¶
func (pat Pattern) MeshBeginPatch()
func (Pattern) MeshCurveTo ¶
func (Pattern) MeshEndPatch ¶
func (pat Pattern) MeshEndPatch()
func (Pattern) MeshLineTo ¶
func (Pattern) MeshMoveTo ¶
func (Pattern) MeshSetControlPoint ¶
func (Pattern) MeshSetCornerColorRGB ¶
func (Pattern) MeshSetCornerColorRGBA ¶
func (Pattern) Type ¶
func (pat Pattern) Type() PatternType
type PatternType ¶
type PatternType C.cairo_pattern_type_t
const ( Solid PatternType = C.CAIRO_PATTERN_TYPE_SOLID Surface PatternType = C.CAIRO_PATTERN_TYPE_SURFACE Linear PatternType = C.CAIRO_PATTERN_TYPE_LINEAR Radial PatternType = C.CAIRO_PATTERN_TYPE_RADIAL Mesh PatternType = C.CAIRO_PATTERN_TYPE_MESH RasterSource PatternType = C.CAIRO_PATTERN_TYPE_RASTER_SOURCE )
Click to show internal directories.
Click to hide internal directories.