go-cairo: github.com/ungerik/go-cairo Index | Files | Directories

package cairo

import "github.com/ungerik/go-cairo"

+build !goci

+build !goci

+build !goci

Index

Package Files

cairo.go matrix.go png.go surface.go

Constants

const (
    OPERATOR_CLEAR = iota

    OPERATOR_SOURCE
    OPERATOR_OVER
    OPERATOR_IN
    OPERATOR_OUT
    OPERATOR_ATOP

    OPERATOR_DEST
    OPERATOR_DEST_OVER
    OPERATOR_DEST_IN
    OPERATOR_DEST_OUT
    OPERATOR_DEST_ATOP

    OPERATOR_XOR
    OPERATOR_ADD
    OPERATOR_SATURATE

    OPERATOR_MULTIPLY
    OPERATOR_SCREEN
    OPERATOR_OVERLAY
    OPERATOR_DARKEN
    OPERATOR_LIGHTEN
    OPERATOR_COLOR_DODGE
    OPERATOR_COLOR_BURN
    OPERATOR_HARD_LIGHT
    OPERATOR_SOFT_LIGHT
    OPERATOR_DIFFERENCE
    OPERATOR_EXCLUSION
    OPERATOR_HSL_HUE
    OPERATOR_HSL_SATURATION
    OPERATOR_HSL_COLOR
    OPERATOR_HSL_LUMINOSITY
)
const (
    FONT_SLANT_NORMAL = iota
    FONT_SLANT_ITALIC
    FONT_SLANT_OBLIQUE
)

cairo_font_slant_t values

const (
    FONT_WEIGHT_NORMAL = iota
    FONT_WEIGHT_BOLD
)

cairo_font_weight_t values

const (
    SUBPIXEL_ORDER_DEFAULT = iota
    SUBPIXEL_ORDER_RGB
    SUBPIXEL_ORDER_BGR
    SUBPIXEL_ORDER_VRGB
    SUBPIXEL_ORDER_VBGR
)

cairo_subpixel_order_t values

const (
    HINT_STYLE_DEFAULT = iota
    HINT_STYLE_NONE
    HINT_STYLE_SLIGHT
    HINT_STYLE_MEDIUM
    HINT_STYLE_FULL
)

cairo_hint_style_t values

const (
    HINT_METRICS_DEFAULT = iota
    HINT_METRICS_OFF
    HINT_METRICS_ON
)

cairo_hint_metrics_t values

const (
    MIME_TYPE_JPEG = "image/jpeg"
    MIME_TYPE_PNG  = "image/png"
    MIME_TYPE_JP2  = "image/jp2"
    MIME_TYPE_URI  = "text/x-uri"
)

func NewSurfaceFromPNG Uses

func NewSurfaceFromPNG(filename string) (*Surface, Status)

func Version Uses

func Version() int

func VersionString Uses

func VersionString() string

type Antialias Uses

type Antialias int

cairo_antialias_t

const (
    ANTIALIAS_DEFAULT Antialias = iota
    ANTIALIAS_NONE
    ANTIALIAS_GRAY
    ANTIALIAS_SUBPIXEL
)

type Cairo_context Uses

type Cairo_context *C.cairo_t

type Cairo_surface Uses

type Cairo_surface *C.cairo_surface_t

type Content Uses

type Content int

cairo_content_t

const (
    CONTENT_COLOR       Content = 0x1000
    CONTENT_ALPHA       Content = 0x2000
    CONTENT_COLOR_ALPHA Content = 0x3000
)

type Device Uses

type Device struct {
}

type DeviceType Uses

type DeviceType int
const (
    DEVICE_TYPE_DRM DeviceType = iota
    DEVICE_TYPE_GL
    DEVICE_TYPE_SCRIPT
    DEVICE_TYPE_XCB
    DEVICE_TYPE_XLIB
    DEVICE_TYPE_XML
)

type Extent Uses

type Extent int

cairo_extend_t

const (
    EXTEND_NONE Extent = iota
    EXTEND_REPEAT
    EXTEND_REFLECT
    EXTEND_PAD
)

type FillRule Uses

type FillRule int

cairo_fill_rule_t

const (
    FILL_RULE_WINDING FillRule = iota
    FILL_RULE_EVEN_ODD
)

type Filter Uses

type Filter int

cairo_filter_t

