pango

package
v0.0.0-...-0ceb344 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: ISC Imports: 4 Imported by: 1

Documentation

Overview

Go bindings for Pango.

Index

Constants

View Source
const (
	ATTR_INDEX_FROM_TEXT_BEGINNING uint = 0
	ATTR_INDEX_TO_TEXT_END         uint = C.G_MAXUINT
)
View Source
const (
	PANGO_SCALE = C.PANGO_SCALE
)
View Source
const (
	SCALE int = 1024
)

Variables

This section is empty.

Functions

func CairoErrorUnderlinePath

func CairoErrorUnderlinePath(cr *cairo.Context, x, y, width, height float64)

void pango_cairo_error_underline_path (cairo_t *cr,

double         x,
double         y,
double         width,
double         height);

func CairoGlyphStringPath

func CairoGlyphStringPath(cr *cairo.Context, font *Font, glyphs *GlyphString)

void pango_cairo_glyph_string_path (cairo_t *cr,

PangoFont        *font,
PangoGlyphString *glyphs);

func CairoLayoutLinePath

func CairoLayoutLinePath(cr *cairo.Context, line *LayoutLine)

void pango_cairo_layout_line_path (cairo_t *cr,

PangoLayoutLine  *line);

func CairoLayoutPath

func CairoLayoutPath(cr *cairo.Context, layout *Layout)

void pango_cairo_layout_path (cairo_t *cr,

PangoLayout      *layout);

func CairoShowGlyphItem

func CairoShowGlyphItem(cr *cairo.Context, text string, glyph_item *GlyphItem)

void pango_cairo_show_glyph_item (cairo_t *cr,

const char       *text,
PangoGlyphItem   *glyph_item);

func CairoShowGlyphString

func CairoShowGlyphString(cr *cairo.Context, font *Font, glyphs *GlyphString)
  • Rendering

void pango_cairo_show_glyph_string (cairo_t *cr,

PangoFont        *font,
PangoGlyphString *glyphs);

func CairoShowLayout

func CairoShowLayout(cr *cairo.Context, layout *Layout)

void pango_cairo_show_layout (cairo_t *cr,

PangoLayout      *layout);

func CairoShowLayoutLine

func CairoShowLayoutLine(cr *cairo.Context, line *LayoutLine)

void pango_cairo_show_layout_line (cairo_t *cr,

PangoLayoutLine  *line);

func CairoUpdateLayout

func CairoUpdateLayout(cr *cairo.Context, v *Layout)

void pango_cairo_update_layout (cairo_t *cr,

PangoLayout *layout);

func GravityToRotation

func GravityToRotation(gravity Gravity) float64

double pango_gravity_to_rotation (PangoGravity gravity) G_GNUC_CONST;

Types

type Alignment

type Alignment int

Alignment is a representation of Pango's PangoAlignment.

const (
	ALIGN_LEFT   Alignment = C.PANGO_ALIGN_LEFT
	ALIGN_CENTER Alignment = C.PANGO_ALIGN_CENTER
	ALIGN_RIGHT  Alignment = C.PANGO_ALIGN_RIGHT
)

type AttrClass

type AttrClass struct {
}

AttrClass is a representation of Pango's PangoAttrClass.

type AttrColor

type AttrColor struct {
	Attribute
	Color
}

AttrColor is a representation of Pango's AttrColor.

type AttrFloat

type AttrFloat struct {
	Attribute
}

AttrFloat is a representation of Pango's PangoAttrFloat.

type AttrFontDesc

type AttrFontDesc struct {
	Attribute
}

AttrFontDesc is a representation of Pango's PangoAttrFontDesc.

type AttrInt

type AttrInt struct {
	Attribute
}

AttrInt is a representation of Pango's PangoAttrInt.

type AttrLanguage

type AttrLanguage struct {
	Attribute
}

AttrLanguage is a representation of Pango's PangoAttrLanguage.

type AttrList

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

AttrList is a representation of PangoAttrList.

func (*AttrList) Native

func (v *AttrList) Native() uintptr

