pango

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const SCALE int32 = C.PANGO_SCALE

Variables

This section is empty.

Functions

func FindParagraphBoundary

func FindParagraphBoundary(text string, length int32) (int32, int32)

FindParagraphBoundary is a wrapper around the C function pango_find_paragraph_boundary.

func GetMirrorChar

func GetMirrorChar(ch rune, mirroredCh rune) bool

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

func ReorderItems(logicalItems *glib.List) *glib.List

ReorderItems is a wrapper around the C function pango_reorder_items.

func SplitFileList added in v0.0.6

func SplitFileList(str string) []string

SplitFileList is a wrapper around the C function pango_split_file_list.

func TrimString

func TrimString(str string) string

TrimString is a wrapper around the C function pango_trim_string.

Types

type Alignment

type Alignment C.PangoAlignment
const (
	PANGO_ALIGN_LEFT   Alignment = 0
	PANGO_ALIGN_CENTER Alignment = 1
	PANGO_ALIGN_RIGHT  Alignment = 2
)

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

func AnalysisNewFromC(u unsafe.Pointer) *Analysis

func (*Analysis) Equals added in v0.0.2

func (recv *Analysis) Equals(other *Analysis) bool

Equals compares this Analysis with another Analysis, and returns true if they represent the same GObject.

func (*Analysis) ToC

func (recv *Analysis) ToC() unsafe.Pointer

type AttrClass

type AttrClass struct {
	Type AttrType
	// contains filtered or unexported fields
}

AttrClass is a wrapper around the C record PangoAttrClass.

func AttrClassNewFromC

func AttrClassNewFromC(u unsafe.Pointer) *AttrClass

func (*AttrClass) Equals added in v0.0.2

func (recv *AttrClass) Equals(other *AttrClass) bool

Equals compares this AttrClass with another AttrClass, and returns true if they represent the same GObject.

func (*AttrClass) ToC

func (recv *AttrClass) ToC() unsafe.Pointer

type AttrColor

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

AttrColor is a wrapper around the C record PangoAttrColor.

func AttrColorNewFromC

func AttrColorNewFromC(u unsafe.Pointer) *AttrColor

func (*AttrColor) Equals added in v0.0.2

func (recv *AttrColor) Equals(other *AttrColor) bool

Equals compares this AttrColor with another AttrColor, and returns true if they represent the same GObject.

func (*AttrColor) ToC

func (recv *AttrColor) ToC() unsafe.Pointer

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

func AttrFloatNewFromC(u unsafe.Pointer) *AttrFloat

func (*AttrFloat) Equals added in v0.0.2

func (recv *AttrFloat) Equals(other *AttrFloat) bool

Equals compares this AttrFloat with another AttrFloat, and returns true if they represent the same GObject.

func (*AttrFloat) ToC

func (recv *AttrFloat) ToC() unsafe.Pointer

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

func AttrIntNewFromC(u unsafe.Pointer) *AttrInt

func (*AttrInt) Equals added in v0.0.2

func (recv *AttrInt) Equals(other *AttrInt) bool

Equals compares this AttrInt with another AttrInt, and returns true if they represent the same GObject.

func (*AttrInt) ToC

func (recv *AttrInt) ToC() unsafe.Pointer

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 AttrListNewFromC(u unsafe.Pointer) *AttrList

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) Change

func (recv *AttrList) Change(attr *Attribute)

Change is a wrapper around the C function pango_attr_list_change.

func (*AttrList) Copy

func (recv *AttrList) Copy() *AttrList

Copy is a wrapper around the C function pango_attr_list_copy.

func (*AttrList) Equals added in v0.0.2

func (recv *AttrList) Equals(other *AttrList) bool

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) Insert

func (recv *AttrList) Insert(attr *Attribute)

Insert is a wrapper around the C function pango_attr_list_insert.

func (*AttrList) InsertBefore

func (recv *AttrList) InsertBefore(attr *Attribute)

InsertBefore is a wrapper around the C function pango_attr_list_insert_before.