const (
    CAIRO_FILTER_FAST Filter = iota
    CAIRO_FILTER_GOOD
    CAIRO_FILTER_BEST
    CAIRO_FILTER_NEAREST
    CAIRO_FILTER_BILINEAR
    CAIRO_FILTER_GAUSSIAN
)

type FontExtents Uses

type FontExtents struct {
}

type FontFace Uses

type FontFace struct {
}

type FontOptions Uses

type FontOptions struct {
}

type FontType Uses

type FontType int

cairo_font_type_t

const (
    FONT_TYPE_TOY FontType = iota
    FONT_TYPE_FT
    FONT_TYPE_WIN32
    FONT_TYPE_QUARTZ
    FONT_TYPE_USER
)

type Format Uses

type Format int
const (
    FORMAT_INVALID   Format = -1
    FORMAT_ARGB32    Format = 0
    FORMAT_RGB24     Format = 1
    FORMAT_A8        Format = 2
    FORMAT_A1        Format = 3
    FORMAT_RGB16_565 Format = 4
    FORMAT_RGB30     Format = 5
)

cairo_format_t values

func (Format) StrideForWidth Uses

func (self Format) StrideForWidth(width int) int

type Glyph Uses

type Glyph struct {
}

type LineCap Uses

type LineCap int

cairo_line_cap_t

const (
    LINE_CAP_BUTT LineCap = iota
    LINE_CAP_ROUND
    LINE_CAP_SQUARE
)

type LineJoin Uses

type LineJoin int

cairo_line_cap_join_t

const (
    LINE_JOIN_MITER LineJoin = iota
    LINE_JOIN_ROUND
    LINE_JOIN_BEVEL
)

type Linear Uses

type Linear struct {
    X0, Y0 float64
    X1, Y1 float64
}

type Matrix Uses

type Matrix struct {
    Xx, Yx float64
    Xy, Yy float64
    X0, Y0 float64
}

func (*Matrix) InitIdendity Uses

func (self *Matrix) InitIdendity()

func (*Matrix) InitRotate Uses

func (self *Matrix) InitRotate(radians float64)

func (*Matrix) InitScale Uses

func (self *Matrix) InitScale(sx, sy float64)

func (*Matrix) InitTranslate Uses

func (self *Matrix) InitTranslate(tx, ty float64)

func (*Matrix) Invert Uses

func (self *Matrix) Invert()

func (*Matrix) Multiply Uses

func (self *Matrix) Multiply(a, b Matrix)

func (*Matrix) Rotate Uses

func (self *Matrix) Rotate(radians float64)

func (*Matrix) Scale Uses

func (self *Matrix) Scale(sx, sy float64)

func (*Matrix) TransformDistance Uses

func (self *Matrix) TransformDistance(dx, dy float64) (float64, float64)

func (*Matrix) TransformPoint Uses

func (self *Matrix) TransformPoint(x, y float64) (float64, float64)

func (*Matrix) Translate Uses

func (self *Matrix) Translate(tx, ty float64)

type Operator Uses

type Operator int

cairo_operator_t

type PDFVersion Uses

type PDFVersion int
const (
    PDF_VERSION_1_4 PDFVersion = iota
    PDF_VERSION_1_5
)

func (PDFVersion) String Uses

func (self PDFVersion) String() string

type PSLevel Uses

type PSLevel int
const (
    PS_LEVEL_2 PSLevel = iota
    PS_LEVEL_3
)

func (PSLevel) String Uses

func (self PSLevel) String() string

type PathDataType Uses

type PathDataType int

cairo_path_data_type_t

const (
    PATH_MOVE_TO PathDataType = iota
    PATH_LINE_TO
    PATH_CURVE_TO
    PATH_CLOSE_PATH
)

type Pattern Uses

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

func NewPatternForSurface Uses

func NewPatternForSurface(s *Surface) *Pattern

func NewPatternLinear Uses

func NewPatternLinear(l Linear) *Pattern

func NewPatternRadial Uses

func NewPatternRadial(r Radial) *Pattern

func (*Pattern) AddColorStopRGB Uses

func (self *Pattern) AddColorStopRGB(offset, red, green, blue float64)

func (*Pattern) AddColorStopRGBA Uses

func (self *Pattern) AddColorStopRGBA(offset, red, green, blue, alpha float64)

func (*Pattern) Destroy Uses

func (self *Pattern) Destroy()