Native returns a pointer to the underlying PangoLayout.

type AttrShape

type AttrShape struct {
	Attribute
}

AttrShape is a representation of Pango's PangoAttrShape.

type AttrSize

type AttrSize struct {
	Attribute
}

AttrSize is a representation of Pango's PangoAttrSize.

type AttrString

type AttrString struct {
	Attribute
}

AttrString is a representation of Pango's PangoAttrString.

type AttrType

type AttrType int

AttrType is a representation of Pango's PangoAttrType.

const (
	ATTR_INVALID             AttrType = C.PANGO_ATTR_INVALID             /* 0 is an invalid attribute type */
	ATTR_LANGUAGE            AttrType = C.PANGO_ATTR_LANGUAGE            /* PangoAttrLanguage */
	ATTR_FAMILY              AttrType = C.PANGO_ATTR_FAMILY              /* PangoAttrString */
	ATTR_STYLE               AttrType = C.PANGO_ATTR_STYLE               /* PangoAttrInt */
	ATTR_WEIGHT              AttrType = C.PANGO_ATTR_WEIGHT              /* PangoAttrInt */
	ATTR_VARIANT             AttrType = C.PANGO_ATTR_VARIANT             /* PangoAttrInt */
	ATTR_STRETCH             AttrType = C.PANGO_ATTR_STRETCH             /* PangoAttrInt */
	ATTR_SIZE                AttrType = C.PANGO_ATTR_SIZE                /* PangoAttrSize */
	ATTR_FONT_DESC           AttrType = C.PANGO_ATTR_FONT_DESC           /* PangoAttrFontDesc */
	ATTR_FOREGROUND          AttrType = C.PANGO_ATTR_FOREGROUND          /* PangoAttrColor */
	ATTR_BACKGROUND          AttrType = C.PANGO_ATTR_BACKGROUND          /* PangoAttrColor */
	ATTR_UNDERLINE           AttrType = C.PANGO_ATTR_UNDERLINE           /* PangoAttrInt */
	ATTR_STRIKETHROUGH       AttrType = C.PANGO_ATTR_STRIKETHROUGH       /* PangoAttrInt */
	ATTR_RISE                AttrType = C.PANGO_ATTR_RISE                /* PangoAttrInt */
	ATTR_SHAPE               AttrType = C.PANGO_ATTR_SHAPE               /* PangoAttrShape */
	ATTR_SCALE               AttrType = C.PANGO_ATTR_SCALE               /* PangoAttrFloat */
	ATTR_FALLBACK            AttrType = C.PANGO_ATTR_FALLBACK            /* PangoAttrInt */
	ATTR_LETTER_SPACING      AttrType = C.PANGO_ATTR_LETTER_SPACING      /* PangoAttrInt */
	ATTR_UNDERLINE_COLOR     AttrType = C.PANGO_ATTR_UNDERLINE_COLOR     /* PangoAttrColor */
	ATTR_STRIKETHROUGH_COLOR AttrType = C.PANGO_ATTR_STRIKETHROUGH_COLOR /* PangoAttrColor */
	ATTR_ABSOLUTE_SIZE       AttrType = C.PANGO_ATTR_ABSOLUTE_SIZE       /* PangoAttrSize */
	ATTR_GRAVITY             AttrType = C.PANGO_ATTR_GRAVITY             /* PangoAttrInt */
	ATTR_GRAVITY_HINT        AttrType = C.PANGO_ATTR_GRAVITY_HINT        /* PangoAttrInt */

)

type Attribute

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

Attribute is a representation of Pango's PangoAttribute.

func (*Attribute) Native

func (v *Attribute) Native() uintptr

Native returns a pointer to the underlying PangoColor.

type Color

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

Color is a representation of PangoColor.

func (*Color) Copy

func (v *Color) Copy(c *Color) *Color

PangoColor *pango_color_copy (const PangoColor *src);

func (*Color) Free

func (v *Color) Free()

void pango_color_free (PangoColor *color);

func (*Color) Get

func (v *Color) Get() (red, green, blue uint16)

