Versions in this module Expand all Collapse all v0 v0.4.0 Feb 13, 2020 Changes in this version + const ATTR_INDEX_FROM_TEXT_BEGINNING + const ATTR_INDEX_TO_TEXT_END + const PANGO_SCALE + const SCALE + func AddFont(fontPath string) + func CairoErrorUnderlinePath(cr *cairo.Context, x, y, width, height float64) + func CairoGlyphStringPath(cr *cairo.Context, font *Font, glyphs *GlyphString) + func CairoLayoutLinePath(cr *cairo.Context, line *LayoutLine) + func CairoLayoutPath(cr *cairo.Context, layout *Layout) + func CairoShowGlyphItem(cr *cairo.Context, text string, glyph_item *GlyphItem) + func CairoShowGlyphString(cr *cairo.Context, font *Font, glyphs *GlyphString) + func CairoShowLayout(cr *cairo.Context, layout *Layout) + func CairoShowLayoutLine(cr *cairo.Context, line *LayoutLine) + func CairoUpdateLayout(cr *cairo.Context, v *Layout) + func GravityToRotation(gravity Gravity) float64 + type Alignment int + const ALIGN_CENTER + const ALIGN_LEFT + const ALIGN_RIGHT + type AttrClass struct + type AttrColor struct + type AttrFloat struct + type AttrFontDesc struct + type AttrInt struct + type AttrLanguage struct + type AttrList struct + func (v *AttrList) Native() uintptr + type AttrShape struct + type AttrSize struct + type AttrString struct + type AttrType int + const ATTR_ABSOLUTE_SIZE + const ATTR_BACKGROUND + const ATTR_FALLBACK + const ATTR_FAMILY + const ATTR_FONT_DESC + const ATTR_FOREGROUND + const ATTR_GRAVITY + const ATTR_GRAVITY_HINT + const ATTR_INVALID + const ATTR_LANGUAGE + const ATTR_LETTER_SPACING + const ATTR_RISE + const ATTR_SCALE + const ATTR_SHAPE + const ATTR_SIZE + const ATTR_STRETCH + const ATTR_STRIKETHROUGH + const ATTR_STRIKETHROUGH_COLOR + const ATTR_STYLE + const ATTR_UNDERLINE + const ATTR_UNDERLINE_COLOR + const ATTR_VARIANT + const ATTR_WEIGHT + type Attribute struct + func (v *Attribute) Native() uintptr + type Color struct + func (v *Color) Copy(c *Color) *Color + func (v *Color) Free() + func (v *Color) Get() (red, green, blue uint16) + func (v *Color) Native() uintptr + func (v *Color) Parse(spec string) bool + func (v *Color) Set(red, green, blue uint16) + func (v *Color) ToString() string + type Context struct + func CairoCreateContext(cr *cairo.Context) *Context + func ContextNew() *Context + func WrapContext(p uintptr) *Context + func (v *Context) Native() uintptr + type EllipsizeMode int + const ELLIPSIZE_END + const ELLIPSIZE_MIDDLE + const ELLIPSIZE_NONE + const ELLIPSIZE_START + type EngineLang struct + func (v *EngineLang) Native() uintptr + type EngineShape struct + func (v *EngineShape) Native() uintptr + type Font struct + func (v *Font) Native() uintptr + type FontDescription struct + func FontDescriptionFromString(str string) *FontDescription + func FontDescriptionNew() *FontDescription + func (v *FontDescription) BetterMatch(old_match, new_match *FontDescription) bool + func (v *FontDescription) Copy() *FontDescription + func (v *FontDescription) CopyStatic() *FontDescription + func (v *FontDescription) Equal(v2 *FontDescription) bool + func (v *FontDescription) Free() + func (v *FontDescription) GetFamily() string + func (v *FontDescription) GetGravity() Gravity + func (v *FontDescription) GetSetFields() FontMask + func (v *FontDescription) GetSize() int + func (v *FontDescription) GetSizeIsAbsolute() bool + func (v *FontDescription) GetStretch() Stretch + func (v *FontDescription) GetStyle() Style + func (v *FontDescription) GetUnsetFields(to_unset FontMask) + func (v *FontDescription) GetWeight() Weight + func (v *FontDescription) Hash() uint + func (v *FontDescription) Merge(desc_to_merge *FontDescription, replace_existing bool) + func (v *FontDescription) MergeStatic(desc_to_merge *FontDescription, replace_existing bool) + func (v *FontDescription) Native() uintptr + func (v *FontDescription) SetAbsoluteSize(size float64) + func (v *FontDescription) SetFamily(family string) + func (v *FontDescription) SetFamilyStatic(family string) + func (v *FontDescription) SetGravity(gravity Gravity) + func (v *FontDescription) SetSize(size int) + func (v *FontDescription) SetStretch(stretch Stretch) + func (v *FontDescription) SetStyle(style Style) + func (v *FontDescription) SetWeight(weight Weight) + func (v *FontDescription) ToFilename() string + func (v *FontDescription) ToString() string + type FontMap struct + func WrapFontMap(p uintptr) *FontMap + func (v *FontMap) Native() uintptr + type FontMask int + const FONT_MASK_FAMILY + const FONT_MASK_GRAVITYFontMask + const FONT_MASK_SIZEFontMask + const FONT_MASK_STRETCHFontMask + const FONT_MASK_STYLEFontMask + const FONT_MASK_VARIANTFontMask + const FONT_MASK_WEIGHTFontMask + type FontMetrics struct + func (v *FontMetrics) Native() uintptr + type Glyph uint32 + type GlyphGeometry struct + func (v *GlyphGeometry) Native() uintptr + type GlyphInfo struct + func (v *GlyphInfo) Native() uintptr + type GlyphItem struct + func (v *GlyphItem) Native() uintptr + type GlyphString struct + func (v *GlyphString) Native() uintptr + type GlyphVisAttr struct + func (v *GlyphVisAttr) Native() uintptr + type Gravity int + const GRAVITY_AUTO + const GRAVITY_EAST + const GRAVITY_NORTH + const GRAVITY_SOUTH + const GRAVITY_WEST + type GravityHint int + const GRAVITY_HINT_LINE + const GRAVITY_HINT_NATURAL + const GRAVITY_HINT_STRONG + type Layout struct + func CairoCreateLayout(cr *cairo.Context) *Layout + func LayoutNew(context *Context) *Layout + func WrapLayout(p uintptr) *Layout + func (v *Layout) Copy() *Layout + func (v *Layout) GetAttributes() *AttrList + func (v *Layout) GetCharacterCount() int + func (v *Layout) GetContext() *Context + func (v *Layout) GetFontDescription() *FontDescription + func (v *Layout) GetHeight() int + func (v *Layout) GetIndent() int + func (v *Layout) GetSize() (int, int) + func (v *Layout) GetText() string + func (v *Layout) GetWidth() int + func (v *Layout) GetWrap() WrapMode + func (v *Layout) IsWrapped() bool + func (v *Layout) Native() uintptr + func (v *Layout) SetAttributes(attrs *AttrList) + func (v *Layout) SetFontDescription(desc *FontDescription) + func (v *Layout) SetHeight(width int) + func (v *Layout) SetIndent(indent int) + func (v *Layout) SetMarkup(text string, length int) + func (v *Layout) SetText(text string, length int) + func (v *Layout) SetWidth(width int) + func (v *Layout) SetWrap(wrap WrapMode) + type LayoutLine struct + func (v *LayoutLine) Native() uintptr + type LogAttr struct + func (v *LogAttr) Native() uintptr + type Rectangle struct + func RectangleNew(x, y, width, height int) *Rectangle + func (inclusive *Rectangle) ExtentsToPixels(nearest *Rectangle) + func (v *Rectangle) Native() uintptr + type Scale float64 + const SCALE_LARGE + const SCALE_MEDIUM + const SCALE_SMALL + const SCALE_XX_LARGE + const SCALE_XX_SMALL + const SCALE_X_LARGE + const SCALE_X_SMALL + type Stretch int + const STRETCH_CONDENSEDStretch + const STRETCH_EXPANDEDStretch + const STRETCH_EXTRA_CONDENSEDStretch + const STRETCH_EXTRA_EXPANDEDStretch + const STRETCH_NORMALStretch + const STRETCH_SEMI_CONDENSEDStretch + const STRETCH_SEMI_EXPANDEDStretch + const STRETCH_ULTRA_CONDENSED + const STRETCH_ULTRA_EXPANDEDStretch + type Style int + const STYLE_ITALIC + const STYLE_NORMAL + const STYLE_OBLIQUE + type Underline int + const UNDERLINE_DOUBLE + const UNDERLINE_ERROR + const UNDERLINE_LOW + const UNDERLINE_NONE + const UNDERLINE_SINGLE + type Variant int + const VARIANT_NORMAL + const VARIANT_SMALL_CAPS + type Weight int + const WEIGHT_BOLD + const WEIGHT_BOOK + const WEIGHT_HEAVY + const WEIGHT_LIGHT + const WEIGHT_MEDIUM + const WEIGHT_NORMAL + const WEIGHT_SEMIBOLD + const WEIGHT_SEMILIGHT + const WEIGHT_THIN + const WEIGHT_ULTRABOLD + const WEIGHT_ULTRAHEAVY + const WEIGHT_ULTRALIGHT + type WrapMode int + const WRAP_CHAR + const WRAP_WORD + const WRAP_WORD_CHAR