pangoi

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: GPL-3.0 Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UNDERLINE_NONE   int
	UNDERLINE_SINGLE int
	UNDERLINE_DOUBLE int
	UNDERLINE_LOW    int
	UNDERLINE_ERROR  int

	STYLE_NORMAL  int
	STYLE_OBLIQUE int
	STYLE_ITALIC  int

	JUSTIFY_LEFT   int
	JUSTIFY_RIGHT  int
	JUSTIFY_CENTER int
	JUSTIFY_FILL   int

	WEIGHT_THIN       int
	WEIGHT_ULTRALIGHT int
	WEIGHT_LIGHT      int
	WEIGHT_SEMILIGHT  int
	WEIGHT_BOOK       int
	WEIGHT_NORMAL     int
	WEIGHT_MEDIUM     int
	WEIGHT_SEMIBOLD   int
	WEIGHT_BOLD       int
	WEIGHT_ULTRABOLD  int
	WEIGHT_HEAVY      int
	WEIGHT_ULTRAHEAVY int
)
View Source
var (
	PANGO_SCALE int
)

Functions

func AssertAttrList

func AssertAttrList(_ AttrList)

func AssertAttribute

func AssertAttribute(_ Attribute)

func AssertFontDescription

func AssertFontDescription(_ FontDescription)

func AssertPango

func AssertPango(_ Pango)

Types

type AttrList

type AttrList interface {
	Insert(Attribute)
	GetAttributes() []Attribute
}

type Attribute

type Attribute interface {
	SetStartIndex(int)
	SetEndIndex(int)
}

type FontDescription

type FontDescription interface {
	GetSize() int
}

type Pango

type Pango interface {
	AsFontDescription(interface{}) FontDescription
	AttrListNew() AttrList
}

Jump to

Keyboard shortcuts

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