Documentation
¶
Index ¶
- Constants
- type Antialias
- type Content
- type Context
- func (this *Context) Antialias() Antialias
- func (this *Context) AppendPath(p *Path)
- func (this *Context) Arc(xc, yc, radius, angle1, angle2 float64)
- func (this *Context) ArcNegative(xc, yc, radius, angle1, angle2 float64)
- func (this *Context) Clip()
- func (this *Context) ClipBounds() (x, y, width, height float64)
- func (this *Context) ClipPreserve()
- func (this *Context) ClosePath()
- func (this *Context) CopyPage()
- func (this *Context) CopyPath() *Path
- func (this *Context) CopyPathFlat() *Path
- func (this *Context) CurrentPoint() (x, y float64)
- func (this *Context) CurveTo(x1, y1, x2, y2, x3, y3 float64)
- func (this *Context) Dash() Dash
- func (this *Context) Destroy()
- func (this *Context) DeviceToUser(x, y float64) (x1, y1 float64)
- func (this *Context) DeviceToUserDistance(dx, dy float64) (dx1, dy1 float64)
- func (this *Context) Fill()
- func (this *Context) FillExtens() (x1, y1, x2, y2 float64)
- func (this *Context) FillPreserve()
- func (this *Context) FillRule() FillRule
- func (this *Context) FontExtents() *FontExtents
- func (this *Context) FontFace() *FontFace
- func (this *Context) FontOptions() *FontOptions
- func (this *Context) GetFontMatrix(mat *geom.Mat3x2)
- func (this *Context) GetMatrix(mat *geom.Mat3x2)
- func (this *Context) GlyphExtents(glyphs []Glyph) *TextExtents
- func (this *Context) GroupTarget() *Surface
- func (this *Context) HasCurrentPoint() bool
- func (this *Context) InClip(x, y float64) bool
- func (this *Context) InFill(x, y float64) bool
- func (this *Context) InStroke(x, y float64) bool
- func (this *Context) Line(x0, y0, x1, y1 float64)
- func (this *Context) LineCap() LineCap
- func (this *Context) LineJoin() LineJoin
- func (this *Context) LineTo(x, y float64)
- func (this *Context) LineWidth() float64
- func (this *Context) Mask(p *Pattern)
- func (this *Context) MaskSurface(s *Surface, x, y float64)
- func (this *Context) MiterLimit() float64
- func (this *Context) MoveTo(x, y float64)
- func (this *Context) NewPath()
- func (this *Context) NewSubPath()
- func (this *Context) Operator() Operator
- func (this *Context) Paint()
- func (this *Context) PaintWithAlpha(alpha float64)
- func (this *Context) PathExtens() (x1, y1, x2, y2 float64)
- func (this *Context) PopGroup() *Pattern
- func (this *Context) PopGroupToSource()
- func (this *Context) PushGroup()
- func (this *Context) PushGroupWidthContent(c Content)
- func (this *Context) Rectangle(x, y, width, height float64)
- func (this *Context) RelCurveTo(x1, y1, x2, y2, x3, y3 float64)
- func (this *Context) RelLineTo(x, y float64)
- func (this *Context) RelMoveTo(x, y float64)
- func (this *Context) ResetClip()
- func (this *Context) ResetMatrix()
- func (this *Context) Restore()
- func (this *Context) Rotate(radians float64)
- func (this *Context) RoundRect(x, y, width, height, r float64)
- func (this *Context) Save()
- func (this *Context) Scale(sx, sy float64)
- func (this *Context) ScaledFont() *ScaledFont
- func (this *Context) SelectFontFace(family string, slant FontSlant, weight FontWeight)
- func (this *Context) SetAntialias(a Antialias)
- func (this *Context) SetDash(d Dash)
- func (this *Context) SetFillRule(rule FillRule)
- func (this *Context) SetFontFace(face *FontFace)
- func (this *Context) SetFontMatrix(mat *geom.Mat3x2)
- func (this *Context) SetFontOptions(options *FontOptions)
- func (this *Context) SetFontSize(size float64)
- func (this *Context) SetIdentityMatrix()
- func (this *Context) SetLineCap(c LineCap)
- func (this *Context) SetLineJoin(j LineJoin)
- func (this *Context) SetLineWidth(w float64)
- func (this *Context) SetMatrix(mat *geom.Mat3x2)
- func (this *Context) SetMiterLimit(v float64)
- func (this *Context) SetOperator(v Operator)
- func (this *Context) SetScaledFont(scaled_font *ScaledFont)
- func (this *Context) SetSource(p *Pattern)
- func (this *Context) SetSourceRGB(r, g, b float64)
- func (this *Context) SetSourceRGBA(r, g, b, a float64)
- func (this *Context) SetSourceSurface(s *Surface, x, y float64)
- func (this *Context) SetTolerance(v float64)
- func (this *Context) ShowGlyphs(glyphs []Glyph)
- func (this *Context) ShowGlyphs_hack(p unsafe.Pointer, n int)
- func (this *Context) ShowPage()
- func (this *Context) ShowText(text string)
- func (this *Context) Source() *Pattern
- func (this *Context) Status() Status
- func (this *Context) Stroke()
- func (this *Context) StrokeExtens() (x1, y1, x2, y2 float64)
- func (this *Context) StrokePreserve()
- func (this *Context) Target() *Surface
- func (this *Context) TextExtents(text string) *TextExtents
- func (this *Context) TextPath(s string)
- func (this *Context) Tolerance() float64
- func (this *Context) Transform(mat *geom.Mat3x2)
- func (this *Context) Translate(tx, ty float64)
- func (this *Context) UserToDevice(x, y float64) (x1, y1 float64)
- func (this *Context) UserToDeviceDistance(dx, dy float64) (dx1, dy1 float64)
- type Dash
- type Device
- type Extend
- type FillRule
- type Filter
- type FontExtents
- type FontFace
- type FontOptions
- func (this *FontOptions) Antialias() (antialias Antialias)
- func (this *FontOptions) Destroy()
- func (this *FontOptions) Dup() *FontOptions
- func (this *FontOptions) Equal(other *FontOptions) bool
- func (this *FontOptions) Hash() uint32
- func (this *FontOptions) HintMetrics() (v HintMetrics)
- func (this *FontOptions) HintStyle() (v HintStyle)
- func (this *FontOptions) Merge(other *FontOptions)
- func (this *FontOptions) SetAntialias(antialias Antialias)
- func (this *FontOptions) SetHintMetrics(v HintMetrics)
- func (this *FontOptions) SetHintStyle(v HintStyle)
- func (this *FontOptions) SetSubpixelOrder(order SubpixelOrder)
- func (this *FontOptions) Status() Status
- func (this *FontOptions) SubpixelOrder() (order SubpixelOrder)
- type FontSlant
- type FontType
- type FontWeight
- type Format
- type Glyph
- type HintMetrics
- type HintStyle
- type LineCap
- type LineJoin
- type Operator
- type Path
- type PathDataType
- type Pattern
- func (this *Pattern) AddColorStopRGB(offset, r, g, b float64)
- func (this *Pattern) AddColorStopRGBA(offset, r, g, b, a float64)
- func (this *Pattern) ColorStopCount() (count int32, err error)
- func (this *Pattern) ColorStopRGBA(index int) (offset, r, g, b, a float64, err error)
- func (this *Pattern) Destroy()
- func (this *Pattern) Extend() Extend
- func (this *Pattern) Filter() Filter
- func (this *Pattern) GetMatrix(mat *geom.Mat3x2)
- func (this *Pattern) LinearPoints() (x0, y0, x1, y1 float64, err error)
- func (this *Pattern) RGBA() (r, g, b, a float64, err error)
- func (this *Pattern) RadialCircles() (x0, y0, r0, x1, y1, r1 float64, err error)
- func (this *Pattern) SetExtend(ext Extend)
- func (this *Pattern) SetFilter(f Filter)
- func (this *Pattern) SetMatrix(mat *geom.Mat3x2)
- func (this *Pattern) Status() Status
- func (this *Pattern) Surfface() (s *Surface, err error)
- type Rectangle
- type RectangleInt
- type RectangleList
- type ScaledFont
- func (f *ScaledFont) Destroy()
- func (this *ScaledFont) FontExtents() *FontExtents
- func (this *ScaledFont) FontFace() *FontFace
- func (this *ScaledFont) FontOptions() *FontOptions
- func (this *ScaledFont) GetCtm(mat *geom.Mat3x2)
- func (this *ScaledFont) GetFontMatrix(mat *geom.Mat3x2)
- func (this *ScaledFont) GetScaleMatrix(mat *geom.Mat3x2)
- func (this *ScaledFont) GlyphExtents(glyphs []Glyph) *TextExtents
- func (this *ScaledFont) GlyphExtents_hack(p unsafe.Pointer, n int) *TextExtents
- func (this *ScaledFont) Status() Status
- func (this *ScaledFont) TextExtents(text string) *TextExtents
- func (this *ScaledFont) TextToGlyphs(x, y float64, text string) (ret []Glyph, err error)
- func (this *ScaledFont) TextToGlyphs_hack(x, y float64, text string, out func(buf unsafe.Pointer, num int)) error
- func (this *ScaledFont) Type() FontType
- type Status
- type SubpixelOrder
- type Surface
- func (this *Surface) Content() Content
- func (this *Surface) CopyPage()
- func (this *Surface) DataPtr() unsafe.Pointer
- func (this *Surface) Destroy()
- func (this *Surface) Device() *Device
- func (this *Surface) DeviceOffset() (x, y float64)
- func (this *Surface) Dup() *Surface
- func (this *Surface) DupGrayed() *Surface
- func (this *Surface) FallbackResolution() (xPpi, yPpi float64)
- func (this *Surface) Finish()
- func (this *Surface) Flush()
- func (this *Surface) FontOptions() *FontOptions
- func (this *Surface) Format() Format
- func (this *Surface) Height() int
- func (this *Surface) HeightF() float64
- func (this *Surface) Image() (image.Image, error)
- func (this *Surface) MarkDirty()
- func (this *Surface) MarkDirtyRectange(x, y, width, height int)
- func (this *Surface) NewContext() *Context
- func (this *Surface) NewSimilar(c Content, width, height int) *Surface
- func (this *Surface) NewSurfaceForRectangle(x, y, width, height float64) *Surface
- func (this *Surface) SetData(src []uint8) error
- func (this *Surface) SetDeviceOffset(x, y float64)
- func (this *Surface) SetFallbackResolution(xPpi, yPpi float64)
- func (this *Surface) SetImage(img image.Image) error
- func (this *Surface) ShowPage()
- func (this *Surface) Stride() int
- func (this *Surface) Type() SurfaceType
- func (this *Surface) Width() int
- func (this *Surface) WidthF() float64
- func (this *Surface) WritePNG(filename string) error
- func (this *Surface) WritePNGToStream(w io.Writer) error
- type SurfaceType
- type TextCluster
- type TextClusterFlags
- type TextExtents
Constants ¶
const ( FORMAT_INVALID Format = -1 FORMAT_ARGB32 = 0 FORMAT_RGB24 = 1 FORMAT_A8 = 2 FORMAT_A1 = 3 FORMAT_RGB16_565 = 4 FORMAT_RGB30 = 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Antialias ¶
type Antialias int
----------------------------------------------------------------
type Context ¶
func (*Context) AppendPath ¶
func (*Context) ArcNegative ¶
func (*Context) ClipBounds ¶
func (*Context) ClipPreserve ¶
func (this *Context) ClipPreserve()
func (*Context) CopyPathFlat ¶
func (*Context) CurrentPoint ¶
func (*Context) DeviceToUser ¶
func (*Context) DeviceToUserDistance ¶
func (*Context) FillExtens ¶
func (*Context) FillPreserve ¶
func (this *Context) FillPreserve()
func (*Context) FontExtents ¶
func (this *Context) FontExtents() *FontExtents
func (*Context) FontOptions ¶
func (this *Context) FontOptions() *FontOptions
func (*Context) GetFontMatrix ¶
func (*Context) GlyphExtents ¶
func (this *Context) GlyphExtents(glyphs []Glyph) *TextExtents
func (*Context) GroupTarget ¶
func (*Context) HasCurrentPoint ¶
func (*Context) MaskSurface ¶
func (*Context) MiterLimit ¶
func (*Context) NewSubPath ¶
func (this *Context) NewSubPath()
func (*Context) PaintWithAlpha ¶
func (*Context) PathExtens ¶
func (*Context) PopGroupToSource ¶
func (this *Context) PopGroupToSource()
func (*Context) PushGroupWidthContent ¶
func (*Context) RelCurveTo ¶
func (*Context) ResetMatrix ¶
func (this *Context) ResetMatrix()
func (*Context) ScaledFont ¶
func (this *Context) ScaledFont() *ScaledFont
func (*Context) SelectFontFace ¶
func (this *Context) SelectFontFace(family string, slant FontSlant, weight FontWeight)
func (*Context) SetAntialias ¶
func (*Context) SetFillRule ¶
func (*Context) SetFontFace ¶
func (*Context) SetFontMatrix ¶
func (*Context) SetFontOptions ¶
func (this *Context) SetFontOptions(options *FontOptions)
func (*Context) SetFontSize ¶
func (*Context) SetIdentityMatrix ¶
func (this *Context) SetIdentityMatrix()
func (*Context) SetLineCap ¶
func (*Context) SetLineJoin ¶
func (*Context) SetLineWidth ¶
func (*Context) SetMiterLimit ¶
func (*Context) SetOperator ¶
func (*Context) SetScaledFont ¶
func (this *Context) SetScaledFont(scaled_font *ScaledFont)
func (*Context) SetSourceRGB ¶
func (*Context) SetSourceRGBA ¶
func (*Context) SetSourceSurface ¶
func (*Context) SetTolerance ¶
func (*Context) ShowGlyphs ¶
func (*Context) StrokeExtens ¶
func (*Context) StrokePreserve ¶
func (this *Context) StrokePreserve()
func (*Context) TextExtents ¶
func (this *Context) TextExtents(text string) *TextExtents
func (*Context) UserToDevice ¶
func (*Context) UserToDeviceDistance ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
----------------------------------------------------------------
type FontExtents ¶
type FontExtents struct {
Ascent float64
Descent float64
Height float64
MaxXAdvance float64
MaxYAdvance float64
}
----------------------------------------------------------------
type FontFace ¶
type FontFace C.cairo_font_face_t
----------------------------------------------------------------
func NewToyFontFace ¶
func NewToyFontFace(family string, slant FontSlant, weight FontWeight) *FontFace
func (*FontFace) Weight ¶
func (this *FontFace) Weight() FontWeight
type FontOptions ¶
type FontOptions C.cairo_font_options_t
----------------------------------------------------------------
func NewFontOptions ¶
func NewFontOptions() *FontOptions
func (*FontOptions) Antialias ¶
func (this *FontOptions) Antialias() (antialias Antialias)
func (*FontOptions) Destroy ¶
func (this *FontOptions) Destroy()
func (*FontOptions) Dup ¶
func (this *FontOptions) Dup() *FontOptions
func (*FontOptions) Equal ¶
func (this *FontOptions) Equal(other *FontOptions) bool
func (*FontOptions) Hash ¶
func (this *FontOptions) Hash() uint32
func (*FontOptions) HintMetrics ¶
func (this *FontOptions) HintMetrics() (v HintMetrics)
func (*FontOptions) HintStyle ¶
func (this *FontOptions) HintStyle() (v HintStyle)
func (*FontOptions) Merge ¶
func (this *FontOptions) Merge(other *FontOptions)
func (*FontOptions) SetAntialias ¶
func (this *FontOptions) SetAntialias(antialias Antialias)
func (*FontOptions) SetHintMetrics ¶
func (this *FontOptions) SetHintMetrics(v HintMetrics)
func (*FontOptions) SetHintStyle ¶
func (this *FontOptions) SetHintStyle(v HintStyle)
func (*FontOptions) SetSubpixelOrder ¶
func (this *FontOptions) SetSubpixelOrder(order SubpixelOrder)
func (*FontOptions) Status ¶
func (this *FontOptions) Status() Status
func (*FontOptions) SubpixelOrder ¶
func (this *FontOptions) SubpixelOrder() (order SubpixelOrder)
type FontSlant ¶
type FontSlant int
----------------------------------------------------------------
type FontWeight ¶
type FontWeight int
----------------------------------------------------------------
const ( FONT_WEIGHT_NORMAL FontWeight = iota FONT_WEIGHT_BOLD )
type Glyph ¶
type Glyph struct {
A uint32 // unused for cairo, but use in lib/gui
X float64
Y float64
// contains filtered or unexported fields
}
// ----------------------------------------------------------------
type geom.Mat3x2 struct {
Xx, Yx, Xy, Yy, X0, Y0 float64
}
func (this *geom.Mat3x2) native() *C.cairo_matrix_t {
return (*C.cairo_matrix_t)(unsafe.Pointer(this))
}
func (this *geom.Mat3x2) Init(xx, yx, xy, yy, x0, y0 float64) {
C.cairo_matrix_init(this.native(),
C.double(xx), C.double(yx),
C.double(xy), C.double(yy),
C.double(x0), C.double(y0))
}
func (this *geom.Mat3x2) InitIdentity() {
C.cairo_matrix_init_identity(this.native())
}
func (this *geom.Mat3x2) InitTranslate(tx, ty float64) {
C.cairo_matrix_init_translate(this.native(), C.double(tx), C.double(ty))
}
func (this *geom.Mat3x2) InitScale(sx, sy float64) {
C.cairo_matrix_init_scale(this.native(), C.double(sx), C.double(sy))
}
func (this *geom.Mat3x2) InitRotate(radians float64) {
C.cairo_matrix_init_rotate(this.native(), C.double(radians))
}
func (this *geom.Mat3x2) Translate(tx, ty float64) {
C.cairo_matrix_translate(this.native(), C.double(tx), C.double(ty))
}
func (this *geom.Mat3x2) Scale(sx, sy float64) {
C.cairo_matrix_scale(this.native(), C.double(sx), C.double(sy))
}
func (this *geom.Mat3x2) Rotate(radians float64) {
C.cairo_matrix_rotate(this.native(), C.double(radians))
}
func (this *geom.Mat3x2) Invert() error {
st := Status(C.cairo_matrix_invert(this.native()))
if st != STATUS_SUCCESS {
return errors.New(st.String())
}
return nil
}
func Multiplygeom.Mat3x2(result, a, b *geom.Mat3x2) {
C.cairo_matrix_multiply(result.native(), a.native(), b.native())
}
func (this *geom.Mat3x2) TransformDistance(dx, dy float64) (dx1, dy1 float64) {
dx1 = dx
dy1 = dy
C.cairo_matrix_transform_distance(this.native(), (*C.double)(&dx1), (*C.double)(&dy1))
return
}
func (this *geom.Mat3x2) TransformPoint(x, y float64) (x1, y1 float64) {
x1 = x
y1 = y
C.cairo_matrix_transform_point(this.native(), (*C.double)(&x1), (*C.double)(&y1))
return
}
----------------------------------------------------------------
type HintMetrics ¶
type HintMetrics int
----------------------------------------------------------------
const ( HINT_METRICS_DEFAULT HintMetrics = iota HINT_METRICS_OFF HINT_METRICS_ON )
type HintStyle ¶
type HintStyle int
----------------------------------------------------------------
type Operator ¶
type Operator int
----------------------------------------------------------------
const ( OPERATOR_CLEAR Operator = 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 )
type Path ¶
type Path C.cairo_path_t
----------------------------------------------------------------
type PathDataType ¶
type PathDataType int
const ( PATH_MOVE_TO PathDataType = iota PATH_LINE_TO PATH_CURVE_TO PATH_CLOSE_PATH )
type Pattern ¶
type Pattern C.cairo_pattern_t
----------------------------------------------------------------
func NewLinearPattern ¶
func NewPatternForSurface ¶
func NewRGBAPattern ¶
func NewRGBPattern ¶
func NewRadialPattern ¶
func (*Pattern) AddColorStopRGB ¶
func (*Pattern) AddColorStopRGBA ¶
func (*Pattern) ColorStopCount ¶
func (*Pattern) ColorStopRGBA ¶
func (*Pattern) LinearPoints ¶
func (*Pattern) RadialCircles ¶
type Rectangle ¶
type Rectangle struct {
X, Y, Width, Height float64
}
----------------------------------------------------------------
type RectangleInt ¶
type RectangleInt struct {
X, Y, Width, Height int32
}
----------------------------------------------------------------
type RectangleList ¶
type RectangleList struct {
// contains filtered or unexported fields
}
----------------------------------------------------------------
type ScaledFont ¶
type ScaledFont C.cairo_scaled_font_t
----------------------------------------------------------------
func NewScaledFont ¶
func NewScaledFont(face *FontFace, matrix, ctm *geom.Mat3x2, options *FontOptions) *ScaledFont
func (*ScaledFont) Destroy ¶
func (f *ScaledFont) Destroy()
func (*ScaledFont) FontExtents ¶
func (this *ScaledFont) FontExtents() *FontExtents
func (*ScaledFont) FontFace ¶
func (this *ScaledFont) FontFace() *FontFace
func (*ScaledFont) FontOptions ¶
func (this *ScaledFont) FontOptions() *FontOptions
func (*ScaledFont) GetCtm ¶
func (this *ScaledFont) GetCtm(mat *geom.Mat3x2)
func (*ScaledFont) GetFontMatrix ¶
func (this *ScaledFont) GetFontMatrix(mat *geom.Mat3x2)
func (*ScaledFont) GetScaleMatrix ¶
func (this *ScaledFont) GetScaleMatrix(mat *geom.Mat3x2)
func (*ScaledFont) GlyphExtents ¶
func (this *ScaledFont) GlyphExtents(glyphs []Glyph) *TextExtents
func (*ScaledFont) GlyphExtents_hack ¶
func (this *ScaledFont) GlyphExtents_hack(p unsafe.Pointer, n int) *TextExtents
func (*ScaledFont) Status ¶
func (this *ScaledFont) Status() Status
func (*ScaledFont) TextExtents ¶
func (this *ScaledFont) TextExtents(text string) *TextExtents
func (*ScaledFont) TextToGlyphs ¶
func (this *ScaledFont) TextToGlyphs(x, y float64, text string) (ret []Glyph, err error)
func (*ScaledFont) TextToGlyphs_hack ¶
func (*ScaledFont) Type ¶
func (this *ScaledFont) Type() FontType
type Status ¶
type Status int32
----------------------------------------------------------------
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 STATUS_INVALID_MESH_CONSTRUCTION STATUS_DEVICE_FINISHED STATUS_LAST_STATUS )
type SubpixelOrder ¶
type SubpixelOrder int
----------------------------------------------------------------
const ( SUBPIXEL_ORDER_DEFAULT SubpixelOrder = iota SUBPIXEL_ORDER_RGB SUBPIXEL_ORDER_BGR SUBPIXEL_ORDER_VRGB SUBPIXEL_ORDER_VBGR )
type Surface ¶
type Surface C.cairo_surface_t
----------------------------------------------------------------
func NewImageSurface ¶
func NewImageSurfaceFromPNG ¶
func (*Surface) DeviceOffset ¶
func (*Surface) FallbackResolution ¶
func (*Surface) FontOptions ¶
func (this *Surface) FontOptions() *FontOptions
func (*Surface) MarkDirtyRectange ¶
func (*Surface) NewContext ¶
func (*Surface) NewSurfaceForRectangle ¶
func (*Surface) SetDeviceOffset ¶
func (*Surface) SetFallbackResolution ¶
func (*Surface) Type ¶
func (this *Surface) Type() SurfaceType
type SurfaceType ¶
type SurfaceType int
----------------------------------------------------------------
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 SURFACE_TYPE_COGL // 1.12 )
func (SurfaceType) String ¶
func (v SurfaceType) String() string
type TextCluster ¶
type TextCluster struct {
// contains filtered or unexported fields
}
----------------------------------------------------------------
type TextClusterFlags ¶
type TextClusterFlags int
----------------------------------------------------------------
const (
TEXT_CLUSTER_FLAG_BACKWARD TextClusterFlags = 1
)