pango.glyph_item
Module for [GlyphItem] class
class GlyphItem
Types 1
classGlyphItem : gobject.boxed.Boxed
A [pango.glyph_item.GlyphItem] is a pair of a [pango.item.Item] and the glyphs resulting from shaping the items text.
As an example of the usage of [pango.glyph_item.GlyphItem], the results of shaping text with [pango.layout.Layout] is a list of [pango.layout_line.LayoutLine], each of which contains a list of [pango.glyph_item.GlyphItem].
Methods
void item(pango.item.Item propval) @propertySet `item` field. Params: propval = corresponding [pango.item.Item]pango.glyph_string.GlyphString glyphs() @propertyGet `glyphs` field. Returns: corresponding [pango.glyph_string.GlyphString]void glyphs(pango.glyph_string.GlyphString propval) @propertySet `glyphs` field. Params: propval = corresponding [pango.glyph_string.GlyphString]int yOffset() @propertyGet `yOffset` field. Returns: shift of the baseline, relative to the baseline of the containing line. Positive values shift upwardsvoid yOffset(int propval) @propertySet `yOffset` field. Params: propval = shift of the baseline, relative to the baseline of the containing line. Positive values shift upwardsint startXOffset() @propertyGet `startXOffset` field. Returns: horizontal displacement to apply before the glyph item. Positive values shift rightvoid startXOffset(int propval) @propertySet `startXOffset` field. Params: propval = horizontal displacement to apply before the glyph item. Positive values shift rightint endXOffset() @propertyGet `endXOffset` field. Returns: horizontal displacement to apply after th glyph item. Positive values shift rightvoid endXOffset(int propval) @propertySet `endXOffset` field. Params: propval = horizontal displacement to apply after th glyph item. Positive values shift rightpango.glyph_item.GlyphItem[] applyAttrs(string text, pango.attr_list.AttrList list)Splits a shaped item ([pango.glyph_item.GlyphItem]) into multiple items based on an attribute list.pango.glyph_item.GlyphItem copy()Make a deep copy of an existing [pango.glyphitem.GlyphItem] structure. Returns: the newly allocated [pango.glyphitem.GlyphItem]pango.glyph_item.GlyphItem split(string text, int splitIndex)Modifies orig to cover only the text after splitindex, and returns a new item that covers the text before splitindex that used to be in orig.Constructors
this(pango.item.Item item = pango.item.Item.init, pango.glyph_string.GlyphString glyphs = pango.glyph_string.GlyphString.init, int yOffset = int.init, int startXOffset = int.init, int endXOffset = int.init)Create a `glyphitem.GlyphItem` boxed type. Params: item = corresponding [pango.item.Item] glyphs = corresponding [pango.glyphstring.GlyphString] yOffset = shift of the baseline, relative to the bas...