func (*AttrList) Splice

func (recv *AttrList) Splice(other *AttrList, pos int32, len int32)

Splice is a wrapper around the C function pango_attr_list_splice.

func (*AttrList) ToC

func (recv *AttrList) ToC() unsafe.Pointer

func (*AttrList) Unref

func (recv *AttrList) Unref()

Unref is a wrapper around the C function pango_attr_list_unref.

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

func AttrShapeNewFromC(u unsafe.Pointer) *AttrShape

func (*AttrShape) Equals added in v0.0.2

func (recv *AttrShape) Equals(other *AttrShape) bool

Equals compares this AttrShape with another AttrShape, and returns true if they represent the same GObject.

func (*AttrShape) ToC

func (recv *AttrShape) ToC() unsafe.Pointer

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

func AttrSizeNewFromC(u unsafe.Pointer) *AttrSize

func (*AttrSize) Equals added in v0.0.2

func (recv *AttrSize) Equals(other *AttrSize) bool

Equals compares this AttrSize with another AttrSize, and returns true if they represent the same GObject.

func (*AttrSize) ToC

func (recv *AttrSize) ToC() unsafe.Pointer

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

func AttrTypeRegister(name string) AttrType

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

func AttrBackgroundNew(red uint16, green uint16, blue uint16) *Attribute

AttrBackgroundNew is a wrapper around the C function pango_attr_background_new.

func AttrFamilyNew

func AttrFamilyNew(family string) *Attribute

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

func AttrForegroundNew(red uint16, green uint16, blue uint16) *Attribute

AttrForegroundNew is a wrapper around the C function pango_attr_foreground_new.

func AttrLanguageNew added in v0.0.3

func AttrLanguageNew(language *Language) *Attribute

AttrLanguageNew is a wrapper around the C function pango_attr_language_new.

func AttrRiseNew

func AttrRiseNew(rise int32) *Attribute

AttrRiseNew is a wrapper around the C function pango_attr_rise_new.

func AttrScaleNew

func AttrScaleNew(scaleFactor float64) *Attribute

AttrScaleNew is a wrapper around the C function pango_attr_scale_new.

func AttrShapeNew added in v0.0.3

func AttrShapeNew(inkRect *Rectangle, logicalRect *Rectangle) *Attribute

AttrShapeNew is a wrapper around the C function pango_attr_shape_new.

func AttrSizeNew added in v0.0.3

func AttrSizeNew(size int32) *Attribute

AttrSizeNew is a wrapper around the C function pango_attr_size_new.

func AttrStretchNew

func AttrStretchNew(stretch Stretch) *Attribute

AttrStretchNew is a wrapper around the C function pango_attr_stretch_new.

func AttrStrikethroughNew

func AttrStrikethroughNew(strikethrough bool) *Attribute

AttrStrikethroughNew is a wrapper around the C function pango_attr_strikethrough_new.

func AttrStyleNew

func AttrStyleNew(style Style) *Attribute

AttrStyleNew is a wrapper around the C function pango_attr_style_new.

func AttrUnderlineNew

func AttrUnderlineNew(underline Underline) *Attribute

AttrUnderlineNew is a wrapper around the C function pango_attr_underline_new.

func AttrVariantNew

func AttrVariantNew(variant Variant) *Attribute

AttrVariantNew is a wrapper around the C function pango_attr_variant_new.

func AttrWeightNew

func AttrWeightNew(weight Weight) *Attribute

AttrWeightNew is a wrapper around the C function pango_attr_weight_new.

func AttributeNewFromC

func AttributeNewFromC(u unsafe.Pointer) *Attribute

func (*Attribute) Copy

func (recv *Attribute) Copy() *Attribute

Copy is a wrapper around the C function pango_attribute_copy.

func (*Attribute) Destroy

func (recv *Attribute) Destroy()

Destroy is a wrapper around the C function pango_attribute_destroy.

func (*Attribute) Equal

func (recv *Attribute) Equal(attr2 *Attribute) bool

