Documentation
¶
Index ¶
- Constants
- func FindParagraphBoundary(text string, length int32) (int32, int32)
- func GetMirrorChar(ch rune, mirroredCh rune) bool
- func Itemize(context *Context, text string, startIndex int32, length int32, attrs *AttrList, ...) *glib.List
- func ReorderItems(logicalItems *glib.List) *glib.List
- func SplitFileList(str string) []string
- func TrimString(str string) string
- type Alignment
- type Analysis
- type AttrClass
- type AttrColor
- type AttrFloat
- type AttrFontDesc
- type AttrInt
- type AttrIterator
- func (recv *AttrIterator) Copy() *AttrIterator
- func (recv *AttrIterator) Destroy()
- func (recv *AttrIterator) Equals(other *AttrIterator) bool
- func (recv *AttrIterator) Get(type_ AttrType) *Attribute
- func (recv *AttrIterator) GetFont(desc *FontDescription, language *Language, extraAttrs *glib.SList)
- func (recv *AttrIterator) Next() bool
- func (recv *AttrIterator) Range() (int32, int32)
- func (recv *AttrIterator) ToC() unsafe.Pointer
- type AttrLanguage
- type AttrList
- func (recv *AttrList) Change(attr *Attribute)
- func (recv *AttrList) Copy() *AttrList
- func (recv *AttrList) Equals(other *AttrList) bool
- func (recv *AttrList) GetIterator() *AttrIterator
- func (recv *AttrList) Insert(attr *Attribute)
- func (recv *AttrList) InsertBefore(attr *Attribute)
- func (recv *AttrList) Splice(other *AttrList, pos int32, len int32)
- func (recv *AttrList) ToC() unsafe.Pointer
- func (recv *AttrList) Unref()
- type AttrShape
- type AttrSize
- type AttrString
- type AttrType
- type Attribute
- func AttrBackgroundNew(red uint16, green uint16, blue uint16) *Attribute
- func AttrFamilyNew(family string) *Attribute
- func AttrFontDescNew(desc *FontDescription) *Attribute
- func AttrForegroundNew(red uint16, green uint16, blue uint16) *Attribute
- func AttrLanguageNew(language *Language) *Attribute
- func AttrRiseNew(rise int32) *Attribute
- func AttrScaleNew(scaleFactor float64) *Attribute
- func AttrShapeNew(inkRect *Rectangle, logicalRect *Rectangle) *Attribute
- func AttrSizeNew(size int32) *Attribute
- func AttrStretchNew(stretch Stretch) *Attribute
- func AttrStrikethroughNew(strikethrough bool) *Attribute
- func AttrStyleNew(style Style) *Attribute
- func AttrUnderlineNew(underline Underline) *Attribute
- func AttrVariantNew(variant Variant) *Attribute
- func AttrWeightNew(weight Weight) *Attribute
- func AttributeNewFromC(u unsafe.Pointer) *Attribute
- type Color
- type Context
- func (recv *Context) Equals(other *Context) bool
- func (recv *Context) GetBaseDir() Direction
- func (recv *Context) GetFontDescription() *FontDescription
- func (recv *Context) GetLanguage() *Language
- func (recv *Context) GetMetrics(desc *FontDescription, language *Language) *FontMetrics
- func (recv *Context) LoadFont(desc *FontDescription) *Font
- func (recv *Context) LoadFontset(desc *FontDescription, language *Language) *Fontset
- func (recv *Context) Object() *gobject.Object
- func (recv *Context) SetBaseDir(direction Direction)
- func (recv *Context) SetFontDescription(desc *FontDescription)
- func (recv *Context) SetFontMap(fontMap *FontMap)
- func (recv *Context) SetLanguage(language *Language)
- func (recv *Context) ToC() unsafe.Pointer
- type ContextClass
- type Coverage
- func (recv *Coverage) Copy() *Coverage
- func (recv *Coverage) Equals(other *Coverage) bool
- func (recv *Coverage) Get(index int32) CoverageLevel
- func (recv *Coverage) Max(other *Coverage)
- func (recv *Coverage) Ref() *Coverage
- func (recv *Coverage) Set(index int32, level CoverageLevel)
- func (recv *Coverage) ToC() unsafe.Pointer
- func (recv *Coverage) Unref()
- type CoverageLevel
- type Direction
- type EllipsizeMode
- type EngineLang
- type EngineShape
- type Font
- func (recv *Font) Describe() *FontDescription
- func (recv *Font) Equals(other *Font) bool
- func (recv *Font) FindShaper(language *Language, ch uint32) *EngineShape
- func (recv *Font) GetCoverage(language *Language) *Coverage
- func (recv *Font) GetGlyphExtents(glyph Glyph) (*Rectangle, *Rectangle)
- func (recv *Font) GetMetrics(language *Language) *FontMetrics
- func (recv *Font) Object() *gobject.Object
- func (recv *Font) ToC() unsafe.Pointer
- type FontDescription
- func (recv *FontDescription) BetterMatch(oldMatch *FontDescription, newMatch *FontDescription) bool
- func (recv *FontDescription) Copy() *FontDescription
- func (recv *FontDescription) CopyStatic() *FontDescription
- func (recv *FontDescription) Equal(desc2 *FontDescription) bool
- func (recv *FontDescription) Equals(other *FontDescription) bool
- func (recv *FontDescription) Free()
- func (recv *FontDescription) GetFamily() string
- func (recv *FontDescription) GetSetFields() FontMask
- func (recv *FontDescription) GetSize() int32
- func (recv *FontDescription) GetStretch() Stretch
- func (recv *FontDescription) GetStyle() Style
- func (recv *FontDescription) GetVariant() Variant
- func (recv *FontDescription) GetWeight() Weight
- func (recv *FontDescription) Hash() uint32
- func (recv *FontDescription) Merge(descToMerge *FontDescription, replaceExisting bool)
- func (recv *FontDescription) MergeStatic(descToMerge *FontDescription, replaceExisting bool)
- func (recv *FontDescription) SetFamily(family string)
- func (recv *FontDescription) SetFamilyStatic(family string)
- func (recv *FontDescription) SetSize(size int32)
- func (recv *FontDescription) SetStretch(stretch Stretch)
- func (recv *FontDescription) SetStyle(style Style)
- func (recv *FontDescription) SetVariant(variant Variant)
- func (recv *FontDescription) SetWeight(weight Weight)
- func (recv *FontDescription) ToC() unsafe.Pointer
- func (recv *FontDescription) ToFilename() string
- func (recv *FontDescription) ToString() string
- func (recv *FontDescription) UnsetFields(toUnset FontMask)
- type FontFace
- type FontFamily
- type FontMap
- func (recv *FontMap) Equals(other *FontMap) bool
- func (recv *FontMap) LoadFont(context *Context, desc *FontDescription) *Font
- func (recv *FontMap) LoadFontset(context *Context, desc *FontDescription, language *Language) *Fontset
- func (recv *FontMap) Object() *gobject.Object
- func (recv *FontMap) ToC() unsafe.Pointer
- type FontMask
- type FontMetrics
- func (recv *FontMetrics) Equals(other *FontMetrics) bool
- func (recv *FontMetrics) GetApproximateCharWidth() int32
- func (recv *FontMetrics) GetApproximateDigitWidth() int32
- func (recv *FontMetrics) GetAscent() int32
- func (recv *FontMetrics) GetDescent() int32
- func (recv *FontMetrics) Ref() *FontMetrics
- func (recv *FontMetrics) ToC() unsafe.Pointer
- func (recv *FontMetrics) Unref()
- type Fontset
- type Glyph
- type GlyphGeometry
- type GlyphInfo
- type GlyphItem
- type GlyphUnit
- type GlyphVisAttr
- type Item
- type Language
- type Layout
- func (recv *Layout) ContextChanged()
- func (recv *Layout) Copy() *Layout
- func (recv *Layout) Equals(other *Layout) bool
- func (recv *Layout) GetAlignment() Alignment
- func (recv *Layout) GetAttributes() *AttrList
- func (recv *Layout) GetContext() *Context
- func (recv *Layout) GetCursorPos(index int32) (*Rectangle, *Rectangle)
- func (recv *Layout) GetExtents() (*Rectangle, *Rectangle)
- func (recv *Layout) GetIndent() int32
- func (recv *Layout) GetJustify() bool
- func (recv *Layout) GetLine(line int32) *LayoutLine
- func (recv *Layout) GetLineCount() int32
- func (recv *Layout) GetLines() *glib.SList
- func (recv *Layout) GetPixelExtents() (*Rectangle, *Rectangle)
- func (recv *Layout) GetPixelSize() (int32, int32)
- func (recv *Layout) GetSingleParagraphMode() bool
- func (recv *Layout) GetSize() (int32, int32)
- func (recv *Layout) GetSpacing() int32
- func (recv *Layout) GetTabs() *TabArray
- func (recv *Layout) GetText() string
- func (recv *Layout) GetWidth() int32
- func (recv *Layout) GetWrap() WrapMode
- func (recv *Layout) IndexToLineX(index int32, trailing bool) (int32, int32)
- func (recv *Layout) IndexToPos(index int32) *Rectangle
- func (recv *Layout) MoveCursorVisually(strong bool, oldIndex int32, oldTrailing int32, direction int32) (int32, int32)
- func (recv *Layout) Object() *gobject.Object
- func (recv *Layout) SetAlignment(alignment Alignment)
- func (recv *Layout) SetAttributes(attrs *AttrList)
- func (recv *Layout) SetFontDescription(desc *FontDescription)
- func (recv *Layout) SetIndent(indent int32)
- func (recv *Layout) SetJustify(justify bool)
- func (recv *Layout) SetMarkup(markup string, length int32)
- func (recv *Layout) SetSingleParagraphMode(setting bool)
- func (recv *Layout) SetSpacing(spacing int32)
- func (recv *Layout) SetTabs(tabs *TabArray)
- func (recv *Layout) SetText(text string, length int32)
- func (recv *Layout) SetWidth(width int32)
- func (recv *Layout) SetWrap(wrap WrapMode)
- func (recv *Layout) ToC() unsafe.Pointer
- func (recv *Layout) XyToIndex(x int32, y int32) (bool, int32, int32)
- type LayoutClass
- type LayoutLine
- func (recv *LayoutLine) Equals(other *LayoutLine) bool
- func (recv *LayoutLine) GetExtents() (*Rectangle, *Rectangle)
- func (recv *LayoutLine) GetPixelExtents() (*Rectangle, *Rectangle)
- func (recv *LayoutLine) IndexToX(index int32, trailing bool) int32
- func (recv *LayoutLine) ToC() unsafe.Pointer
- func (recv *LayoutLine) Unref()
- func (recv *LayoutLine) XToIndex(xPos int32) (bool, int32, int32)
- type LayoutRun
- type LogAttr
- type Rectangle
- type RendererPrivate
- type Script
- type ScriptIter
- type Stretch
- type Style
- type TabAlign
- type TabArray
- func (recv *TabArray) Copy() *TabArray
- func (recv *TabArray) Equals(other *TabArray) bool
- func (recv *TabArray) Free()
- func (recv *TabArray) GetPositionsInPixels() bool
- func (recv *TabArray) GetSize() int32
- func (recv *TabArray) GetTab(tabIndex int32) (TabAlign, int32)
- func (recv *TabArray) Resize(newSize int32)
- func (recv *TabArray) SetTab(tabIndex int32, alignment TabAlign, location int32)
- func (recv *TabArray) ToC() unsafe.Pointer
- type Underline
- type Variant
- type Weight
- type WrapMode
Constants ¶
const SCALE int32 = C.PANGO_SCALE
Variables ¶
This section is empty.
Functions ¶
func FindParagraphBoundary ¶
FindParagraphBoundary is a wrapper around the C function pango_find_paragraph_boundary.
func GetMirrorChar ¶
GetMirrorChar is a wrapper around the C function pango_get_mirror_char.
func Itemize ¶
func Itemize(context *Context, text string, startIndex int32, length int32, attrs *AttrList, cachedIter *AttrIterator) *glib.List
Itemize is a wrapper around the C function pango_itemize.
func ReorderItems ¶
ReorderItems is a wrapper around the C function pango_reorder_items.
func SplitFileList ¶ added in v0.0.6
SplitFileList is a wrapper around the C function pango_split_file_list.
func TrimString ¶
TrimString is a wrapper around the C function pango_trim_string.
Types ¶
type Alignment ¶
type Alignment C.PangoAlignment
type Analysis ¶
type Analysis struct { // shape_engine : record // lang_engine : record // font : record Level uint8 Gravity uint8 Flags uint8 Script uint8 // contains filtered or unexported fields }
Analysis is a wrapper around the C record PangoAnalysis.
func AnalysisNewFromC ¶
type AttrClass ¶
type AttrClass struct { Type AttrType // contains filtered or unexported fields }
AttrClass is a wrapper around the C record PangoAttrClass.
func AttrClassNewFromC ¶
type AttrColor ¶
type AttrColor struct {
// contains filtered or unexported fields
}
AttrColor is a wrapper around the C record PangoAttrColor.
func AttrColorNewFromC ¶
type AttrFloat ¶
type AttrFloat struct { // attr : record Value float64 // contains filtered or unexported fields }
AttrFloat is a wrapper around the C record PangoAttrFloat.
func AttrFloatNewFromC ¶
type AttrFontDesc ¶
type AttrFontDesc struct {
// contains filtered or unexported fields
}
AttrFontDesc is a wrapper around the C record PangoAttrFontDesc.
func AttrFontDescNewFromC ¶
func AttrFontDescNewFromC(u unsafe.Pointer) *AttrFontDesc
func (*AttrFontDesc) Equals ¶ added in v0.0.2
func (recv *AttrFontDesc) Equals(other *AttrFontDesc) bool
Equals compares this AttrFontDesc with another AttrFontDesc, and returns true if they represent the same GObject.
func (*AttrFontDesc) ToC ¶
func (recv *AttrFontDesc) ToC() unsafe.Pointer
type AttrInt ¶
type AttrInt struct { // attr : record Value int32 // contains filtered or unexported fields }
AttrInt is a wrapper around the C record PangoAttrInt.
func AttrIntNewFromC ¶
type AttrIterator ¶
type AttrIterator struct {
// contains filtered or unexported fields
}
AttrIterator is a wrapper around the C record PangoAttrIterator.
func AttrIteratorNewFromC ¶
func AttrIteratorNewFromC(u unsafe.Pointer) *AttrIterator
func (*AttrIterator) Copy ¶
func (recv *AttrIterator) Copy() *AttrIterator
Copy is a wrapper around the C function pango_attr_iterator_copy.
func (*AttrIterator) Destroy ¶
func (recv *AttrIterator) Destroy()
Destroy is a wrapper around the C function pango_attr_iterator_destroy.
func (*AttrIterator) Equals ¶ added in v0.0.2
func (recv *AttrIterator) Equals(other *AttrIterator) bool
Equals compares this AttrIterator with another AttrIterator, and returns true if they represent the same GObject.
func (*AttrIterator) Get ¶
func (recv *AttrIterator) Get(type_ AttrType) *Attribute
Get is a wrapper around the C function pango_attr_iterator_get.
func (*AttrIterator) GetFont ¶
func (recv *AttrIterator) GetFont(desc *FontDescription, language *Language, extraAttrs *glib.SList)
GetFont is a wrapper around the C function pango_attr_iterator_get_font.
func (*AttrIterator) Next ¶
func (recv *AttrIterator) Next() bool
Next is a wrapper around the C function pango_attr_iterator_next.
func (*AttrIterator) Range ¶
func (recv *AttrIterator) Range() (int32, int32)
Range is a wrapper around the C function pango_attr_iterator_range.
func (*AttrIterator) ToC ¶
func (recv *AttrIterator) ToC() unsafe.Pointer
type AttrLanguage ¶
type AttrLanguage struct {
// contains filtered or unexported fields
}
AttrLanguage is a wrapper around the C record PangoAttrLanguage.
func AttrLanguageNewFromC ¶
func AttrLanguageNewFromC(u unsafe.Pointer) *AttrLanguage
func (*AttrLanguage) Equals ¶ added in v0.0.2
func (recv *AttrLanguage) Equals(other *AttrLanguage) bool
Equals compares this AttrLanguage with another AttrLanguage, and returns true if they represent the same GObject.
func (*AttrLanguage) ToC ¶
func (recv *AttrLanguage) ToC() unsafe.Pointer
type AttrList ¶
type AttrList struct {
// contains filtered or unexported fields
}
AttrList is a wrapper around the C record PangoAttrList.
func AttrListNew ¶
func AttrListNew() *AttrList
AttrListNew is a wrapper around the C function pango_attr_list_new.
func AttrListNewFromC ¶
func ParseMarkup ¶
func ParseMarkup(markupText string, length int32, accelMarker rune) (bool, *AttrList, string, rune, error)
ParseMarkup is a wrapper around the C function pango_parse_markup.
func (*AttrList) Equals ¶ added in v0.0.2
Equals compares this AttrList with another AttrList, and returns true if they represent the same GObject.
func (*AttrList) GetIterator ¶
func (recv *AttrList) GetIterator() *AttrIterator
GetIterator is a wrapper around the C function pango_attr_list_get_iterator.
func (*AttrList) InsertBefore ¶
InsertBefore is a wrapper around the C function pango_attr_list_insert_before.
type AttrShape ¶
type AttrShape struct { // attr : record // ink_rect : record // logical_rect : record Data uintptr // contains filtered or unexported fields }
AttrShape is a wrapper around the C record PangoAttrShape.
func AttrShapeNewFromC ¶
type AttrSize ¶
type AttrSize struct { // attr : record Size int32 // contains filtered or unexported fields }
AttrSize is a wrapper around the C record PangoAttrSize.
func AttrSizeNewFromC ¶
type AttrString ¶
type AttrString struct { // attr : record Value string // contains filtered or unexported fields }
AttrString is a wrapper around the C record PangoAttrString.
func AttrStringNewFromC ¶
func AttrStringNewFromC(u unsafe.Pointer) *AttrString
func (*AttrString) Equals ¶ added in v0.0.2
func (recv *AttrString) Equals(other *AttrString) bool
Equals compares this AttrString with another AttrString, and returns true if they represent the same GObject.
func (*AttrString) ToC ¶
func (recv *AttrString) ToC() unsafe.Pointer
type AttrType ¶
type AttrType C.PangoAttrType
const ( PANGO_ATTR_INVALID AttrType = 0 PANGO_ATTR_LANGUAGE AttrType = 1 PANGO_ATTR_FAMILY AttrType = 2 PANGO_ATTR_STYLE AttrType = 3 PANGO_ATTR_WEIGHT AttrType = 4 PANGO_ATTR_VARIANT AttrType = 5 PANGO_ATTR_STRETCH AttrType = 6 PANGO_ATTR_SIZE AttrType = 7 PANGO_ATTR_FONT_DESC AttrType = 8 PANGO_ATTR_FOREGROUND AttrType = 9 PANGO_ATTR_BACKGROUND AttrType = 10 PANGO_ATTR_UNDERLINE AttrType = 11 PANGO_ATTR_STRIKETHROUGH AttrType = 12 PANGO_ATTR_RISE AttrType = 13 PANGO_ATTR_SHAPE AttrType = 14 PANGO_ATTR_SCALE AttrType = 15 PANGO_ATTR_FALLBACK AttrType = 16 PANGO_ATTR_LETTER_SPACING AttrType = 17 PANGO_ATTR_UNDERLINE_COLOR AttrType = 18 PANGO_ATTR_STRIKETHROUGH_COLOR AttrType = 19 PANGO_ATTR_ABSOLUTE_SIZE AttrType = 20 PANGO_ATTR_GRAVITY AttrType = 21 PANGO_ATTR_GRAVITY_HINT AttrType = 22 PANGO_ATTR_FONT_FEATURES AttrType = 23 PANGO_ATTR_FOREGROUND_ALPHA AttrType = 24 PANGO_ATTR_BACKGROUND_ALPHA AttrType = 25 )
func AttrTypeRegister ¶
AttrTypeRegister is a wrapper around the C function pango_attr_type_register.
type Attribute ¶
type Attribute struct { // klass : record StartIndex uint32 EndIndex uint32 // contains filtered or unexported fields }
Attribute is a wrapper around the C record PangoAttribute.
func AttrBackgroundNew ¶
AttrBackgroundNew is a wrapper around the C function pango_attr_background_new.
func AttrFamilyNew ¶
AttrFamilyNew is a wrapper around the C function pango_attr_family_new.
func AttrFontDescNew ¶ added in v0.0.3
func AttrFontDescNew(desc *FontDescription) *Attribute
AttrFontDescNew is a wrapper around the C function pango_attr_font_desc_new.
func AttrForegroundNew ¶
AttrForegroundNew is a wrapper around the C function pango_attr_foreground_new.
func AttrLanguageNew ¶ added in v0.0.3
AttrLanguageNew is a wrapper around the C function pango_attr_language_new.
func AttrRiseNew ¶
AttrRiseNew is a wrapper around the C function pango_attr_rise_new.
func AttrScaleNew ¶
AttrScaleNew is a wrapper around the C function pango_attr_scale_new.
func AttrShapeNew ¶ added in v0.0.3
AttrShapeNew is a wrapper around the C function pango_attr_shape_new.
func AttrSizeNew ¶ added in v0.0.3
AttrSizeNew is a wrapper around the C function pango_attr_size_new.
func AttrStretchNew ¶
AttrStretchNew is a wrapper around the C function pango_attr_stretch_new.
func AttrStrikethroughNew ¶
AttrStrikethroughNew is a wrapper around the C function pango_attr_strikethrough_new.
func AttrStyleNew ¶
AttrStyleNew is a wrapper around the C function pango_attr_style_new.
func AttrUnderlineNew ¶
AttrUnderlineNew is a wrapper around the C function pango_attr_underline_new.
func AttrVariantNew ¶
AttrVariantNew is a wrapper around the C function pango_attr_variant_new.
func AttrWeightNew ¶
AttrWeightNew is a wrapper around the C function pango_attr_weight_new.
func AttributeNewFromC ¶
func (*Attribute) Destroy ¶
func (recv *Attribute) Destroy()
Destroy is a wrapper around the C function pango_attribute_destroy.
type Color ¶
Color is a wrapper around the C record PangoColor.
func ColorNewFromC ¶
func (*Color) Equals ¶ added in v0.0.2
Equals compares this Color with another Color, and returns true if they represent the same GObject.
func (*Color) Free ¶
func (recv *Color) Free()
Free is a wrapper around the C function pango_color_free.
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context is a wrapper around the C record PangoContext.
func CastToContext ¶
CastToWidget down casts any arbitrary Object to Context. Exercise care, as this is a potentially dangerous function if the Object is not a Context.
func ContextNew ¶
func ContextNew() *Context
ContextNew is a wrapper around the C function pango_context_new.
func ContextNewFromC ¶
func (*Context) Equals ¶ added in v0.0.2
Equals compares this Context with another Context, and returns true if they represent the same GObject.
func (*Context) GetBaseDir ¶
GetBaseDir is a wrapper around the C function pango_context_get_base_dir.
func (*Context) GetFontDescription ¶
func (recv *Context) GetFontDescription() *FontDescription
GetFontDescription is a wrapper around the C function pango_context_get_font_description.
func (*Context) GetLanguage ¶
GetLanguage is a wrapper around the C function pango_context_get_language.
func (*Context) GetMetrics ¶ added in v0.0.5
func (recv *Context) GetMetrics(desc *FontDescription, language *Language) *FontMetrics
GetMetrics is a wrapper around the C function pango_context_get_metrics.
func (*Context) LoadFont ¶
func (recv *Context) LoadFont(desc *FontDescription) *Font
LoadFont is a wrapper around the C function pango_context_load_font.
func (*Context) LoadFontset ¶
func (recv *Context) LoadFontset(desc *FontDescription, language *Language) *Fontset
LoadFontset is a wrapper around the C function pango_context_load_fontset.
func (*Context) SetBaseDir ¶
SetBaseDir is a wrapper around the C function pango_context_set_base_dir.
func (*Context) SetFontDescription ¶
func (recv *Context) SetFontDescription(desc *FontDescription)
SetFontDescription is a wrapper around the C function pango_context_set_font_description.
func (*Context) SetFontMap ¶
SetFontMap is a wrapper around the C function pango_context_set_font_map.
func (*Context) SetLanguage ¶
SetLanguage is a wrapper around the C function pango_context_set_language.
type ContextClass ¶
type ContextClass struct {
// contains filtered or unexported fields
}
ContextClass is a wrapper around the C record PangoContextClass.
func ContextClassNewFromC ¶
func ContextClassNewFromC(u unsafe.Pointer) *ContextClass
func (*ContextClass) Equals ¶ added in v0.0.2
func (recv *ContextClass) Equals(other *ContextClass) bool
Equals compares this ContextClass with another ContextClass, and returns true if they represent the same GObject.
func (*ContextClass) ToC ¶
func (recv *ContextClass) ToC() unsafe.Pointer
type Coverage ¶
type Coverage struct {
// contains filtered or unexported fields
}
Coverage is a wrapper around the C record PangoCoverage.
func CoverageFromBytes ¶ added in v0.0.3
CoverageFromBytes is a wrapper around the C function pango_coverage_from_bytes.
func CoverageNew ¶ added in v0.0.3
func CoverageNew() *Coverage
CoverageNew is a wrapper around the C function pango_coverage_new.
func CoverageNewFromC ¶
func (*Coverage) Equals ¶ added in v0.0.2
Equals compares this Coverage with another Coverage, and returns true if they represent the same GObject.
func (*Coverage) Get ¶
func (recv *Coverage) Get(index int32) CoverageLevel
Get is a wrapper around the C function pango_coverage_get.
func (*Coverage) Set ¶
func (recv *Coverage) Set(index int32, level CoverageLevel)
Set is a wrapper around the C function pango_coverage_set.
type CoverageLevel ¶
type CoverageLevel C.PangoCoverageLevel
const ( PANGO_COVERAGE_NONE CoverageLevel = 0 PANGO_COVERAGE_FALLBACK CoverageLevel = 1 PANGO_COVERAGE_APPROXIMATE CoverageLevel = 2 PANGO_COVERAGE_EXACT CoverageLevel = 3 )
type Direction ¶
type Direction C.PangoDirection
func UnicharDirection ¶
UnicharDirection is a wrapper around the C function pango_unichar_direction.
type EllipsizeMode ¶
type EllipsizeMode C.PangoEllipsizeMode
const ( PANGO_ELLIPSIZE_NONE EllipsizeMode = 0 PANGO_ELLIPSIZE_START EllipsizeMode = 1 PANGO_ELLIPSIZE_MIDDLE EllipsizeMode = 2 PANGO_ELLIPSIZE_END EllipsizeMode = 3 )
type EngineLang ¶
type EngineLang struct {
// contains filtered or unexported fields
}
EngineLang is a wrapper around the C record PangoEngineLang.
func CastToEngineLang ¶
func CastToEngineLang(object *gobject.Object) *EngineLang
CastToWidget down casts any arbitrary Object to EngineLang. Exercise care, as this is a potentially dangerous function if the Object is not a EngineLang.
func EngineLangNewFromC ¶
func EngineLangNewFromC(u unsafe.Pointer) *EngineLang
func (*EngineLang) Equals ¶ added in v0.0.2
func (recv *EngineLang) Equals(other *EngineLang) bool
Equals compares this EngineLang with another EngineLang, and returns true if they represent the same GObject.
func (*EngineLang) ToC ¶
func (recv *EngineLang) ToC() unsafe.Pointer
type EngineShape ¶
type EngineShape struct {
// contains filtered or unexported fields
}
EngineShape is a wrapper around the C record PangoEngineShape.
func CastToEngineShape ¶
func CastToEngineShape(object *gobject.Object) *EngineShape
CastToWidget down casts any arbitrary Object to EngineShape. Exercise care, as this is a potentially dangerous function if the Object is not a EngineShape.
func EngineShapeNewFromC ¶
func EngineShapeNewFromC(u unsafe.Pointer) *EngineShape
func (*EngineShape) Equals ¶ added in v0.0.2
func (recv *EngineShape) Equals(other *EngineShape) bool
Equals compares this EngineShape with another EngineShape, and returns true if they represent the same GObject.
func (*EngineShape) ToC ¶
func (recv *EngineShape) ToC() unsafe.Pointer
type Font ¶
type Font struct {
// contains filtered or unexported fields
}
Font is a wrapper around the C record PangoFont.
func CastToFont ¶
CastToWidget down casts any arbitrary Object to Font. Exercise care, as this is a potentially dangerous function if the Object is not a Font.
func FontNewFromC ¶
func (*Font) Describe ¶
func (recv *Font) Describe() *FontDescription
pango_font_descriptions_free : unsupported parameter descs : Describe is a wrapper around the C function pango_font_describe.
func (*Font) Equals ¶ added in v0.0.2
Equals compares this Font with another Font, and returns true if they represent the same GObject.
func (*Font) FindShaper ¶
func (recv *Font) FindShaper(language *Language, ch uint32) *EngineShape
FindShaper is a wrapper around the C function pango_font_find_shaper.
func (*Font) GetCoverage ¶
GetCoverage is a wrapper around the C function pango_font_get_coverage.
func (*Font) GetGlyphExtents ¶
GetGlyphExtents is a wrapper around the C function pango_font_get_glyph_extents.
func (*Font) GetMetrics ¶ added in v0.0.5
func (recv *Font) GetMetrics(language *Language) *FontMetrics
GetMetrics is a wrapper around the C function pango_font_get_metrics.
type FontDescription ¶
type FontDescription struct {
// contains filtered or unexported fields
}
FontDescription is a wrapper around the C record PangoFontDescription.
func FontDescriptionFromString ¶
func FontDescriptionFromString(str string) *FontDescription
FontDescriptionFromString is a wrapper around the C function pango_font_description_from_string.
func FontDescriptionNew ¶
func FontDescriptionNew() *FontDescription
FontDescriptionNew is a wrapper around the C function pango_font_description_new.
func FontDescriptionNewFromC ¶
func FontDescriptionNewFromC(u unsafe.Pointer) *FontDescription
func (*FontDescription) BetterMatch ¶
func (recv *FontDescription) BetterMatch(oldMatch *FontDescription, newMatch *FontDescription) bool
BetterMatch is a wrapper around the C function pango_font_description_better_match.
func (*FontDescription) Copy ¶
func (recv *FontDescription) Copy() *FontDescription
Copy is a wrapper around the C function pango_font_description_copy.
func (*FontDescription) CopyStatic ¶
func (recv *FontDescription) CopyStatic() *FontDescription
CopyStatic is a wrapper around the C function pango_font_description_copy_static.
func (*FontDescription) Equal ¶
func (recv *FontDescription) Equal(desc2 *FontDescription) bool
Equal is a wrapper around the C function pango_font_description_equal.
func (*FontDescription) Equals ¶ added in v0.0.2
func (recv *FontDescription) Equals(other *FontDescription) bool
Equals compares this FontDescription with another FontDescription, and returns true if they represent the same GObject.
func (*FontDescription) Free ¶
func (recv *FontDescription) Free()
Free is a wrapper around the C function pango_font_description_free.
func (*FontDescription) GetFamily ¶
func (recv *FontDescription) GetFamily() string
GetFamily is a wrapper around the C function pango_font_description_get_family.
func (*FontDescription) GetSetFields ¶
func (recv *FontDescription) GetSetFields() FontMask
GetSetFields is a wrapper around the C function pango_font_description_get_set_fields.
func (*FontDescription) GetSize ¶
func (recv *FontDescription) GetSize() int32
GetSize is a wrapper around the C function pango_font_description_get_size.
func (*FontDescription) GetStretch ¶
func (recv *FontDescription) GetStretch() Stretch
GetStretch is a wrapper around the C function pango_font_description_get_stretch.
func (*FontDescription) GetStyle ¶
func (recv *FontDescription) GetStyle() Style
GetStyle is a wrapper around the C function pango_font_description_get_style.
func (*FontDescription) GetVariant ¶
func (recv *FontDescription) GetVariant() Variant
GetVariant is a wrapper around the C function pango_font_description_get_variant.
func (*FontDescription) GetWeight ¶
func (recv *FontDescription) GetWeight() Weight
GetWeight is a wrapper around the C function pango_font_description_get_weight.
func (*FontDescription) Hash ¶
func (recv *FontDescription) Hash() uint32
Hash is a wrapper around the C function pango_font_description_hash.
func (*FontDescription) Merge ¶
func (recv *FontDescription) Merge(descToMerge *FontDescription, replaceExisting bool)
Merge is a wrapper around the C function pango_font_description_merge.
func (*FontDescription) MergeStatic ¶
func (recv *FontDescription) MergeStatic(descToMerge *FontDescription, replaceExisting bool)
MergeStatic is a wrapper around the C function pango_font_description_merge_static.
func (*FontDescription) SetFamily ¶
func (recv *FontDescription) SetFamily(family string)
SetFamily is a wrapper around the C function pango_font_description_set_family.
func (*FontDescription) SetFamilyStatic ¶
func (recv *FontDescription) SetFamilyStatic(family string)
SetFamilyStatic is a wrapper around the C function pango_font_description_set_family_static.
func (*FontDescription) SetSize ¶
func (recv *FontDescription) SetSize(size int32)
SetSize is a wrapper around the C function pango_font_description_set_size.
func (*FontDescription) SetStretch ¶
func (recv *FontDescription) SetStretch(stretch Stretch)
SetStretch is a wrapper around the C function pango_font_description_set_stretch.
func (*FontDescription) SetStyle ¶
func (recv *FontDescription) SetStyle(style Style)
SetStyle is a wrapper around the C function pango_font_description_set_style.
func (*FontDescription) SetVariant ¶
func (recv *FontDescription) SetVariant(variant Variant)
SetVariant is a wrapper around the C function pango_font_description_set_variant.
func (*FontDescription) SetWeight ¶
func (recv *FontDescription) SetWeight(weight Weight)
SetWeight is a wrapper around the C function pango_font_description_set_weight.
func (*FontDescription) ToC ¶
func (recv *FontDescription) ToC() unsafe.Pointer
func (*FontDescription) ToFilename ¶
func (recv *FontDescription) ToFilename() string
ToFilename is a wrapper around the C function pango_font_description_to_filename.
func (*FontDescription) ToString ¶
func (recv *FontDescription) ToString() string
ToString is a wrapper around the C function pango_font_description_to_string.
func (*FontDescription) UnsetFields ¶
func (recv *FontDescription) UnsetFields(toUnset FontMask)
UnsetFields is a wrapper around the C function pango_font_description_unset_fields.
type FontFace ¶
type FontFace struct {
// contains filtered or unexported fields
}
FontFace is a wrapper around the C record PangoFontFace.
func CastToFontFace ¶
CastToWidget down casts any arbitrary Object to FontFace. Exercise care, as this is a potentially dangerous function if the Object is not a FontFace.
func FontFaceNewFromC ¶
func (*FontFace) Describe ¶
func (recv *FontFace) Describe() *FontDescription
Describe is a wrapper around the C function pango_font_face_describe.
func (*FontFace) Equals ¶ added in v0.0.2
Equals compares this FontFace with another FontFace, and returns true if they represent the same GObject.
func (*FontFace) GetFaceName ¶
GetFaceName is a wrapper around the C function pango_font_face_get_face_name.
type FontFamily ¶
type FontFamily struct {
// contains filtered or unexported fields
}
FontFamily is a wrapper around the C record PangoFontFamily.
func CastToFontFamily ¶
func CastToFontFamily(object *gobject.Object) *FontFamily
CastToWidget down casts any arbitrary Object to FontFamily. Exercise care, as this is a potentially dangerous function if the Object is not a FontFamily.
func FontFamilyNewFromC ¶
func FontFamilyNewFromC(u unsafe.Pointer) *FontFamily
func (*FontFamily) Equals ¶ added in v0.0.2
func (recv *FontFamily) Equals(other *FontFamily) bool
Equals compares this FontFamily with another FontFamily, and returns true if they represent the same GObject.
func (*FontFamily) GetName ¶
func (recv *FontFamily) GetName() string
GetName is a wrapper around the C function pango_font_family_get_name.
func (*FontFamily) Object ¶
func (recv *FontFamily) Object() *gobject.Object
Object upcasts to *Object
func (*FontFamily) ToC ¶
func (recv *FontFamily) ToC() unsafe.Pointer
type FontMap ¶
type FontMap struct {
// contains filtered or unexported fields
}
FontMap is a wrapper around the C record PangoFontMap.
func CastToFontMap ¶
CastToWidget down casts any arbitrary Object to FontMap. Exercise care, as this is a potentially dangerous function if the Object is not a FontMap.
func FontMapNewFromC ¶
func (*FontMap) Equals ¶ added in v0.0.2
Equals compares this FontMap with another FontMap, and returns true if they represent the same GObject.
func (*FontMap) LoadFont ¶
func (recv *FontMap) LoadFont(context *Context, desc *FontDescription) *Font
LoadFont is a wrapper around the C function pango_font_map_load_font.
func (*FontMap) LoadFontset ¶
func (recv *FontMap) LoadFontset(context *Context, desc *FontDescription, language *Language) *Fontset
LoadFontset is a wrapper around the C function pango_font_map_load_fontset.
type FontMask ¶
type FontMask C.PangoFontMask
type FontMetrics ¶ added in v0.0.5
type FontMetrics struct {
// contains filtered or unexported fields
}
FontMetrics is a wrapper around the C record PangoFontMetrics.
func FontMetricsNewFromC ¶ added in v0.0.5
func FontMetricsNewFromC(u unsafe.Pointer) *FontMetrics
func (*FontMetrics) Equals ¶ added in v0.0.5
func (recv *FontMetrics) Equals(other *FontMetrics) bool
Equals compares this FontMetrics with another FontMetrics, and returns true if they represent the same GObject.
func (*FontMetrics) GetApproximateCharWidth ¶ added in v0.0.5
func (recv *FontMetrics) GetApproximateCharWidth() int32
GetApproximateCharWidth is a wrapper around the C function pango_font_metrics_get_approximate_char_width.
func (*FontMetrics) GetApproximateDigitWidth ¶ added in v0.0.5
func (recv *FontMetrics) GetApproximateDigitWidth() int32
GetApproximateDigitWidth is a wrapper around the C function pango_font_metrics_get_approximate_digit_width.
func (*FontMetrics) GetAscent ¶ added in v0.0.5
func (recv *FontMetrics) GetAscent() int32
GetAscent is a wrapper around the C function pango_font_metrics_get_ascent.
func (*FontMetrics) GetDescent ¶ added in v0.0.5
func (recv *FontMetrics) GetDescent() int32
GetDescent is a wrapper around the C function pango_font_metrics_get_descent.
func (*FontMetrics) Ref ¶ added in v0.0.5
func (recv *FontMetrics) Ref() *FontMetrics
Ref is a wrapper around the C function pango_font_metrics_ref.
func (*FontMetrics) ToC ¶ added in v0.0.5
func (recv *FontMetrics) ToC() unsafe.Pointer
func (*FontMetrics) Unref ¶ added in v0.0.5
func (recv *FontMetrics) Unref()
Unref is a wrapper around the C function pango_font_metrics_unref.
type Fontset ¶
type Fontset struct {
// contains filtered or unexported fields
}
Fontset is a wrapper around the C record PangoFontset.
func CastToFontset ¶
CastToWidget down casts any arbitrary Object to Fontset. Exercise care, as this is a potentially dangerous function if the Object is not a Fontset.
func FontsetNewFromC ¶
func (*Fontset) Equals ¶ added in v0.0.2
Equals compares this Fontset with another Fontset, and returns true if they represent the same GObject.
func (*Fontset) GetMetrics ¶ added in v0.0.5
func (recv *Fontset) GetMetrics() *FontMetrics
GetMetrics is a wrapper around the C function pango_fontset_get_metrics.
type GlyphGeometry ¶
type GlyphGeometry struct { Width GlyphUnit XOffset GlyphUnit YOffset GlyphUnit // contains filtered or unexported fields }
GlyphGeometry is a wrapper around the C record PangoGlyphGeometry.
func GlyphGeometryNewFromC ¶
func GlyphGeometryNewFromC(u unsafe.Pointer) *GlyphGeometry
func (*GlyphGeometry) Equals ¶ added in v0.0.2
func (recv *GlyphGeometry) Equals(other *GlyphGeometry) bool
Equals compares this GlyphGeometry with another GlyphGeometry, and returns true if they represent the same GObject.
func (*GlyphGeometry) ToC ¶
func (recv *GlyphGeometry) ToC() unsafe.Pointer
type GlyphInfo ¶
type GlyphInfo struct { Glyph Glyph // contains filtered or unexported fields }
GlyphInfo is a wrapper around the C record PangoGlyphInfo.
func GlyphInfoNewFromC ¶
type GlyphItem ¶
type GlyphItem struct {
// contains filtered or unexported fields
}
GlyphItem is a wrapper around the C record PangoGlyphItem.
func GlyphItemNewFromC ¶
type GlyphVisAttr ¶
type GlyphVisAttr struct {
// contains filtered or unexported fields
}
GlyphVisAttr is a wrapper around the C record PangoGlyphVisAttr.
func GlyphVisAttrNewFromC ¶
func GlyphVisAttrNewFromC(u unsafe.Pointer) *GlyphVisAttr
func (*GlyphVisAttr) Equals ¶ added in v0.0.2
func (recv *GlyphVisAttr) Equals(other *GlyphVisAttr) bool
Equals compares this GlyphVisAttr with another GlyphVisAttr, and returns true if they represent the same GObject.
func (*GlyphVisAttr) ToC ¶
func (recv *GlyphVisAttr) ToC() unsafe.Pointer
type Item ¶
type Item struct { Offset int32 Length int32 NumChars int32 // contains filtered or unexported fields }
Item is a wrapper around the C record PangoItem.
func ItemNewFromC ¶
func (*Item) Equals ¶ added in v0.0.2
Equals compares this Item with another Item, and returns true if they represent the same GObject.
func (*Item) Free ¶
func (recv *Item) Free()
Free is a wrapper around the C function pango_item_free.
type Language ¶
type Language struct {
// contains filtered or unexported fields
}
Language is a wrapper around the C record PangoLanguage.
func LanguageFromString ¶
LanguageFromString is a wrapper around the C function pango_language_from_string.
func LanguageNewFromC ¶
func (*Language) Equals ¶ added in v0.0.2
Equals compares this Language with another Language, and returns true if they represent the same GObject.
func (*Language) GetSampleString ¶
GetSampleString is a wrapper around the C function pango_language_get_sample_string.
type Layout ¶
type Layout struct {
// contains filtered or unexported fields
}
Layout is a wrapper around the C record PangoLayout.
func CastToLayout ¶
CastToWidget down casts any arbitrary Object to Layout. Exercise care, as this is a potentially dangerous function if the Object is not a Layout.
func LayoutNewFromC ¶
func (*Layout) ContextChanged ¶
func (recv *Layout) ContextChanged()
ContextChanged is a wrapper around the C function pango_layout_context_changed.
func (*Layout) Equals ¶ added in v0.0.2
Equals compares this Layout with another Layout, and returns true if they represent the same GObject.
func (*Layout) GetAlignment ¶
GetAlignment is a wrapper around the C function pango_layout_get_alignment.
func (*Layout) GetAttributes ¶
GetAttributes is a wrapper around the C function pango_layout_get_attributes.
func (*Layout) GetContext ¶
GetContext is a wrapper around the C function pango_layout_get_context.
func (*Layout) GetCursorPos ¶
GetCursorPos is a wrapper around the C function pango_layout_get_cursor_pos.
func (*Layout) GetExtents ¶
GetExtents is a wrapper around the C function pango_layout_get_extents.
func (*Layout) GetJustify ¶
GetJustify is a wrapper around the C function pango_layout_get_justify.
func (*Layout) GetLine ¶
func (recv *Layout) GetLine(line int32) *LayoutLine
GetLine is a wrapper around the C function pango_layout_get_line.
func (*Layout) GetLineCount ¶
GetLineCount is a wrapper around the C function pango_layout_get_line_count.
func (*Layout) GetPixelExtents ¶
GetPixelExtents is a wrapper around the C function pango_layout_get_pixel_extents.
func (*Layout) GetPixelSize ¶
GetPixelSize is a wrapper around the C function pango_layout_get_pixel_size.
func (*Layout) GetSingleParagraphMode ¶
GetSingleParagraphMode is a wrapper around the C function pango_layout_get_single_paragraph_mode.
func (*Layout) GetSpacing ¶
GetSpacing is a wrapper around the C function pango_layout_get_spacing.
func (*Layout) IndexToLineX ¶
IndexToLineX is a wrapper around the C function pango_layout_index_to_line_x.
func (*Layout) IndexToPos ¶
IndexToPos is a wrapper around the C function pango_layout_index_to_pos.
func (*Layout) MoveCursorVisually ¶
func (recv *Layout) MoveCursorVisually(strong bool, oldIndex int32, oldTrailing int32, direction int32) (int32, int32)
MoveCursorVisually is a wrapper around the C function pango_layout_move_cursor_visually.
func (*Layout) SetAlignment ¶
SetAlignment is a wrapper around the C function pango_layout_set_alignment.
func (*Layout) SetAttributes ¶
SetAttributes is a wrapper around the C function pango_layout_set_attributes.
func (*Layout) SetFontDescription ¶
func (recv *Layout) SetFontDescription(desc *FontDescription)
SetFontDescription is a wrapper around the C function pango_layout_set_font_description.
func (*Layout) SetJustify ¶
SetJustify is a wrapper around the C function pango_layout_set_justify.
func (*Layout) SetSingleParagraphMode ¶
SetSingleParagraphMode is a wrapper around the C function pango_layout_set_single_paragraph_mode.
func (*Layout) SetSpacing ¶
SetSpacing is a wrapper around the C function pango_layout_set_spacing.
type LayoutClass ¶
type LayoutClass struct {
// contains filtered or unexported fields
}
LayoutClass is a wrapper around the C record PangoLayoutClass.
func LayoutClassNewFromC ¶
func LayoutClassNewFromC(u unsafe.Pointer) *LayoutClass
func (*LayoutClass) Equals ¶ added in v0.0.2
func (recv *LayoutClass) Equals(other *LayoutClass) bool
Equals compares this LayoutClass with another LayoutClass, and returns true if they represent the same GObject.
func (*LayoutClass) ToC ¶
func (recv *LayoutClass) ToC() unsafe.Pointer
type LayoutLine ¶
type LayoutLine struct { // layout : record StartIndex int32 Length int32 // contains filtered or unexported fields }
LayoutLine is a wrapper around the C record PangoLayoutLine.
func LayoutLineNewFromC ¶
func LayoutLineNewFromC(u unsafe.Pointer) *LayoutLine
func (*LayoutLine) Equals ¶ added in v0.0.2
func (recv *LayoutLine) Equals(other *LayoutLine) bool
Equals compares this LayoutLine with another LayoutLine, and returns true if they represent the same GObject.
func (*LayoutLine) GetExtents ¶
func (recv *LayoutLine) GetExtents() (*Rectangle, *Rectangle)
GetExtents is a wrapper around the C function pango_layout_line_get_extents.
func (*LayoutLine) GetPixelExtents ¶
func (recv *LayoutLine) GetPixelExtents() (*Rectangle, *Rectangle)
GetPixelExtents is a wrapper around the C function pango_layout_line_get_pixel_extents.
func (*LayoutLine) IndexToX ¶
func (recv *LayoutLine) IndexToX(index int32, trailing bool) int32
IndexToX is a wrapper around the C function pango_layout_line_index_to_x.
func (*LayoutLine) ToC ¶
func (recv *LayoutLine) ToC() unsafe.Pointer
func (*LayoutLine) Unref ¶
func (recv *LayoutLine) Unref()
Unref is a wrapper around the C function pango_layout_line_unref.
type LayoutRun ¶
type LayoutRun *GlyphItem
LayoutRun is a representation of the C alias PangoLayoutRun.
type LogAttr ¶
type LogAttr struct {
// contains filtered or unexported fields
}
LogAttr is a wrapper around the C record PangoLogAttr.
func LogAttrNewFromC ¶
type Rectangle ¶
type Rectangle struct { X int32 Y int32 Width int32 Height int32 // contains filtered or unexported fields }
Rectangle is a wrapper around the C record PangoRectangle.
func RectangleNewFromC ¶
type RendererPrivate ¶
type RendererPrivate struct {
// contains filtered or unexported fields
}
RendererPrivate is a wrapper around the C record PangoRendererPrivate.
func RendererPrivateNewFromC ¶
func RendererPrivateNewFromC(u unsafe.Pointer) *RendererPrivate
func (*RendererPrivate) Equals ¶ added in v0.0.2
func (recv *RendererPrivate) Equals(other *RendererPrivate) bool
Equals compares this RendererPrivate with another RendererPrivate, and returns true if they represent the same GObject.
func (*RendererPrivate) ToC ¶
func (recv *RendererPrivate) ToC() unsafe.Pointer
type Script ¶
type Script C.PangoScript
const ( PANGO_SCRIPT_INVALID_CODE Script = -1 PANGO_SCRIPT_COMMON Script = 0 PANGO_SCRIPT_INHERITED Script = 1 PANGO_SCRIPT_ARABIC Script = 2 PANGO_SCRIPT_ARMENIAN Script = 3 PANGO_SCRIPT_BENGALI Script = 4 PANGO_SCRIPT_BOPOMOFO Script = 5 PANGO_SCRIPT_CHEROKEE Script = 6 PANGO_SCRIPT_COPTIC Script = 7 PANGO_SCRIPT_CYRILLIC Script = 8 PANGO_SCRIPT_DESERET Script = 9 PANGO_SCRIPT_DEVANAGARI Script = 10 PANGO_SCRIPT_ETHIOPIC Script = 11 PANGO_SCRIPT_GEORGIAN Script = 12 PANGO_SCRIPT_GOTHIC Script = 13 PANGO_SCRIPT_GREEK Script = 14 PANGO_SCRIPT_GUJARATI Script = 15 PANGO_SCRIPT_GURMUKHI Script = 16 PANGO_SCRIPT_HAN Script = 17 PANGO_SCRIPT_HANGUL Script = 18 PANGO_SCRIPT_HEBREW Script = 19 PANGO_SCRIPT_HIRAGANA Script = 20 PANGO_SCRIPT_KANNADA Script = 21 PANGO_SCRIPT_KATAKANA Script = 22 PANGO_SCRIPT_KHMER Script = 23 PANGO_SCRIPT_LAO Script = 24 PANGO_SCRIPT_LATIN Script = 25 PANGO_SCRIPT_MALAYALAM Script = 26 PANGO_SCRIPT_MONGOLIAN Script = 27 PANGO_SCRIPT_MYANMAR Script = 28 PANGO_SCRIPT_OGHAM Script = 29 PANGO_SCRIPT_OLD_ITALIC Script = 30 PANGO_SCRIPT_ORIYA Script = 31 PANGO_SCRIPT_RUNIC Script = 32 PANGO_SCRIPT_SINHALA Script = 33 PANGO_SCRIPT_SYRIAC Script = 34 PANGO_SCRIPT_TAMIL Script = 35 PANGO_SCRIPT_TELUGU Script = 36 PANGO_SCRIPT_THAANA Script = 37 PANGO_SCRIPT_THAI Script = 38 PANGO_SCRIPT_TIBETAN Script = 39 PANGO_SCRIPT_CANADIAN_ABORIGINAL Script = 40 PANGO_SCRIPT_YI Script = 41 PANGO_SCRIPT_TAGALOG Script = 42 PANGO_SCRIPT_HANUNOO Script = 43 PANGO_SCRIPT_BUHID Script = 44 PANGO_SCRIPT_TAGBANWA Script = 45 PANGO_SCRIPT_BRAILLE Script = 46 PANGO_SCRIPT_CYPRIOT Script = 47 PANGO_SCRIPT_LIMBU Script = 48 PANGO_SCRIPT_OSMANYA Script = 49 PANGO_SCRIPT_SHAVIAN Script = 50 PANGO_SCRIPT_LINEAR_B Script = 51 PANGO_SCRIPT_TAI_LE Script = 52 PANGO_SCRIPT_UGARITIC Script = 53 PANGO_SCRIPT_NEW_TAI_LUE Script = 54 PANGO_SCRIPT_BUGINESE Script = 55 PANGO_SCRIPT_GLAGOLITIC Script = 56 PANGO_SCRIPT_TIFINAGH Script = 57 PANGO_SCRIPT_SYLOTI_NAGRI Script = 58 PANGO_SCRIPT_OLD_PERSIAN Script = 59 PANGO_SCRIPT_KHAROSHTHI Script = 60 PANGO_SCRIPT_UNKNOWN Script = 61 PANGO_SCRIPT_BALINESE Script = 62 PANGO_SCRIPT_CUNEIFORM Script = 63 PANGO_SCRIPT_PHOENICIAN Script = 64 PANGO_SCRIPT_PHAGS_PA Script = 65 PANGO_SCRIPT_NKO Script = 66 PANGO_SCRIPT_KAYAH_LI Script = 67 PANGO_SCRIPT_LEPCHA Script = 68 PANGO_SCRIPT_REJANG Script = 69 PANGO_SCRIPT_SUNDANESE Script = 70 PANGO_SCRIPT_SAURASHTRA Script = 71 PANGO_SCRIPT_CHAM Script = 72 PANGO_SCRIPT_OL_CHIKI Script = 73 PANGO_SCRIPT_VAI Script = 74 PANGO_SCRIPT_CARIAN Script = 75 PANGO_SCRIPT_LYCIAN Script = 76 PANGO_SCRIPT_LYDIAN Script = 77 PANGO_SCRIPT_BATAK Script = 78 PANGO_SCRIPT_BRAHMI Script = 79 PANGO_SCRIPT_MANDAIC Script = 80 PANGO_SCRIPT_CHAKMA Script = 81 PANGO_SCRIPT_MEROITIC_CURSIVE Script = 82 PANGO_SCRIPT_MEROITIC_HIEROGLYPHS Script = 83 PANGO_SCRIPT_MIAO Script = 84 PANGO_SCRIPT_SHARADA Script = 85 PANGO_SCRIPT_SORA_SOMPENG Script = 86 PANGO_SCRIPT_TAKRI Script = 87 PANGO_SCRIPT_BASSA_VAH Script = 88 PANGO_SCRIPT_CAUCASIAN_ALBANIAN Script = 89 PANGO_SCRIPT_DUPLOYAN Script = 90 PANGO_SCRIPT_ELBASAN Script = 91 PANGO_SCRIPT_GRANTHA Script = 92 PANGO_SCRIPT_KHOJKI Script = 93 PANGO_SCRIPT_KHUDAWADI Script = 94 PANGO_SCRIPT_LINEAR_A Script = 95 PANGO_SCRIPT_MAHAJANI Script = 96 PANGO_SCRIPT_MANICHAEAN Script = 97 PANGO_SCRIPT_MENDE_KIKAKUI Script = 98 PANGO_SCRIPT_MODI Script = 99 PANGO_SCRIPT_MRO Script = 100 PANGO_SCRIPT_NABATAEAN Script = 101 PANGO_SCRIPT_OLD_NORTH_ARABIAN Script = 102 PANGO_SCRIPT_OLD_PERMIC Script = 103 PANGO_SCRIPT_PAHAWH_HMONG Script = 104 PANGO_SCRIPT_PALMYRENE Script = 105 PANGO_SCRIPT_PAU_CIN_HAU Script = 106 PANGO_SCRIPT_PSALTER_PAHLAVI Script = 107 PANGO_SCRIPT_SIDDHAM Script = 108 PANGO_SCRIPT_TIRHUTA Script = 109 PANGO_SCRIPT_WARANG_CITI Script = 110 PANGO_SCRIPT_AHOM Script = 111 PANGO_SCRIPT_ANATOLIAN_HIEROGLYPHS Script = 112 PANGO_SCRIPT_HATRAN Script = 113 PANGO_SCRIPT_MULTANI Script = 114 PANGO_SCRIPT_OLD_HUNGARIAN Script = 115 PANGO_SCRIPT_SIGNWRITING Script = 116 )
type ScriptIter ¶
type ScriptIter struct {
// contains filtered or unexported fields
}
ScriptIter is a wrapper around the C record PangoScriptIter.
func ScriptIterNewFromC ¶
func ScriptIterNewFromC(u unsafe.Pointer) *ScriptIter
func (*ScriptIter) Equals ¶ added in v0.0.2
func (recv *ScriptIter) Equals(other *ScriptIter) bool
Equals compares this ScriptIter with another ScriptIter, and returns true if they represent the same GObject.
func (*ScriptIter) ToC ¶
func (recv *ScriptIter) ToC() unsafe.Pointer
type Stretch ¶
type Stretch C.PangoStretch
const ( PANGO_STRETCH_ULTRA_CONDENSED Stretch = 0 PANGO_STRETCH_EXTRA_CONDENSED Stretch = 1 PANGO_STRETCH_CONDENSED Stretch = 2 PANGO_STRETCH_SEMI_CONDENSED Stretch = 3 PANGO_STRETCH_NORMAL Stretch = 4 PANGO_STRETCH_SEMI_EXPANDED Stretch = 5 PANGO_STRETCH_EXPANDED Stretch = 6 PANGO_STRETCH_EXTRA_EXPANDED Stretch = 7 PANGO_STRETCH_ULTRA_EXPANDED Stretch = 8 )
type Style ¶
type Style C.PangoStyle
type TabArray ¶
type TabArray struct {
// contains filtered or unexported fields
}
TabArray is a wrapper around the C record PangoTabArray.
func TabArrayNew ¶
TabArrayNew is a wrapper around the C function pango_tab_array_new.
func TabArrayNewFromC ¶
func (*TabArray) Equals ¶ added in v0.0.2
Equals compares this TabArray with another TabArray, and returns true if they represent the same GObject.
func (*TabArray) Free ¶
func (recv *TabArray) Free()
Free is a wrapper around the C function pango_tab_array_free.
func (*TabArray) GetPositionsInPixels ¶
GetPositionsInPixels is a wrapper around the C function pango_tab_array_get_positions_in_pixels.
func (*TabArray) GetTab ¶ added in v0.0.10
GetTab is a wrapper around the C function pango_tab_array_get_tab.
type Underline ¶
type Underline C.PangoUnderline
type Variant ¶
type Variant C.PangoVariant
type Weight ¶
type Weight C.PangoWeight
const ( PANGO_WEIGHT_THIN Weight = 100 PANGO_WEIGHT_ULTRALIGHT Weight = 200 PANGO_WEIGHT_LIGHT Weight = 300 PANGO_WEIGHT_SEMILIGHT Weight = 350 PANGO_WEIGHT_BOOK Weight = 380 PANGO_WEIGHT_NORMAL Weight = 400 PANGO_WEIGHT_MEDIUM Weight = 500 PANGO_WEIGHT_SEMIBOLD Weight = 600 PANGO_WEIGHT_BOLD Weight = 700 PANGO_WEIGHT_ULTRABOLD Weight = 800 PANGO_WEIGHT_HEAVY Weight = 900 PANGO_WEIGHT_ULTRAHEAVY Weight = 1000 )