pango.glyph_item

Module for GlyphItem class

class GlyphItem

Types 1

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 * _cPtr(Flag!"Dup" dup = No.Dup)
GType _gType() @property
GlyphItem self()Returns `this`, for use in `with` statements.
pango.item.Item item() @propertyGet `item` field. Returns: corresponding [pango.item.Item]
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 upwards
void yOffset(int propval) @propertySet `yOffset` field. Params: propval = shift of the baseline, relative to the baseline of the containing line. Positive values shift upwards
int startXOffset() @propertyGet `startXOffset` field. Returns: horizontal displacement to apply before the glyph item. Positive values shift right
void startXOffset(int propval) @propertySet `startXOffset` field. Params: propval = horizontal displacement to apply before the glyph item. Positive values shift right
int endXOffset() @propertyGet `endXOffset` field. Returns: horizontal displacement to apply after th glyph item. Positive values shift right
void endXOffset(int propval) @propertySet `endXOffset` field. Params: propval = horizontal displacement to apply after th glyph item. Positive values shift right
pango.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.glyph_item.GlyphItem] structure. Returns: the newly allocated [pango.glyph_item.GlyphItem]
pango.glyph_item.GlyphItem split(string text, int splitIndex)Modifies orig to cover only the text after split_index, and returns a new item that covers the text before split_index 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 `glyph_item.GlyphItem` boxed type. Params: item = corresponding [pango.item.Item] glyphs = corresponding [pango.glyph_string.GlyphString] yOffset = shift of the baseline, relative to the b...
this(void * ptr, Flag!"Take" take)