func (*Color) Native

func (v *Color) Native() uintptr

Native returns a pointer to the underlying PangoColor.

func (*Color) Parse

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

gboolean pango_color_parse (PangoColor *color,

const char       *spec);

func (*Color) Set

func (v *Color) Set(red, green, blue uint16)

func (*Color) ToString

func (v *Color) ToString() string

gchar *pango_color_to_string(const PangoColor *color);

type Context

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

Context is a representation of PangoContext.

func CairoCreateContext

func CairoCreateContext(cr *cairo.Context) *Context
Convenience

PangoContext *pango_cairo_create_context (cairo_t *cr);

func ContextNew

func ContextNew() *Context

PangoContext *pango_context_new (void);

func WrapContext

func WrapContext(p uintptr) *Context
func marshalContext(p uintptr) (interface{}, error) {
	c := C.g_value_get_object((*C.GValue)(unsafe.Pointer(p)))
	obj := wrapObject(unsafe.Pointer(c))
	return wrapContext(obj), nil
}
func wrapContext(obj *glib.Object) *Context {
	return &Context{obj}
}

func (*Context) Native

func (v *Context) Native() uintptr

Native returns a pointer to the underlying PangoLayout.

type EllipsizeMode

type EllipsizeMode int

EllipsizeMode is a representation of Pango's PangoEllipsizeMode.

const (
	ELLIPSIZE_NONE   EllipsizeMode = C.PANGO_ELLIPSIZE_NONE
	ELLIPSIZE_START  EllipsizeMode = C.PANGO_ELLIPSIZE_START
	ELLIPSIZE_MIDDLE EllipsizeMode = C.PANGO_ELLIPSIZE_MIDDLE
	ELLIPSIZE_END    EllipsizeMode = C.PANGO_ELLIPSIZE_END
)

type EngineLang

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

EngineLang is a representation of PangoEngineLang.

func (*EngineLang) Native

func (v *EngineLang) Native() uintptr

Native returns a pointer to the underlying PangoLayout.

type EngineShape

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

EngineShape is a representation of PangoEngineShape.

func (*EngineShape) Native

func (v *EngineShape) Native() uintptr

Native returns a pointer to the underlying PangoLayout.

type Font

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

Font is a representation of PangoFont.

func (*Font) Native

func (v *Font) Native() uintptr

Native returns a pointer to the underlying PangoLayout.

type FontDescription

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

FontDescription is a representation of PangoFontDescription.

func FontDescriptionFromString

func FontDescriptionFromString(str string) *FontDescription

PangoFontDescription *pango_font_description_from_string (const char *str);

func FontDescriptionNew

func FontDescriptionNew() *FontDescription

PangoFontDescription *pango_font_description_new (void);

func (*FontDescription) BetterMatch

func (v *FontDescription) BetterMatch(old_match, new_match *FontDescription) bool

gboolean pango_font_description_better_match (const PangoFontDescription *desc,

const PangoFontDescription *old_match,
const PangoFontDescription *new_match) G_GNUC_PURE;

func (*FontDescription) Copy

func (v *FontDescription) Copy() *FontDescription

PangoFontDescription *pango_font_description_copy (const PangoFontDescription *desc);

func (*FontDescription) CopyStatic

func (v *FontDescription) CopyStatic() *FontDescription

PangoFontDescription *pango_font_description_copy_static (const PangoFontDescription *desc);

func (*FontDescription) Equal

func (v *FontDescription) Equal(v2 *FontDescription) bool

gboolean pango_font_description_equal (const PangoFontDescription *desc1,

const PangoFontDescription  *desc2) G_GNUC_PURE;

func (*FontDescription) Free

func (v *FontDescription) Free()

void pango_font_description_free (PangoFontDescription *desc);

func (*FontDescription) GetFamily

func (v *FontDescription) GetFamily() string

const char *pango_font_description_get_family (const PangoFontDescription *desc) G_GNUC_PURE;

func (*FontDescription) GetGravity

func (v *FontDescription) GetGravity() Gravity