Equal is a wrapper around the C function pango_attribute_equal.

func (*Attribute) Equals added in v0.0.2

func (recv *Attribute) Equals(other *Attribute) bool

Equals compares this Attribute with another Attribute, and returns true if they represent the same GObject.

func (*Attribute) ToC

func (recv *Attribute) ToC() unsafe.Pointer

type Color

type Color struct {
	Red   uint16
	Green uint16
	Blue  uint16
	// contains filtered or unexported fields
}

Color is a wrapper around the C record PangoColor.

func ColorNewFromC

func ColorNewFromC(u unsafe.Pointer) *Color

func (*Color) Copy

func (recv *Color) Copy() *Color

Copy is a wrapper around the C function pango_color_copy.

func (*Color) Equals added in v0.0.2

func (recv *Color) Equals(other *Color) bool

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.

func (*Color) Parse

func (recv *Color) Parse(spec string) bool

Parse is a wrapper around the C function pango_color_parse.

func (*Color) ToC

func (recv *Color) ToC() unsafe.Pointer

type Context

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

Context is a wrapper around the C record PangoContext.

func CastToContext

func CastToContext(object *gobject.Object) *Context

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 ContextNewFromC(u unsafe.Pointer) *Context

func (*Context) Equals added in v0.0.2

func (recv *Context) Equals(other *Context) bool

Equals compares this Context with another Context, and returns true if they represent the same GObject.

func (*Context) GetBaseDir

func (recv *Context) GetBaseDir() Direction

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

func (recv *Context) GetLanguage() *Language

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) Object

func (recv *Context) Object() *gobject.Object

Object upcasts to *Object

func (*Context) SetBaseDir

func (recv *Context) SetBaseDir(direction Direction)

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

func (recv *Context) SetFontMap(fontMap *FontMap)

SetFontMap is a wrapper around the C function pango_context_set_font_map.

func (*Context) SetLanguage

func (recv *Context) SetLanguage(language *Language)

SetLanguage is a wrapper around the C function pango_context_set_language.

func (*Context) ToC

func (recv *Context) ToC() unsafe.Pointer

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

func CoverageFromBytes(bytes []uint8) *Coverage

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 CoverageNewFromC(u unsafe.Pointer) *Coverage

func (*Coverage) Copy

func (recv *Coverage) Copy() *Coverage

Copy is a wrapper around the C function pango_coverage_copy.

func (*Coverage) Equals added in v0.0.2

func (recv *Coverage) Equals(other *Coverage) bool

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) Max

func (recv *Coverage) Max(other *Coverage)

Max is a wrapper around the C function pango_coverage_max.

func (*Coverage) Ref

func (recv *Coverage) Ref() *Coverage

Ref is a wrapper around the C function pango_coverage_ref.

func (*Coverage) Set

func (recv *Coverage) Set(index int32, level CoverageLevel)

Set is a wrapper around the C function pango_coverage_set.

func (*Coverage) ToC

func (recv *Coverage) ToC() unsafe.Pointer

func (*Coverage) Unref

func (recv *Coverage) Unref()

Unref is a wrapper around the C function pango_coverage_unref.

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
const (
	PANGO_DIRECTION_LTR      Direction = 0
	PANGO_DIRECTION_RTL      Direction = 1
	PANGO_DIRECTION_TTB_LTR  Direction = 2
	PANGO_DIRECTION_TTB_RTL  Direction = 3
	PANGO_DIRECTION_WEAK_LTR Direction = 4
	PANGO_DIRECTION_WEAK_RTL Direction = 5
	PANGO_DIRECTION_NEUTRAL  Direction = 6
)

func UnicharDirection

func UnicharDirection(ch rune) Direction

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

func CastToFont(object *gobject.Object) *Font

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 FontNewFromC(u unsafe.Pointer) *Font

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

func (recv *Font) Equals(other *Font) bool

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

func (recv *Font) GetCoverage(language *Language) *Coverage

GetCoverage is a wrapper around the C function pango_font_get_coverage.

