gotk3: github.com/gotk3/gotk3/pango Index | Files

package pango

import "github.com/gotk3/gotk3/pango"

Go bindings for Pango.

Index

Package Files

pango-attributes.go pango-context.go pango-font.go pango-glyph-item.go pango-glyph.go pango-gravity.go pango-layout.go pango-types.go pango.go pangocairo.go

Constants

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

func AddFont Uses

func AddFont(fontPath string)

AddFont adds the font to the configuration.

func CairoErrorUnderlinePath Uses

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 Uses

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

void pango_cairo_glyph_string_path (cairo_t *cr,

PangoFont        *font,
PangoGlyphString *glyphs);

func CairoLayoutLinePath Uses

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

void pango_cairo_layout_line_path (cairo_t *cr,

PangoLayoutLine  *line);

func CairoLayoutPath Uses

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

void pango_cairo_layout_path (cairo_t *cr,

PangoLayout      *layout);

func CairoShowGlyphItem Uses

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 Uses

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 Uses

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

void pango_cairo_show_layout (cairo_t *cr,

PangoLayout      *layout);

func CairoShowLayoutLine Uses

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

void pango_cairo_show_layout_line (cairo_t *cr,

PangoLayoutLine  *line);

func CairoUpdateLayout Uses

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

void pango_cairo_update_layout (cairo_t *cr,

PangoLayout *layout);

func GravityToRotation Uses

func GravityToRotation(gravity Gravity) float64

double pango_gravity_to_rotation (PangoGravity gravity) G_GNUC_CONST;

type Alignment Uses

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 Uses

type AttrClass struct {
}

AttrClass is a representation of Pango's PangoAttrClass.

type AttrColor Uses

type AttrColor struct {
    Attribute
    Color
}

AttrColor is a representation of Pango's AttrColor.

type AttrFloat Uses

type AttrFloat struct {
    Attribute
}

AttrFloat is a representation of Pango's PangoAttrFloat.

type AttrFontDesc Uses

type AttrFontDesc struct {
    Attribute
}

AttrFontDesc is a representation of Pango's PangoAttrFontDesc.

type AttrInt Uses

type AttrInt struct {
    Attribute
}

AttrInt is a representation of Pango's PangoAttrInt.

type AttrLanguage Uses

type AttrLanguage struct {
    Attribute
}

AttrLanguage is a representation of Pango's PangoAttrLanguage.

type AttrList Uses

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

AttrList is a representation of PangoAttrList.

func (*AttrList) Native Uses

func (v *AttrList) Native() uintptr

Native returns a pointer to the underlying PangoLayout.

type AttrShape Uses

type AttrShape struct {
    Attribute
}

AttrShape is a representation of Pango's PangoAttrShape.

type AttrSize Uses

type AttrSize struct {
    Attribute
}

AttrSize is a representation of Pango's PangoAttrSize.

type AttrString Uses

type AttrString struct {
    Attribute
}

AttrString is a representation of Pango's PangoAttrString.

type AttrType Uses

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 Uses

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

Attribute is a representation of Pango's PangoAttribute.

func (*Attribute) Native Uses

func (v *Attribute) Native() uintptr

Native returns a pointer to the underlying PangoColor.

type Color Uses

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

Color is a representation of PangoColor.

func (*Color) Copy Uses

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

PangoColor *pango_color_copy (const PangoColor *src);

func (*Color) Free Uses

func (v *Color) Free()

void pango_color_free (PangoColor *color);

func (*Color) Get Uses

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

func (*Color) Native Uses

func (v *Color) Native() uintptr

Native returns a pointer to the underlying PangoColor.

func (*Color) Parse Uses

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

gboolean pango_color_parse (PangoColor *color,

const char       *spec);

func (*Color) Set Uses

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

func (*Color) ToString Uses

func (v *Color) ToString() string

gchar *pango_color_to_string(const PangoColor *color);

type Context Uses

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

Context is a representation of PangoContext.

