Documentation ¶
Overview ¶
Go bindings for Pango.
Index ¶
- Constants
- func AddFont(fontPath string)
- func CairoErrorUnderlinePath(cr *cairo.Context, x, y, width, height float64)
- func CairoGlyphStringPath(cr *cairo.Context, font *Font, glyphs *GlyphString)
- func CairoLayoutLinePath(cr *cairo.Context, line *LayoutLine)
- func CairoLayoutPath(cr *cairo.Context, layout *Layout)
- func CairoShowGlyphItem(cr *cairo.Context, text string, glyph_item *GlyphItem)
- func CairoShowGlyphString(cr *cairo.Context, font *Font, glyphs *GlyphString)
- func CairoShowLayout(cr *cairo.Context, layout *Layout)
- func CairoShowLayoutLine(cr *cairo.Context, line *LayoutLine)
- func CairoUpdateLayout(cr *cairo.Context, v *Layout)
- func GravityToRotation(gravity Gravity) float64
- type Alignment
- type AttrClass
- type AttrColor
- type AttrFloat
- type AttrFontDesc
- type AttrInt
- type AttrLanguage
- type AttrList
- type AttrShape
- type AttrSize
- type AttrString
- type AttrType
- type Attribute
- type Color
- type Context
- type EllipsizeMode
- type EngineLang
- type EngineShape
- type Font
- type FontDescription
- func (v *FontDescription) BetterMatch(old_match, new_match *FontDescription) bool
- func (v *FontDescription) Copy() *FontDescription
- func (v *FontDescription) CopyStatic() *FontDescription
- func (v *FontDescription) Equal(v2 *FontDescription) bool
- func (v *FontDescription) Free()
- func (v *FontDescription) GetFamily() string
- func (v *FontDescription) GetGravity() Gravity
- func (v *FontDescription) GetSetFields() FontMask
- func (v *FontDescription) GetSize() int
- func (v *FontDescription) GetSizeIsAbsolute() bool
- func (v *FontDescription) GetStretch() Stretch
- func (v *FontDescription) GetStyle() Style
- func (v *FontDescription) GetUnsetFields(to_unset FontMask)
- func (v *FontDescription) GetVariant() Variant
- func (v *FontDescription) GetWeight() Weight
- func (v *FontDescription) Hash() uint
- func (v *FontDescription) Merge(desc_to_merge *FontDescription, replace_existing bool)
- func (v *FontDescription) MergeStatic(desc_to_merge *FontDescription, replace_existing bool)
- func (v *FontDescription) Native() uintptr
- func (v *FontDescription) SetAbsoluteSize(size float64)
- func (v *FontDescription) SetFamily(family string)
- func (v *FontDescription) SetFamilyStatic(family string)
- func (v *FontDescription) SetGravity(gravity Gravity)
- func (v *FontDescription) SetSize(size int)
- func (v *FontDescription) SetStretch(stretch Stretch)
- func (v *FontDescription) SetStyle(style Style)
- func (v *FontDescription) SetVariant(variant Variant)
- func (v *FontDescription) SetWeight(weight Weight)
- func (v *FontDescription) ToFilename() string
- func (v *FontDescription) ToString() string
- type FontMap
- type FontMask
- type FontMetrics
- type Glyph
- type GlyphGeometry
- type GlyphInfo
- type GlyphItem
- type GlyphString
- type GlyphVisAttr
- type Gravity
- type GravityHint
- type Layout
- func (v *Layout) Copy() *Layout
- func (v *Layout) GetAttributes() *AttrList
- func (v *Layout) GetCharacterCount() int
- func (v *Layout) GetContext() *Context
- func (v *Layout) GetFontDescription() *FontDescription
- func (v *Layout) GetHeight() int
- func (v *Layout) GetIndent() int
- func (v *Layout) GetSize() (int, int)
- func (v *Layout) GetTabs() (*TabArray, error)
- func (v *Layout) GetText() string
- func (v *Layout) GetWidth() int
- func (v *Layout) GetWrap() WrapMode
- func (v *Layout) IsWrapped() bool
- func (v *Layout) Native() uintptr
- func (v *Layout) SetAttributes(attrs *AttrList)
- func (v *Layout) SetFontDescription(desc *FontDescription)
- func (v *Layout) SetHeight(width int)
- func (v *Layout) SetIndent(indent int)
- func (v *Layout) SetMarkup(text string, length int)
- func (v *Layout) SetTabs(tabs *TabArray)
- func (v *Layout) SetText(text string, length int)
- func (v *Layout) SetWidth(width int)
- func (v *Layout) SetWrap(wrap WrapMode)
- type LayoutLine
- type LogAttr
- type Rectangle
- type Scale
- type Stretch
- type Style
- type TabAlign
- type TabArray
- func (v *TabArray) Copy() (*TabArray, error)
- func (v *TabArray) Free()
- func (v *TabArray) GetPositionsInPixels() bool
- func (v *TabArray) GetSize() int
- func (v *TabArray) GetTab(tabIndex int) (TabAlign, int)
- func (v *TabArray) Native() uintptr
- func (v *TabArray) Resize(newSize int)
- func (v *TabArray) SetTab(tabIndex int, alignment TabAlign, location int)
- type Underline
- type Variant
- type Weight
- type WrapMode
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
)
Variables ¶
This section is empty.
Functions ¶
func CairoErrorUnderlinePath ¶
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 CairoShowGlyphItem ¶
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 CairoShowLayoutLine ¶
func CairoShowLayoutLine(cr *cairo.Context, line *LayoutLine)
void pango_cairo_show_layout_line (cairo_t *cr,
PangoLayoutLine *line);
func GravityToRotation ¶
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 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 AttrListNew ¶
func AttrListNew() *AttrList
AttrListNew is a wrapper around "pango_attr_list_new".
func WrapAttrList ¶ added in v0.6.2
WrapAttrList wraps a unsafe.Pointer as a AttrList. This function is exported for visibility in other gotk3 packages and is not meant to be used by applications.
func (*AttrList) GetAttributes ¶ added in v0.6.2
GetAttributes is a wrapper around "pango_attr_list_get_attributes".
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 */ )
var (
ATTR_INSERT_HYPHENS AttrType = C.PANGO_ATTR_INSERT_HYPHENS
)
type Attribute ¶
type Attribute struct {
// contains filtered or unexported fields
}
Attribute is a representation of Pango's PangoAttribute.
func AttrInsertHyphensNew ¶
func (*Attribute) GetEndIndex ¶ added in v0.6.2
GetEndIndex returns the index of the end of the attribute application in the text.
func (*Attribute) GetStartIndex ¶ added in v0.6.2
GetStartIndex returns the index of the start of the attribute application in the text.
func (*Attribute) SetEndIndex ¶ added in v0.6.2
SetEndIndex the index of the end of the attribute application in the text.
func (*Attribute) SetStartIndex ¶ added in v0.6.2
SetStartIndex sets the index of the start of the attribute application in the text.
type Color ¶
type Color struct {
// contains filtered or unexported fields
}
Color is a representation of PangoColor.
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context is a representation of PangoContext.
func WrapContext ¶
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} }
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.
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) GetVariant ¶
func (v *FontDescription) GetVariant() Variant
PangoVariant pango_font_description_get_variant (const PangoFontDescription *desc) G_GNUC_PURE;
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) SetVariant ¶
func (v *FontDescription) SetVariant(variant Variant)
void pango_font_description_set_variant (PangoFontDescription *desc,
PangoVariant variant);
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 ¶
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 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.
type GlyphItem ¶
type GlyphItem struct {
// contains filtered or unexported fields
}
GlyphItem is a representation of 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 ¶
PangoLayout *pango_cairo_create_layout (cairo_t *cr);
func WrapLayout ¶
func (*Layout) GetAttributes ¶
GetAttributes is a wrapper around pango_layout_get_attributes().
func (*Layout) GetCharacterCount ¶
GetCharacterCount is a wrapper around pango_layout_get_character_count().
func (*Layout) GetContext ¶
GetContext is a wrapper around pango_layout_get_context().
func (*Layout) GetFontDescription ¶
func (v *Layout) GetFontDescription() *FontDescription
GetFontDescription is a wrapper around pango_layout_get_font_description().
func (*Layout) SetAttributes ¶
SetAttributes is a wrapper around pango_layout_set_attributes().
func (*Layout) SetFontDescription ¶
func (v *Layout) SetFontDescription(desc *FontDescription)
SetFontDescription is a wrapper around pango_layout_set_font_description().
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.
type Rectangle ¶
type Rectangle struct {
// contains filtered or unexported fields
}
Rectangle is a representation of PangoRectangle.
func RectangleNew ¶
func (*Rectangle) ExtentsToPixels ¶
void pango_extents_to_pixels (PangoRectangle *inclusive,
PangoRectangle *nearest);
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 TabArray ¶
type TabArray struct {
// contains filtered or unexported fields
}
TabArray is a representation of PangoTabArray.
func TabArrayNew ¶
TabArrayNew is a wrapper around pango_tab_array_new().
func WrapTabArray ¶
func (*TabArray) Free ¶
func (v *TabArray) Free()
free is a wrapper around pango_tab_array_free(). This is only to enable other packages within gotk. Should not be used outside the gotk library.
func (*TabArray) GetPositionsInPixels ¶
GetPositionsInPixels is a wrapper around pango_tab_array_get_positions_in_pixels().
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 )