func (*Font) GetGlyphExtents

func (recv *Font) GetGlyphExtents(glyph Glyph) (*Rectangle, *Rectangle)

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.

func (*Font) Object

func (recv *Font) Object() *gobject.Object

Object upcasts to *Object

func (*Font) ToC

func (recv *Font) ToC() unsafe.Pointer

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

func CastToFontFace(object *gobject.Object) *FontFace

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 FontFaceNewFromC(u unsafe.Pointer) *FontFace

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

func (recv *FontFace) Equals(other *FontFace) bool

Equals compares this FontFace with another FontFace, and returns true if they represent the same GObject.

func (*FontFace) GetFaceName

func (recv *FontFace) GetFaceName() string

GetFaceName is a wrapper around the C function pango_font_face_get_face_name.

func (*FontFace) Object

func (recv *FontFace) Object() *gobject.Object

Object upcasts to *Object

func (*FontFace) ToC

func (recv *FontFace) ToC() unsafe.Pointer

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

func CastToFontMap(object *gobject.Object) *FontMap

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 FontMapNewFromC(u unsafe.Pointer) *FontMap

func (*FontMap) Equals added in v0.0.2

func (recv *FontMap) Equals(other *FontMap) bool

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.

func (*FontMap) Object

func (recv *FontMap) Object() *gobject.Object

Object upcasts to *Object

func (*FontMap) ToC

func (recv *FontMap) ToC() unsafe.Pointer

type FontMask

type FontMask C.PangoFontMask
const (
	PANGO_FONT_MASK_FAMILY  FontMask = 1
	PANGO_FONT_MASK_STYLE   FontMask = 2
	PANGO_FONT_MASK_VARIANT FontMask = 4
	PANGO_FONT_MASK_WEIGHT  FontMask = 8
	PANGO_FONT_MASK_STRETCH FontMask = 16
	PANGO_FONT_MASK_SIZE    FontMask = 32
	PANGO_FONT_MASK_GRAVITY FontMask = 64
)

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

func CastToFontset(object *gobject.Object) *Fontset

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 FontsetNewFromC(u unsafe.Pointer) *Fontset

func (*Fontset) Equals added in v0.0.2

func (recv *Fontset) Equals(other *Fontset) bool

Equals compares this Fontset with another Fontset, and returns true if they represent the same GObject.

func (*Fontset) GetFont

func (recv *Fontset) GetFont(wc uint32) *Font

GetFont is a wrapper around the C function pango_fontset_get_font.

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.

func (*Fontset) Object

func (recv *Fontset) Object() *gobject.Object

Object upcasts to *Object

func (*Fontset) ToC

func (recv *Fontset) ToC() unsafe.Pointer

type Glyph

type Glyph uint32

Glyph is a representation of the C alias PangoGlyph.

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

func GlyphInfoNewFromC(u unsafe.Pointer) *GlyphInfo

func (*GlyphInfo) Equals added in v0.0.2

func (recv *GlyphInfo) Equals(other *GlyphInfo) bool

Equals compares this GlyphInfo with another GlyphInfo, and returns true if they represent the same GObject.

func (*GlyphInfo) ToC

func (recv *GlyphInfo) ToC() unsafe.Pointer

type GlyphItem

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

GlyphItem is a wrapper around the C record PangoGlyphItem.

func GlyphItemNewFromC

func GlyphItemNewFromC(u unsafe.Pointer) *GlyphItem

func (*GlyphItem) Equals added in v0.0.2

func (recv *GlyphItem) Equals(other *GlyphItem) bool

Equals compares this GlyphItem with another GlyphItem, and returns true if they represent the same GObject.

func (*GlyphItem) ToC

func (recv *GlyphItem) ToC() unsafe.Pointer

type GlyphUnit

type GlyphUnit int32

GlyphUnit is a representation of the C alias PangoGlyphUnit.

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 ItemNew

func ItemNew() *Item

ItemNew is a wrapper around the C function pango_item_new.

func ItemNewFromC