func CairoCreateContext Uses

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

PangoContext *pango_cairo_create_context (cairo_t *cr);

func ContextNew Uses

func ContextNew() *Context

PangoContext *pango_context_new (void);

func WrapContext Uses

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 Uses

func (v *Context) Native() uintptr

Native returns a pointer to the underlying PangoLayout.

type EllipsizeMode Uses

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 Uses

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

EngineLang is a representation of PangoEngineLang.

func (*EngineLang) Native Uses

func (v *EngineLang) Native() uintptr

Native returns a pointer to the underlying PangoLayout.

type EngineShape Uses

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

EngineShape is a representation of PangoEngineShape.

func (*EngineShape) Native Uses

func (v *EngineShape) Native() uintptr

Native returns a pointer to the underlying PangoLayout.

type Font Uses

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

Font is a representation of PangoFont.

func (*Font) Native Uses

func (v *Font) Native() uintptr

Native returns a pointer to the underlying PangoLayout.

type FontDescription Uses

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

FontDescription is a representation of PangoFontDescription.

func FontDescriptionFromString Uses

func FontDescriptionFromString(str string) *FontDescription

PangoFontDescription *pango_font_description_from_string (const char *str);

func FontDescriptionNew Uses

func FontDescriptionNew() *FontDescription

PangoFontDescription *pango_font_description_new (void);

func (*FontDescription) BetterMatch Uses

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 Uses

func (v *FontDescription) Copy() *FontDescription

PangoFontDescription *pango_font_description_copy (const PangoFontDescription *desc);

func (*FontDescription) CopyStatic Uses

func (v *FontDescription) CopyStatic() *FontDescription

PangoFontDescription *pango_font_description_copy_static (const PangoFontDescription *desc);

func (*FontDescription) Equal Uses

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

gboolean pango_font_description_equal (const PangoFontDescription *desc1,

const PangoFontDescription  *desc2) G_GNUC_PURE;

func (*FontDescription) Free Uses

func (v *FontDescription) Free()

void pango_font_description_free (PangoFontDescription *desc);

func (*FontDescription) GetFamily Uses

func (v *FontDescription) GetFamily() string

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

func (*FontDescription) GetGravity Uses

func (v *FontDescription) GetGravity() Gravity

PangoGravity pango_font_description_get_gravity (const PangoFontDescription *desc) G_GNUC_PURE;

func (*FontDescription) GetSetFields Uses

func (v *FontDescription) GetSetFields() FontMask

PangoFontMask pango_font_description_get_set_fields (const PangoFontDescription *desc) G_GNUC_PURE;

func (*FontDescription) GetSize Uses

func (v *FontDescription) GetSize() int

gint pango_font_description_get_size (const PangoFontDescription *desc) G_GNUC_PURE;

func (*FontDescription) GetSizeIsAbsolute Uses

func (v *FontDescription) GetSizeIsAbsolute() bool

gboolean pango_font_description_get_size_is_absolute (const PangoFontDescription *desc) G_GNUC_PURE;

func (*FontDescription) GetStretch Uses

func (v *FontDescription) GetStretch() Stretch

PangoStretch pango_font_description_get_stretch (const PangoFontDescription *desc) G_GNUC_PURE;

func (*FontDescription) GetStyle Uses

func (v *FontDescription) GetStyle() Style

PangoStyle pango_font_description_get_style (const PangoFontDescription *desc) G_GNUC_PURE;

func (*FontDescription) GetUnsetFields Uses

func (v *FontDescription) GetUnsetFields(to_unset FontMask)

void pango_font_description_unset_fields (PangoFontDescription *desc,

PangoFontMask               to_unset);

func (*FontDescription) GetWeight Uses

func (v *FontDescription) GetWeight() Weight

PangoWeight pango_font_description_get_weight (const PangoFontDescription *desc) G_GNUC_PURE;

func (*FontDescription) Hash Uses

func (v *FontDescription) Hash() uint