func (*Pattern) GetExtend Uses

func (self *Pattern) GetExtend() Extent

func (*Pattern) GetFilter Uses

func (self *Pattern) GetFilter() Filter

func (*Pattern) GetMatrix Uses

func (self *Pattern) GetMatrix() (matrix Matrix)

func (*Pattern) SetExtend Uses

func (self *Pattern) SetExtend(extend Extent)

func (*Pattern) SetFilter Uses

func (self *Pattern) SetFilter(filter Filter)

func (*Pattern) SetMatrix Uses

func (self *Pattern) SetMatrix(matrix Matrix)

func (*Pattern) Status Uses

func (self *Pattern) Status() Status

type PatternType Uses

type PatternType int

cairo_pattern_type_t

const (
    PATTERN_TYPE_SOLID PatternType = iota
    PATTERN_TYPE_SURFACE
    PATTERN_TYPE_LINEAR
    PATTERN_TYPE_RADIAL
)

type Radial Uses

type Radial struct {
    CX0, CY0, Radius0 float64
    CX1, CY1, Radius1 float64
}

type Rectangle Uses

type Rectangle struct {
    X, Y          float64
    Width, Height float64
}

type RegionOverlap Uses

type RegionOverlap int
const (
    REGION_OVERLAP_IN RegionOverlap = iota
    REGION_OVERLAP_OUT
    REGION_OVERLAP_PART
)

type SVGVersion Uses

type SVGVersion int
const (
    SVG_VERSION_1_1 SVGVersion = iota
    SVG_VERSION_1_2
)

func (SVGVersion) String Uses

func (self SVGVersion) String() string

type ScaledFont Uses

type ScaledFont struct {
}

type Status Uses

type Status int

cairo_status_t

const (
    STATUS_SUCCESS Status = iota
    STATUS_NO_MEMORY
    STATUS_INVALID_RESTORE
    STATUS_INVALID_POP_GROUP
    STATUS_NO_CURRENT_POINT
    STATUS_INVALID_MATRIX
    STATUS_INVALID_STATUS
    STATUS_NULL_POINTER
    STATUS_INVALID_STRING
    STATUS_INVALID_PATH_DATA
    STATUS_READ_ERROR
    STATUS_WRITE_ERROR
    STATUS_SURFACE_FINISHED
    STATUS_SURFACE_TYPE_MISMATCH
    STATUS_PATTERN_TYPE_MISMATCH
    STATUS_INVALID_CONTENT
    STATUS_INVALID_FORMAT
    STATUS_INVALID_VISUAL
    STATUS_FILE_NOT_FOUND
    STATUS_INVALID_DASH
    STATUS_INVALID_DSC_COMMENT
    STATUS_INVALID_INDEX
    STATUS_CLIP_NOT_REPRESENTABLE
    STATUS_TEMP_FILE_ERROR
    STATUS_INVALID_STRIDE
    STATUS_FONT_TYPE_MISMATCH
    STATUS_USER_FONT_IMMUTABLE
    STATUS_USER_FONT_ERROR
    STATUS_NEGATIVE_COUNT
    STATUS_INVALID_CLUSTERS
    STATUS_INVALID_SLANT
    STATUS_INVALID_WEIGHT
    STATUS_INVALID_SIZE
    STATUS_USER_FONT_NOT_IMPLEMENTED
    STATUS_DEVICE_TYPE_MISMATCH
    STATUS_DEVICE_ERROR
)

func (Status) String Uses

func (self Status) String() string

type Surface Uses

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

Golang struct to hold both a cairo surface and a cairo context

func NewPDFSurface Uses

func NewPDFSurface(filename string, widthInPoints, heightInPoints float64, version PDFVersion) *Surface

func NewPSSurface Uses

func NewPSSurface(filename string, widthInPoints, heightInPoints float64, level PSLevel) *Surface

func NewSVGSurface Uses

func NewSVGSurface(filename string, widthInPoints, heightInPoints float64, version SVGVersion) *Surface

func NewSurface Uses

func NewSurface(format Format, width, height int) *Surface

func NewSurfaceFromC Uses

func NewSurfaceFromC(s Cairo_surface, c Cairo_context) *Surface

NewSurfaceFromC creates a new surface from C data types. This is useful, if you already obtained a surface by using a C library, for example an XCB surface.

func NewSurfaceFromData Uses