func ItemNewFromC(u unsafe.Pointer) *Item

func (*Item) Copy

func (recv *Item) Copy() *Item

Copy is a wrapper around the C function pango_item_copy.

func (*Item) Equals added in v0.0.2

func (recv *Item) Equals(other *Item) bool

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.

func (*Item) Split

func (recv *Item) Split(splitIndex int32, splitOffset int32) *Item

Split is a wrapper around the C function pango_item_split.

func (*Item) ToC

func (recv *Item) ToC() unsafe.Pointer

type Language

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

Language is a wrapper around the C record PangoLanguage.

func LanguageFromString

func LanguageFromString(language string) *Language

LanguageFromString is a wrapper around the C function pango_language_from_string.

func LanguageNewFromC

func LanguageNewFromC(u unsafe.Pointer) *Language

func (*Language) Equals added in v0.0.2

func (recv *Language) Equals(other *Language) bool

Equals compares this Language with another Language, and returns true if they represent the same GObject.

func (*Language) GetSampleString

func (recv *Language) GetSampleString() string

GetSampleString is a wrapper around the C function pango_language_get_sample_string.

func (*Language) Matches

func (recv *Language) Matches(rangeList string) bool

Matches is a wrapper around the C function pango_language_matches.

func (*Language) ToC

func (recv *Language) ToC() unsafe.Pointer

func (*Language) ToString

func (recv *Language) ToString() string

ToString is a wrapper around the C function pango_language_to_string.

type Layout

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

Layout is a wrapper around the C record PangoLayout.

func CastToLayout

func CastToLayout(object *gobject.Object) *Layout

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 LayoutNew

func LayoutNew(context *Context) *Layout

LayoutNew is a wrapper around the C function pango_layout_new.

func LayoutNewFromC

func LayoutNewFromC(u unsafe.Pointer) *Layout

func (*Layout) ContextChanged

func (recv *Layout) ContextChanged()

ContextChanged is a wrapper around the C function pango_layout_context_changed.

func (*Layout) Copy

func (recv *Layout) Copy() *Layout

Copy is a wrapper around the C function pango_layout_copy.

func (*Layout) Equals added in v0.0.2

func (recv *Layout) Equals(other *Layout) bool

Equals compares this Layout with another Layout, and returns true if they represent the same GObject.

func (*Layout) GetAlignment

func (recv *Layout) GetAlignment() Alignment

GetAlignment is a wrapper around the C function pango_layout_get_alignment.

func (*Layout) GetAttributes

func (recv *Layout) GetAttributes() *AttrList

GetAttributes is a wrapper around the C function pango_layout_get_attributes.

func (*Layout) GetContext

func (recv *Layout) GetContext() *Context

GetContext is a wrapper around the C function pango_layout_get_context.

func (*Layout) GetCursorPos

func (recv *Layout) GetCursorPos(index int32) (*Rectangle, *Rectangle)

GetCursorPos is a wrapper around the C function pango_layout_get_cursor_pos.

func (*Layout) GetExtents

func (recv *Layout) GetExtents() (*Rectangle, *Rectangle)

GetExtents is a wrapper around the C function pango_layout_get_extents.

func (*Layout) GetIndent

func (recv *Layout) GetIndent() int32

GetIndent is a wrapper around the C function pango_layout_get_indent.

func (*Layout) GetJustify

func (recv *Layout) GetJustify() bool

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

func (recv *Layout) GetLineCount() int32

GetLineCount is a wrapper around the C function pango_layout_get_line_count.

func (*Layout) GetLines

func (recv *Layout) GetLines() *glib.SList

GetLines is a wrapper around the C function pango_layout_get_lines.

func (*Layout) GetPixelExtents

func (recv *Layout) GetPixelExtents() (*Rectangle, *Rectangle)

GetPixelExtents is a wrapper around the C function pango_layout_get_pixel_extents.

func (*Layout) GetPixelSize

func (recv *Layout) GetPixelSize() (int32, int32)

GetPixelSize is a wrapper around the C function pango_layout_get_pixel_size.