PangoGravity pango_font_description_get_gravity (const PangoFontDescription *desc) G_GNUC_PURE;

func (*FontDescription) GetSetFields

func (v *FontDescription) GetSetFields() FontMask

PangoFontMask pango_font_description_get_set_fields (const PangoFontDescription *desc) G_GNUC_PURE;

func (*FontDescription) GetSize

func (v *FontDescription) GetSize() int

gint pango_font_description_get_size (const PangoFontDescription *desc) G_GNUC_PURE;

func (*FontDescription) GetSizeIsAbsolute

func (v *FontDescription) GetSizeIsAbsolute() bool

gboolean pango_font_description_get_size_is_absolute (const PangoFontDescription *desc) G_GNUC_PURE;

func (*FontDescription) GetStretch

func (v *FontDescription) GetStretch() Stretch

PangoStretch pango_font_description_get_stretch (const PangoFontDescription *desc) G_GNUC_PURE;

func (*FontDescription) GetStyle

func (v *FontDescription) GetStyle() Style

PangoStyle pango_font_description_get_style (const PangoFontDescription *desc) G_GNUC_PURE;

func (*FontDescription) GetUnsetFields

func (v *FontDescription) GetUnsetFields(to_unset FontMask)

void pango_font_description_unset_fields (PangoFontDescription *desc,

PangoFontMask               to_unset);

func (*FontDescription) GetWeight

func (v *FontDescription) GetWeight() Weight

PangoWeight pango_font_description_get_weight (const PangoFontDescription *desc) G_GNUC_PURE;

func (*FontDescription) Hash

func (v *FontDescription) Hash() uint

guint pango_font_description_hash (const PangoFontDescription *desc) G_GNUC_PURE;

func (*FontDescription) Merge

func (v *FontDescription) Merge(desc_to_merge *FontDescription, replace_existing bool)

void pango_font_description_merge (PangoFontDescription *desc,

const PangoFontDescription *desc_to_merge,
gboolean                    replace_existing);

func (*FontDescription) MergeStatic

func (v *FontDescription) MergeStatic(desc_to_merge *FontDescription, replace_existing bool)

void pango_font_description_merge_static (PangoFontDescription *desc,

const PangoFontDescription *desc_to_merge,
gboolean                    replace_existing);

func (*FontDescription) Native

func (v *FontDescription) Native() uintptr

Native returns a pointer to the underlying PangoLayout.

func (*FontDescription) SetAbsoluteSize

func (v *FontDescription) SetAbsoluteSize(size float64)

void pango_font_description_set_absolute_size (PangoFontDescription *desc,

double                size);

func (*FontDescription) SetFamily

func (v *FontDescription) SetFamily(family string)

void pango_font_description_set_family (PangoFontDescription *desc,

const char           *family);

func (*FontDescription) SetFamilyStatic

func (v *FontDescription) SetFamilyStatic(family string)

void pango_font_description_set_family_static (PangoFontDescription *desc,

const char           *family);

func (*FontDescription) SetGravity

func (v *FontDescription) SetGravity(gravity Gravity)

void pango_font_description_set_gravity (PangoFontDescription *desc,

PangoGravity          gravity);

func (*FontDescription) SetSize

func (v *FontDescription) SetSize(size int)

void pango_font_description_set_size (PangoFontDescription *desc,

gint                  size);

func (*FontDescription) SetStretch

func (v *FontDescription) SetStretch(stretch Stretch)

void pango_font_description_set_stretch (PangoFontDescription *desc,

PangoStretch          stretch);

func (*FontDescription) SetStyle

func (v *FontDescription) SetStyle(style Style)

void pango_font_description_set_style (PangoFontDescription *desc,

PangoStyle            style);

func (*FontDescription) SetWeight

func (v *FontDescription) SetWeight(weight Weight)

void pango_font_description_set_weight (PangoFontDescription *desc,

PangoWeight           weight);

func (*FontDescription) ToFilename

func (v *FontDescription) ToFilename() string

char * pango_font_description_to_filename (const PangoFontDescription *desc);

func (*FontDescription) ToString

func (v *FontDescription) ToString() string

char * pango_font_description_to_string (const PangoFontDescription *desc);

type FontMap

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

FontMap is a representation of PangoFontMap.

func WrapFontMap

func WrapFontMap(p uintptr) *FontMap

func (*FontMap) Native

func (v *FontMap) Native() uintptr

Native returns a pointer to the underlying PangoLayout.

type FontMask

type FontMask int
const (
	FONT_MASK_FAMILY          FontMask = C.PANGO_FONT_MASK_FAMILY  /*  1 << 0 */
	FONT_MASK_STYLEFontMask   FontMask = C.PANGO_FONT_MASK_STYLE   /*  1 << 1 */
	FONT_MASK_VARIANTFontMask FontMask = C.PANGO_FONT_MASK_VARIANT /*  1 << 2 */
	FONT_MASK_WEIGHTFontMask  FontMask = C.PANGO_FONT_MASK_WEIGHT  /*  1 << 3 */
	FONT_MASK_STRETCHFontMask FontMask = C.PANGO_FONT_MASK_STRETCH /*  1 << 4 */
	FONT_MASK_SIZEFontMask    FontMask = C.PANGO_FONT_MASK_SIZE    /*  1 << 5 */
	FONT_MASK_GRAVITYFontMask FontMask = C.PANGO_FONT_MASK_GRAVITY /*  1 << 6 */
)

type FontMetrics

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

FontMetrics is a representation of PangoFontMetrics.

func (*FontMetrics) Native

func (v *FontMetrics) Native() uintptr

Native returns a pointer to the underlying PangoLayout.

type Glyph

type Glyph uint32

Glyph is a representation of PangoGlyph

type GlyphGeometry

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

GlyphGeometry is a representation of PangoGlyphGeometry.

func (*GlyphGeometry) Native

func (v *GlyphGeometry) Native() uintptr

Native returns a pointer to the underlying PangoLayout.

type GlyphInfo

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

GlyphInfo is a representation of PangoGlyphInfo.

func (*GlyphInfo) Native

func (v *GlyphInfo) Native() uintptr

Native returns a pointer to the underlying PangoGlyphInfo.

type GlyphItem

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

GlyphItem is a representation of PangoGlyphItem.

func (*GlyphItem) Native

func (v *GlyphItem) Native() uintptr

Native returns a pointer to the underlying PangoGlyphItem.

type GlyphString

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

GlyphGeometry is a representation of PangoGlyphString.

func (*GlyphString) Native

func (v *GlyphString) Native() uintptr

Native returns a pointer to the underlying PangoGlyphString.

type GlyphVisAttr

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

GlyphVisAttr is a representation of PangoGlyphVisAttr.

func (*GlyphVisAttr) Native

func (v *GlyphVisAttr) Native() uintptr

Native returns a pointer to the underlying PangoGlyphVisAttr.

type Gravity

type Gravity int
const (
	GRAVITY_SOUTH Gravity = C.PANGO_GRAVITY_SOUTH
	GRAVITY_EAST  Gravity = C.PANGO_GRAVITY_EAST
	GRAVITY_NORTH Gravity = C.PANGO_GRAVITY_NORTH
	GRAVITY_WEST  Gravity = C.PANGO_GRAVITY_WEST
	GRAVITY_AUTO  Gravity = C.PANGO_GRAVITY_AUTO
)

type GravityHint

type GravityHint int
const (
	GRAVITY_HINT_NATURAL GravityHint = C.PANGO_GRAVITY_HINT_NATURAL
	GRAVITY_HINT_STRONG  GravityHint = C.PANGO_GRAVITY_HINT_STRONG
	GRAVITY_HINT_LINE    GravityHint = C.PANGO_GRAVITY_HINT_LINE
)

type Layout

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

Layout is a representation of PangoLayout.

func CairoCreateLayout

func CairoCreateLayout(cr *cairo.Context) *Layout

PangoLayout *pango_cairo_create_layout (cairo_t *cr);

func LayoutNew

func LayoutNew(context *Context) *Layout

PangoLayout *pango_layout_new (PangoContext *context);

func WrapLayout

func WrapLayout(p uintptr) *Layout

func (*Layout) Copy

func (v *Layout) Copy() *Layout

PangoLayout *pango_layout_copy (PangoLayout *src);

func (*Layout) GetAttributes

func (v *Layout) GetAttributes() *AttrList

PangoAttrList *pango_layout_get_attributes (PangoLayout *layout);

func (*Layout) GetCharacterCount

func (v *Layout) GetCharacterCount() int

gint pango_layout_get_character_count (PangoLayout *layout);

func (*Layout) GetContext

func (v *Layout) GetContext() *Context

PangoContext *pango_layout_get_context (PangoLayout *layout);

func (*Layout) GetFontDescription

func (v *Layout) GetFontDescription() *FontDescription

func (*Layout) GetHeight

func (v *Layout) GetHeight() int

func (*Layout) GetIndent

func (v *Layout) GetIndent() int

func (*Layout) GetSize

func (v *Layout) GetSize() (int, int)

void pango_layout_get_size (PangoLayout *layout,

int            *width,
int            *height);

func (*Layout) GetText

func (v *Layout) GetText() string

const char *pango_layout_get_text (PangoLayout *layout);

func (*Layout) GetWidth

func (v *Layout) GetWidth() int

func (*Layout) GetWrap

func (v *Layout) GetWrap() WrapMode

func (*Layout) IsWrapped

func (v *Layout) IsWrapped() bool

func (*Layout) Native

func (v *Layout) Native() uintptr

Native returns a pointer to the underlying PangoLayout.

func (*Layout) SetAttributes

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

void pango_layout_set_attributes (PangoLayout *layout,

PangoAttrList  *attrs);

func (*Layout) SetFontDescription

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

func (*Layout) SetHeight

func (v *Layout) SetHeight(width int)

func (*Layout) SetIndent

func (v *Layout) SetIndent(indent int)

func (*Layout) SetMarkup

func (v *Layout) SetMarkup(text string, length int)

void pango_layout_set_markup (PangoLayout *layout,

const char     *markup,
int             length);

func (*Layout) SetText

func (v *Layout) SetText(text string, length int)

void pango_layout_set_text (PangoLayout *layout,

const char     *text,
int             length);

func (*Layout) SetWidth

func (v *Layout) SetWidth(width int)

func (*Layout) SetWrap

func (v *Layout) SetWrap(wrap WrapMode)

type LayoutLine

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

LayoutLine is a representation of PangoLayoutLine.

func (*LayoutLine) Native

func (v *LayoutLine) Native() uintptr

Native returns a pointer to the underlying PangoLayoutLine.

type LogAttr

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

LogAttr is a representation of PangoLogAttr.

func (*LogAttr) Native

func (v *LogAttr) Native() uintptr

Native returns a pointer to the underlying PangoLayout.

type Rectangle

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

Rectangle is a representation of PangoRectangle.

func RectangleNew

func RectangleNew(x, y, width, height int) *Rectangle

func (*Rectangle) ExtentsToPixels

func (inclusive *Rectangle) ExtentsToPixels(nearest *Rectangle)

void pango_extents_to_pixels (PangoRectangle *inclusive,

PangoRectangle *nearest);

func (*Rectangle) Native

func (v *Rectangle) Native() uintptr

Native returns a pointer to the underlying PangoLayout.

type Scale

type Scale float64
const (
	SCALE_XX_SMALL Scale = 0.5787037037037
	SCALE_X_SMALL  Scale = 0.6444444444444
	SCALE_SMALL    Scale = 0.8333333333333
	SCALE_MEDIUM   Scale = 1.0
	SCALE_LARGE    Scale = 1.2
	SCALE_X_LARGE  Scale = 1.4399999999999
	SCALE_XX_LARGE Scale = 1.728
)

type Stretch