guint pango_font_description_hash (const PangoFontDescription *desc) G_GNUC_PURE;

func (*FontDescription) Merge Uses

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 Uses

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 Uses

func (v *FontDescription) Native() uintptr

Native returns a pointer to the underlying PangoLayout.

func (*FontDescription) SetAbsoluteSize Uses

func (v *FontDescription) SetAbsoluteSize(size float64)

void pango_font_description_set_absolute_size (PangoFontDescription *desc,

double                size);

func (*FontDescription) SetFamily Uses

func (v *FontDescription) SetFamily(family string)

void pango_font_description_set_family (PangoFontDescription *desc,

const char           *family);

func (*FontDescription) SetFamilyStatic Uses

func (v *FontDescription) SetFamilyStatic(family string)

void pango_font_description_set_family_static (PangoFontDescription *desc,

const char           *family);

func (*FontDescription) SetGravity Uses

func (v *FontDescription) SetGravity(gravity Gravity)

void pango_font_description_set_gravity (PangoFontDescription *desc,

PangoGravity          gravity);

func (*FontDescription) SetSize Uses

func (v *FontDescription) SetSize(size int)

void pango_font_description_set_size (PangoFontDescription *desc,

gint                  size);

func (*FontDescription) SetStretch Uses

func (v *FontDescription) SetStretch(stretch Stretch)

void pango_font_description_set_stretch (PangoFontDescription *desc,

PangoStretch          stretch);

func (*FontDescription) SetStyle Uses

func (v *FontDescription) SetStyle(style Style)

void pango_font_description_set_style (PangoFontDescription *desc,

PangoStyle            style);

func (*FontDescription) SetWeight Uses

func (v *FontDescription) SetWeight(weight Weight)

void pango_font_description_set_weight (PangoFontDescription *desc,

PangoWeight           weight);

func (*FontDescription) ToFilename Uses

func (v *FontDescription) ToFilename() string

char * pango_font_description_to_filename (const PangoFontDescription *desc);

func (*FontDescription) ToString Uses

func (v *FontDescription) ToString() string

char * pango_font_description_to_string (const PangoFontDescription *desc);

type FontMap Uses

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

FontMap is a representation of PangoFontMap.

func WrapFontMap Uses

func WrapFontMap(p uintptr) *FontMap

func (*FontMap) Native Uses

func (v *FontMap) Native() uintptr

Native returns a pointer to the underlying PangoLayout.

type FontMask Uses

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 Uses

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

FontMetrics is a representation of PangoFontMetrics.

func (*FontMetrics) Native Uses

func (v *FontMetrics) Native() uintptr

Native returns a pointer to the underlying PangoLayout.

type Glyph Uses

type Glyph uint32

Glyph is a representation of PangoGlyph

type GlyphGeometry Uses

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

GlyphGeometry is a representation of PangoGlyphGeometry.

func (*GlyphGeometry) Native Uses

func (v *GlyphGeometry) Native() uintptr

Native returns a pointer to the underlying PangoLayout.

type GlyphInfo Uses

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

GlyphInfo is a representation of PangoGlyphInfo.

func (*GlyphInfo) Native Uses

func (v *GlyphInfo) Native() uintptr

Native returns a pointer to the underlying PangoGlyphInfo.

type GlyphItem Uses

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

GlyphItem is a representation of PangoGlyphItem.

func (*GlyphItem) Native Uses

func (v *GlyphItem) Native() uintptr

Native returns a pointer to the underlying PangoGlyphItem.

type GlyphString Uses

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

GlyphGeometry is a representation of PangoGlyphString.

func (*GlyphString) Native Uses

func (v *GlyphString) Native() uintptr

Native returns a pointer to the underlying PangoGlyphString.

type GlyphVisAttr Uses

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

GlyphVisAttr is a representation of PangoGlyphVisAttr.

func (*GlyphVisAttr) Native Uses

func (v *GlyphVisAttr) Native() uintptr