func (*Layout) GetSingleParagraphMode

func (recv *Layout) GetSingleParagraphMode() bool

GetSingleParagraphMode is a wrapper around the C function pango_layout_get_single_paragraph_mode.

func (*Layout) GetSize

func (recv *Layout) GetSize() (int32, int32)

GetSize is a wrapper around the C function pango_layout_get_size.

func (*Layout) GetSpacing

func (recv *Layout) GetSpacing() int32

GetSpacing is a wrapper around the C function pango_layout_get_spacing.

func (*Layout) GetTabs

func (recv *Layout) GetTabs() *TabArray

GetTabs is a wrapper around the C function pango_layout_get_tabs.

func (*Layout) GetText

func (recv *Layout) GetText() string

GetText is a wrapper around the C function pango_layout_get_text.

func (*Layout) GetWidth

func (recv *Layout) GetWidth() int32

GetWidth is a wrapper around the C function pango_layout_get_width.

func (*Layout) GetWrap

func (recv *Layout) GetWrap() WrapMode

GetWrap is a wrapper around the C function pango_layout_get_wrap.

func (*Layout) IndexToLineX

func (recv *Layout) IndexToLineX(index int32, trailing bool) (int32, int32)

IndexToLineX is a wrapper around the C function pango_layout_index_to_line_x.

func (*Layout) IndexToPos

func (recv *Layout) IndexToPos(index int32) *Rectangle

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) Object

func (recv *Layout) Object() *gobject.Object

Object upcasts to *Object

func (*Layout) SetAlignment

func (recv *Layout) SetAlignment(alignment Alignment)

SetAlignment is a wrapper around the C function pango_layout_set_alignment.

func (*Layout) SetAttributes

func (recv *Layout) SetAttributes(attrs *AttrList)

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) SetIndent

func (recv *Layout) SetIndent(indent int32)

SetIndent is a wrapper around the C function pango_layout_set_indent.

func (*Layout) SetJustify

func (recv *Layout) SetJustify(justify bool)

SetJustify is a wrapper around the C function pango_layout_set_justify.

func (*Layout) SetMarkup

func (recv *Layout) SetMarkup(markup string, length int32)

SetMarkup is a wrapper around the C function pango_layout_set_markup.

func (*Layout) SetSingleParagraphMode

func (recv *Layout) SetSingleParagraphMode(setting bool)

SetSingleParagraphMode is a wrapper around the C function pango_layout_set_single_paragraph_mode.

func (*Layout) SetSpacing

func (recv *Layout) SetSpacing(spacing int32)

SetSpacing is a wrapper around the C function pango_layout_set_spacing.

func (*Layout) SetTabs

func (recv *Layout) SetTabs(tabs *TabArray)

SetTabs is a wrapper around the C function pango_layout_set_tabs.

func (*Layout) SetText

func (recv *Layout) SetText(text string, length int32)

SetText is a wrapper around the C function pango_layout_set_text.

func (*Layout) SetWidth

func (recv *Layout) SetWidth(width int32)

SetWidth is a wrapper around the C function pango_layout_set_width.

func (*Layout) SetWrap

func (recv *Layout) SetWrap(wrap WrapMode)

SetWrap is a wrapper around the C function pango_layout_set_wrap.

func (*Layout) ToC

func (recv *Layout) ToC() unsafe.Pointer

func (*Layout) XyToIndex

func (recv *Layout) XyToIndex(x int32, y int32) (bool, int32, int32)

XyToIndex is a wrapper around the C function pango_layout_xy_to_index.

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.

func (*LayoutLine) XToIndex

func (recv *LayoutLine) XToIndex(xPos int32) (bool, int32, int32)

XToIndex is a wrapper around the C function pango_layout_line_x_to_index.

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

func LogAttrNewFromC(u unsafe.Pointer) *LogAttr

func (*LogAttr) Equals added in v0.0.2

func (recv *LogAttr) Equals(other *LogAttr) bool

