GlyphItem

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.

Constructors

this
this(pango.item.Item item, pango.glyph_string.GlyphString glyphs, int yOffset, int startXOffset, int endXOffset)

Create a glyph_item.GlyphItem boxed type.

this
this(void* ptr, Flag!"Take" take)

Members

Functions

applyAttrs
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.

cPtr
void* cPtr(Flag!"Dup" dup)
copy
pango.glyph_item.GlyphItem copy()

Make a deep copy of an existing pango.glyph_item.GlyphItem structure.

self
GlyphItem self()

Returns this, for use in with statements.

split
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.

Properties

endXOffset
int endXOffset [@property getter]

Get field endXOffset.

endXOffset
int endXOffset [@property setter]

Set field endXOffset.

gType
GType gType [@property getter]
glyphs
pango.glyph_string.GlyphString glyphs [@property getter]

Get field glyphs.

glyphs
pango.glyph_string.GlyphString glyphs [@property setter]

Set field glyphs.

item
pango.item.Item item [@property getter]

Get field item.

item
pango.item.Item item [@property setter]

Set field item.

startXOffset
int startXOffset [@property getter]

Get field startXOffset.

startXOffset
int startXOffset [@property setter]

Set field startXOffset.

yOffset
int yOffset [@property getter]

Get field yOffset.

yOffset
int yOffset [@property setter]

Set field yOffset.

Static functions

getGType
GType getGType()

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.