pango

package
v0.0.0-...-48574e3 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: BSD-3-Clause Imports: 2 Imported by: 21

Documentation

Index

Constants

View Source
const (
	SCALE = C.PANGO_SCALE
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	GContext *C.PangoContext
}

func ContextFromUnsafe

func ContextFromUnsafe(context unsafe.Pointer) *Context

type EllipsizeMode

type EllipsizeMode int
const (
	ELLIPSIZE_NONE   EllipsizeMode = 0
	ELLIPSIZE_START  EllipsizeMode = 1
	ELLIPSIZE_MIDDLE EllipsizeMode = 2
	ELLIPSIZE_END    EllipsizeMode = 3
)

type FontDescription

type FontDescription struct {
	GFontDescription *C.PangoFontDescription
}

func NewFontDescription

func NewFontDescription() *FontDescription

func (*FontDescription) Copy

func (v *FontDescription) Copy() *FontDescription

func (*FontDescription) Free

func (v *FontDescription) Free()

func (*FontDescription) GetSize

func (f *FontDescription) GetSize() int

func (*FontDescription) SetSize

func (v *FontDescription) SetSize(size int)

type Layout

type Layout struct {
	GLayout *C.PangoLayout
}

func NewLayout

func NewLayout(ctx *Context) *Layout

func (*Layout) SetFontDescription

func (v *Layout) SetFontDescription(d *FontDescription)

func (*Layout) SetText

func (v *Layout) SetText(s string)

func (*Layout) SetWidth

func (v *Layout) SetWidth(width int)

func (*Layout) Unref

func (v *Layout) Unref()

type WrapMode

type WrapMode int
const (
	WRAP_WORD      WrapMode = 0
	WRAP_CHAR      WrapMode = 1
	WRAP_WORD_CHAR WrapMode = 2
)

Jump to

Keyboard shortcuts

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