func NewSurfaceFromData(data unsafe.Pointer, format Format, width, height, stride int) *Surface

func NewSurfaceFromImage Uses

func NewSurfaceFromImage(img image.Image) *Surface

func (*Surface) Arc Uses

func (self *Surface) Arc(xc, yc, radius, angle1, angle2 float64)

func (*Surface) ArcNegative Uses

func (self *Surface) ArcNegative(xc, yc, radius, angle1, angle2 float64)

func (*Surface) Clip Uses

func (self *Surface) Clip()

func (*Surface) ClipExtents Uses

func (self *Surface) ClipExtents() (left, top, right, bottom float64)

func (*Surface) ClipPreserve Uses

func (self *Surface) ClipPreserve()

func (*Surface) ClipRectangleList Uses

func (self *Surface) ClipRectangleList() ([]Rectangle, Status)

func (*Surface) ClosePath Uses

func (self *Surface) ClosePath()

func (*Surface) CopyPage Uses

func (self *Surface) CopyPage()

func (*Surface) CreateForRectangle Uses

func (self *Surface) CreateForRectangle(x, y, width, height float64) *Surface

func (*Surface) CurveTo Uses

func (self *Surface) CurveTo(x1, y1, x2, y2, x3, y3 float64)

func (*Surface) Destroy Uses

func (self *Surface) Destroy()

func (*Surface) DeviceToUser Uses

func (self *Surface) DeviceToUser(x, y float64) (float64, float64)

func (*Surface) DeviceToUserDistance Uses

func (self *Surface) DeviceToUserDistance(x, y float64) (float64, float64)

func (*Surface) Fill Uses

func (self *Surface) Fill()

func (*Surface) FillExtents Uses

func (self *Surface) FillExtents() (left, top, right, bottom float64)

func (*Surface) FillPreserve Uses

func (self *Surface) FillPreserve()

func (*Surface) Finish Uses

func (self *Surface) Finish()

func (*Surface) Flush Uses

func (self *Surface) Flush()

func (*Surface) FontExtents Uses

func (self *Surface) FontExtents() *FontExtents

func (*Surface) GetContent Uses

func (self *Surface) GetContent() Content

func (*Surface) GetCurrentPoint Uses

func (self *Surface) GetCurrentPoint() (float64, float64)

func (*Surface) GetData Uses

func (self *Surface) GetData() []byte

GetData returns a copy of the surfaces raw pixel data. This method also calls Flush.

func (*Surface) GetDevice Uses

func (self *Surface) GetDevice() *Device

func (*Surface) GetDeviceOffset Uses

func (self *Surface) GetDeviceOffset() (x, y float64)

func (*Surface) GetFallbackResolution Uses

func (self *Surface) GetFallbackResolution() (xPixelPerInch, yPixelPerInch float64)

func (*Surface) GetFontFace Uses

func (self *Surface) GetFontFace() *FontFace

func (*Surface) GetFontOptions Uses

func (self *Surface) GetFontOptions() *FontOptions

func (*Surface) GetFormat Uses

func (self *Surface) GetFormat() Format

func (*Surface) GetHeight Uses

func (self *Surface) GetHeight() int

func (*Surface) GetImage Uses

func (self *Surface) GetImage() image.Image

func (*Surface) GetReferenceCount Uses

func (self *Surface) GetReferenceCount() int

func (*Surface) GetScaledFont Uses

func (self *Surface) GetScaledFont() *ScaledFont

func (*Surface) GetStatus Uses

func (self *Surface) GetStatus() Status

func (*Surface) GetStride Uses

func (self *Surface) GetStride() int

func (*Surface) GetType Uses

func (self *Surface) GetType() SurfaceType

func (*Surface) GetWidth Uses

func (self *Surface) GetWidth() int

func (*Surface) GlyphExtents Uses

func (self *Surface) GlyphExtents(glyphs []Glyph) *TextExtents

func (*Surface) GlyphPath Uses

func (self *Surface) GlyphPath(glyphs []Glyph)

func (*Surface) HasCurrentPoint Uses

func (self *Surface) HasCurrentPoint() bool

func (*Surface) HasShowTextGlyphs Uses

func (self *Surface) HasShowTextGlyphs() bool

func (*Surface) IdentityMatrix Uses

func (self *Surface) IdentityMatrix()

func (*Surface) InFill Uses

func (self *Surface) InFill(x, y float64) bool

