GlyphItem

class GlyphItem(pointer: <Error class: unknown class><<Error class: unknown class>>)

A PangoGlyphItem is a pair of a PangoItem and the glyphs resulting from shaping the items text.

As an example of the usage of PangoGlyphItem, the results of shaping text with PangoLayout is a list of PangoLayoutLine, each of which contains a list of PangoGlyphItem.

Skipped during bindings generation

  • parameter logical_widths: Array parameter of type gint is not supported

  • parameter log_attrs: LogAttr

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

horizontal displacement to apply after th glyph item. Positive values shift right

Link copied to clipboard

corresponding PangoGlyphString

Link copied to clipboard
val item: Item?

corresponding PangoItem

Link copied to clipboard
val pangoGlyphItemPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard

horizontal displacement to apply before the glyph item. Positive values shift right

Link copied to clipboard

shift of the baseline, relative to the baseline of the containing line. Positive values shift upwards

Functions

Link copied to clipboard
fun applyAttrs(text: String, list: AttrList): <Error class: unknown class>

Splits a shaped item (PangoGlyphItem) into multiple items based on an attribute list.

Link copied to clipboard
fun copy(): GlyphItem?

Make a deep copy of an existing PangoGlyphItem structure.

Link copied to clipboard
fun free()

Frees a PangoGlyphItem and resources to which it points.

Link copied to clipboard
fun split(text: String, splitIndex: Int): GlyphItem

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.