type Stretch int
const (
	STRETCH_ULTRA_CONDENSED        Stretch = C.PANGO_STRETCH_ULTRA_CONDENSED
	STRETCH_EXTRA_CONDENSEDStretch Stretch = C.PANGO_STRETCH_EXTRA_CONDENSED
	STRETCH_CONDENSEDStretch       Stretch = C.PANGO_STRETCH_CONDENSED
	STRETCH_SEMI_CONDENSEDStretch  Stretch = C.PANGO_STRETCH_SEMI_CONDENSED
	STRETCH_NORMALStretch          Stretch = C.PANGO_STRETCH_NORMAL
	STRETCH_SEMI_EXPANDEDStretch   Stretch = C.PANGO_STRETCH_SEMI_EXPANDED
	STRETCH_EXPANDEDStretch        Stretch = C.PANGO_STRETCH_EXPANDED
	STRETCH_EXTRA_EXPANDEDStretch  Stretch = C.PANGO_STRETCH_EXTRA_EXPANDED
	STRETCH_ULTRA_EXPANDEDStretch  Stretch = C.PANGO_STRETCH_ULTRA_EXPANDED
)

type Style

type Style int
const (
	STYLE_NORMAL  Style = C.PANGO_STYLE_NORMAL
	STYLE_OBLIQUE Style = C.PANGO_STYLE_OBLIQUE
	STYLE_ITALIC  Style = C.PANGO_STYLE_ITALIC
)

type Underline

type Underline int

Underline is a representation of Pango's PangoUnderline.

const (
	UNDERLINE_NONE   Underline = C.PANGO_UNDERLINE_NONE
	UNDERLINE_SINGLE Underline = C.PANGO_UNDERLINE_SINGLE
	UNDERLINE_DOUBLE Underline = C.PANGO_UNDERLINE_DOUBLE
	UNDERLINE_LOW    Underline = C.PANGO_UNDERLINE_LOW
	UNDERLINE_ERROR  Underline = C.PANGO_UNDERLINE_ERROR
)

type Variant

type Variant int
const (
	VARIANT_NORMAL     Variant = C.PANGO_VARIANT_NORMAL
	VARIANT_SMALL_CAPS Variant = C.PANGO_VARIANT_SMALL_CAPS
)

type Weight

type Weight int
const (
	WEIGHT_THIN       Weight = C.PANGO_WEIGHT_THIN       /* 100 */
	WEIGHT_ULTRALIGHT Weight = C.PANGO_WEIGHT_ULTRALIGHT /* 200 */
	WEIGHT_LIGHT      Weight = C.PANGO_WEIGHT_LIGHT      /* 300 */
	WEIGHT_SEMILIGHT  Weight = 350                       /* 350 */
	WEIGHT_BOOK       Weight = C.PANGO_WEIGHT_BOOK       /* 380 */
	WEIGHT_NORMAL     Weight = C.PANGO_WEIGHT_NORMAL     /* 400 */
	WEIGHT_MEDIUM     Weight = C.PANGO_WEIGHT_MEDIUM     /* 500 */
	WEIGHT_SEMIBOLD   Weight = C.PANGO_WEIGHT_SEMIBOLD   /* 600 */
	WEIGHT_BOLD       Weight = C.PANGO_WEIGHT_BOLD       /* 700 */
	WEIGHT_ULTRABOLD  Weight = C.PANGO_WEIGHT_ULTRABOLD  /* 800 */
	WEIGHT_HEAVY      Weight = C.PANGO_WEIGHT_HEAVY      /* 900 */
	WEIGHT_ULTRAHEAVY Weight = C.PANGO_WEIGHT_ULTRAHEAVY /* 1000 */

)

type WrapMode

type WrapMode int

WrapMode is a representation of Pango's PangoWrapMode.

const (
	WRAP_WORD      WrapMode = C.PANGO_WRAP_WORD
	WRAP_CHAR      WrapMode = C.PANGO_WRAP_CHAR
	WRAP_WORD_CHAR WrapMode = C.PANGO_WRAP_WORD_CHAR
)

Jump to

Keyboard shortcuts

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