Native returns a pointer to the underlying PangoGlyphVisAttr.

type Gravity Uses

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 Uses

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 Uses

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

Layout is a representation of PangoLayout.

func CairoCreateLayout Uses

func CairoCreateLayout(cr *cairo.Context) *Layout

PangoLayout *pango_cairo_create_layout (cairo_t *cr);

func LayoutNew Uses

func LayoutNew(context *Context) *Layout

PangoLayout *pango_layout_new (PangoContext *context);

func WrapLayout Uses

func WrapLayout(p uintptr) *Layout

func (*Layout) Copy Uses

func (v *Layout) Copy() *Layout

PangoLayout *pango_layout_copy (PangoLayout *src);

func (*Layout) GetAttributes Uses

func (v *Layout) GetAttributes() *AttrList

PangoAttrList *pango_layout_get_attributes (PangoLayout *layout);

func (*Layout) GetCharacterCount Uses

func (v *Layout) GetCharacterCount() int

gint pango_layout_get_character_count (PangoLayout *layout);

func (*Layout) GetContext Uses

func (v *Layout) GetContext() *Context

PangoContext *pango_layout_get_context (PangoLayout *layout);

func (*Layout) GetFontDescription Uses

func (v *Layout) GetFontDescription() *FontDescription

func (*Layout) GetHeight Uses

func (v *Layout) GetHeight() int

func (*Layout) GetIndent Uses

func (v *Layout) GetIndent() int

func (*Layout) GetSize Uses

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

void pango_layout_get_size (PangoLayout *layout,

int            *width,
int            *height);

func (*Layout) GetText Uses

func (v *Layout) GetText() string

const char *pango_layout_get_text (PangoLayout *layout);

func (*Layout) GetWidth Uses

func (v *Layout) GetWidth() int

func (*Layout) GetWrap Uses

func (v *Layout) GetWrap() WrapMode

func (*Layout) IsWrapped Uses

func (v *Layout) IsWrapped() bool

func (*Layout) Native Uses

func (v *Layout) Native() uintptr

Native returns a pointer to the underlying PangoLayout.

func (*Layout) SetAttributes Uses

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

void pango_layout_set_attributes (PangoLayout *layout,

PangoAttrList  *attrs);

func (*Layout) SetFontDescription Uses

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

func (*Layout) SetHeight Uses

func (v *Layout) SetHeight(width int)

func (*Layout) SetIndent Uses

func (v *Layout) SetIndent(indent int)

func (*Layout) SetMarkup Uses

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

void pango_layout_set_markup (PangoLayout *layout,

const char     *markup,
int             length);

func (*Layout) SetText Uses

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

void pango_layout_set_text (PangoLayout *layout,

const char     *text,
int             length);

func (*Layout) SetWidth Uses

func (v *Layout) SetWidth(width int)

func (*Layout) SetWrap Uses

func (v *Layout) SetWrap(wrap WrapMode)

type LayoutLine Uses

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

LayoutLine is a representation of PangoLayoutLine.

func (*LayoutLine) Native Uses

func (v *LayoutLine) Native() uintptr

Native returns a pointer to the underlying PangoLayoutLine.

type LogAttr Uses

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

LogAttr is a representation of PangoLogAttr.

func (*LogAttr) Native Uses

func (v *LogAttr) Native() uintptr

Native returns a pointer to the underlying PangoLayout.

type Rectangle Uses

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

Rectangle is a representation of PangoRectangle.

func RectangleNew Uses

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

func (*Rectangle) ExtentsToPixels Uses

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

void pango_extents_to_pixels (PangoRectangle *inclusive,

PangoRectangle *nearest);

func (*Rectangle) Native Uses

func (v *Rectangle) Native() uintptr

Native returns a pointer to the underlying PangoLayout.

type Scale Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

type Weight Uses

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 Uses

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
)

Package pango imports 4 packages (graph) and is imported by 19 packages. Updated 2019-04-03. Refresh now. Tools for package owners.