func (*Surface) InStroke Uses

func (self *Surface) InStroke(x, y float64) bool

func (*Surface) LineTo Uses

func (self *Surface) LineTo(x, y float64)

func (*Surface) MarkDirty Uses

func (self *Surface) MarkDirty()

func (*Surface) MarkDirtyRectangle Uses

func (self *Surface) MarkDirtyRectangle(x, y, width, height int)

func (*Surface) Mask Uses

func (self *Surface) Mask(pattern Pattern)

func (*Surface) MaskSurface Uses

func (self *Surface) MaskSurface(surface *Surface, surface_x, surface_y float64)

func (*Surface) MoveTo Uses

func (self *Surface) MoveTo(x, y float64)

func (*Surface) Native Uses

func (self *Surface) Native() (surface, context uintptr)

func (*Surface) NewPath Uses

func (self *Surface) NewPath()

func (*Surface) NewSubPath Uses

func (self *Surface) NewSubPath()

func (*Surface) Paint Uses

func (self *Surface) Paint()

func (*Surface) PaintWithAlpha Uses

func (self *Surface) PaintWithAlpha(alpha float64)

func (*Surface) PathExtents Uses

func (self *Surface) PathExtents() (left, top, right, bottom float64)

func (*Surface) PopGroup Uses

func (self *Surface) PopGroup() (pattern *Pattern)

func (*Surface) PopGroupToSource Uses

func (self *Surface) PopGroupToSource()

func (*Surface) PushGroup Uses

func (self *Surface) PushGroup()

func (*Surface) PushGroupWithContent Uses

func (self *Surface) PushGroupWithContent(content Content)

func (*Surface) Rectangle Uses

func (self *Surface) Rectangle(x, y, width, height float64)

func (*Surface) RelCurveTo Uses

func (self *Surface) RelCurveTo(dx1, dy1, dx2, dy2, dx3, dy3 float64)

func (*Surface) RelLineTo Uses

func (self *Surface) RelLineTo(dx, dy float64)

func (*Surface) RelMoveTo Uses

func (self *Surface) RelMoveTo(dx, dy float64)

func (*Surface) ResetClip Uses

func (self *Surface) ResetClip()

func (*Surface) Restore Uses

func (self *Surface) Restore()

func (*Surface) Rotate Uses

func (self *Surface) Rotate(angle float64)

func (*Surface) Save Uses

func (self *Surface) Save()

func (*Surface) Scale Uses

func (self *Surface) Scale(sx, sy float64)

func (*Surface) SelectFontFace Uses

func (self *Surface) SelectFontFace(name string, font_slant_t, font_weight_t int)

func (*Surface) SetAntialias Uses

func (self *Surface) SetAntialias(antialias Antialias)

func (*Surface) SetDash Uses

func (self *Surface) SetDash(dashes []float64, num_dashes int, offset float64)

func (*Surface) SetData Uses

func (self *Surface) SetData(data []byte)

SetData sets the surfaces raw pixel data. This method also calls Flush and MarkDirty.

func (*Surface) SetDeviceOffset Uses

func (self *Surface) SetDeviceOffset(x, y float64)

func (*Surface) SetFallbackResolution Uses

func (self *Surface) SetFallbackResolution(xPixelPerInch, yPixelPerInch float64)

func (*Surface) SetFillRule Uses

func (self *Surface) SetFillRule(fill_rule FillRule)

func (*Surface) SetFontFace Uses

func (self *Surface) SetFontFace(fontFace *FontFace)

func (*Surface) SetFontMatrix Uses

func (self *Surface) SetFontMatrix(matrix Matrix)

func (*Surface) SetFontOptions Uses

func (self *Surface) SetFontOptions(fontOptions *FontOptions)

func (*Surface) SetFontSize Uses

func (self *Surface) SetFontSize(size float64)

func (*Surface) SetImage Uses

func (self *Surface) SetImage(img image.Image)

SetImage set the data from an image.Image with identical size.

func (*Surface) SetLineCap Uses

func (self *Surface) SetLineCap(line_cap LineCap)

func (*Surface) SetLineJoin Uses

func (self *Surface) SetLineJoin(line_join LineJoin)

func (*Surface) SetLineWidth Uses

func (self *Surface) SetLineWidth(width float64)

func (*Surface) SetMatrix Uses

func (self *Surface) SetMatrix(matrix Matrix)

func (*Surface) SetMiterLimit Uses

func (self *Surface) SetMiterLimit(limit float64)

func (*Surface) SetOperator Uses

func (self *Surface) SetOperator(operator Operator)

func (*Surface) SetScaledFont Uses

func (self *Surface) SetScaledFont(scaledFont *ScaledFont)

func (*Surface) SetSource Uses

func (self *Surface) SetSource(pattern *Pattern)

func (*Surface) SetSourceRGB Uses

func (self *Surface) SetSourceRGB(red, green, blue float64)

func (*Surface) SetSourceRGBA Uses

func (self *Surface) SetSourceRGBA(red, green, blue, alpha float64)

func (*Surface) SetSourceSurface Uses

func (self *Surface) SetSourceSurface(surface *Surface, x, y float64)

func (*Surface) SetTolerance Uses

func (self *Surface) SetTolerance(tolerance float64)

func (*Surface) ShowGlyphs Uses

func (self *Surface) ShowGlyphs(glyphs []Glyph)

func (*Surface) ShowPage Uses

func (self *Surface) ShowPage()

func (*Surface) ShowText Uses

func (self *Surface) ShowText(text string)

func (*Surface) ShowTextGlyphs Uses

func (self *Surface) ShowTextGlyphs(text string, glyphs []Glyph, clusters []TextCluster, flags TextClusterFlag)

func (*Surface) Status Uses

func (self *Surface) Status() Status

func (*Surface) Stroke Uses

func (self *Surface) Stroke()

func (*Surface) StrokeExtents Uses

func (self *Surface) StrokeExtents() (left, top, right, bottom float64)

func (*Surface) StrokePreserve Uses

func (self *Surface) StrokePreserve()

func (*Surface) TextExtents Uses

func (self *Surface) TextExtents(text string) *TextExtents

func (*Surface) TextPath Uses

func (self *Surface) TextPath(text string)

func (*Surface) Transform Uses

func (self *Surface) Transform(matrix Matrix)

func (*Surface) Translate Uses

func (self *Surface) Translate(tx, ty float64)

func (*Surface) UserToDevice Uses

func (self *Surface) UserToDevice(x, y float64) (float64, float64)

func (*Surface) UserToDeviceDistance Uses

func (self *Surface) UserToDeviceDistance(dx, dy float64) (float64, float64)

func (*Surface) WriteToPNG Uses

func (self *Surface) WriteToPNG(filename string) Status

func (*Surface) WriteToPNGStream Uses

func (self *Surface) WriteToPNGStream() ([]byte, Status)

type SurfaceType Uses

type SurfaceType int

cairo_surface_type_t

const (
    SURFACE_TYPE_IMAGE SurfaceType = iota
    SURFACE_TYPE_PDF
    SURFACE_TYPE_PS
    SURFACE_TYPE_XLIB
    SURFACE_TYPE_XCB
    SURFACE_TYPE_GLITZ
    SURFACE_TYPE_QUARTZ
    SURFACE_TYPE_WIN32
    SURFACE_TYPE_BEOS
    SURFACE_TYPE_DIRECTFB
    SURFACE_TYPE_SVG
    SURFACE_TYPE_OS2
    SURFACE_TYPE_WIN32_PRINTING
    SURFACE_TYPE_QUARTZ_IMAGE
    SURFACE_TYPE_SCRIPT
    SURFACE_TYPE_QT
    SURFACE_TYPE_RECORDING
    SURFACE_TYPE_VG
    SURFACE_TYPE_GL
    SURFACE_TYPE_DRM
    SURFACE_TYPE_TEE
    SURFACE_TYPE_XML
    SURFACE_TYPE_SKIA
    SURFACE_TYPE_SUBSURFACE
)

type TextCluster Uses

type TextCluster struct {
}

type TextClusterFlag Uses

type TextClusterFlag int

cairo_text_cluster_flag_t

const (
    TEXT_CLUSTER_FLAG_BACKWARD TextClusterFlag = 0x00000001
)

type TextExtents Uses

type TextExtents struct {
    Xbearing float64
    Ybearing float64
    Width    float64
    Height   float64
    Xadvance float64
    Yadvance float64
}

Directories

PathSynopsis
extimage
go-cairo-example

Package cairo imports 5 packages (graph) and is imported by 16 packages. Updated 2018-09-11. Refresh now. Tools for package owners.