Equals compares this LogAttr with another LogAttr, and returns true if they represent the same GObject.

func (*LogAttr) ToC

func (recv *LogAttr) ToC() unsafe.Pointer

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

func RectangleNewFromC(u unsafe.Pointer) *Rectangle

func (*Rectangle) Equals added in v0.0.2

func (recv *Rectangle) Equals(other *Rectangle) bool

Equals compares this Rectangle with another Rectangle, and returns true if they represent the same GObject.

func (*Rectangle) ToC

func (recv *Rectangle) ToC() unsafe.Pointer

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
)

func ParseStretch added in v0.0.10

func ParseStretch(str string, warn bool) (bool, Stretch)

ParseStretch is a wrapper around the C function pango_parse_stretch.

type Style

type Style C.PangoStyle
const (
	PANGO_STYLE_NORMAL  Style = 0
	PANGO_STYLE_OBLIQUE Style = 1
	PANGO_STYLE_ITALIC  Style = 2
)

func ParseStyle added in v0.0.10

func ParseStyle(str string, warn bool) (bool, Style)

ParseStyle is a wrapper around the C function pango_parse_style.

type TabAlign

type TabAlign C.PangoTabAlign
const (
	PANGO_TAB_LEFT TabAlign = 0
)

type TabArray

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

TabArray is a wrapper around the C record PangoTabArray.

func TabArrayNew

func TabArrayNew(initialSize int32, positionsInPixels bool) *TabArray

TabArrayNew is a wrapper around the C function pango_tab_array_new.

func TabArrayNewFromC

func TabArrayNewFromC(u unsafe.Pointer) *TabArray

func (*TabArray) Copy

func (recv *TabArray) Copy() *TabArray

Copy is a wrapper around the C function pango_tab_array_copy.

func (*TabArray) Equals added in v0.0.2

func (recv *TabArray) Equals(other *TabArray) bool

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

func (recv *TabArray) GetPositionsInPixels() bool

GetPositionsInPixels is a wrapper around the C function pango_tab_array_get_positions_in_pixels.

func (*TabArray) GetSize

func (recv *TabArray) GetSize() int32

GetSize is a wrapper around the C function pango_tab_array_get_size.

func (*TabArray) GetTab added in v0.0.10

func (recv *TabArray) GetTab(tabIndex int32) (TabAlign, int32)

GetTab is a wrapper around the C function pango_tab_array_get_tab.

func (*TabArray) Resize

func (recv *TabArray) Resize(newSize int32)

Resize is a wrapper around the C function pango_tab_array_resize.

func (*TabArray) SetTab

func (recv *TabArray) SetTab(tabIndex int32, alignment TabAlign, location int32)

SetTab is a wrapper around the C function pango_tab_array_set_tab.

func (*TabArray) ToC

func (recv *TabArray) ToC() unsafe.Pointer

type Underline

type Underline C.PangoUnderline
const (
	PANGO_UNDERLINE_NONE   Underline = 0
	PANGO_UNDERLINE_SINGLE Underline = 1
	PANGO_UNDERLINE_DOUBLE Underline = 2
	PANGO_UNDERLINE_LOW    Underline = 3
	PANGO_UNDERLINE_ERROR  Underline = 4
)

type Variant

type Variant C.PangoVariant
const (
	PANGO_VARIANT_NORMAL     Variant = 0
	PANGO_VARIANT_SMALL_CAPS Variant = 1
)

func ParseVariant added in v0.0.10

func ParseVariant(str string, warn bool) (bool, Variant)

ParseVariant is a wrapper around the C function pango_parse_variant.

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
)

func ParseWeight added in v0.0.10

func ParseWeight(str string, warn bool) (bool, Weight)

ParseWeight is a wrapper around the C function pango_parse_weight.

type WrapMode

type WrapMode C.PangoWrapMode
const (
	PANGO_WRAP_WORD      WrapMode = 0
	PANGO_WRAP_CHAR      WrapMode = 1
	PANGO_WRAP_WORD_CHAR WrapMode = 2
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL