GlyphItem

class GlyphItem(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

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()

Allocate a new GlyphItem.

constructor(scope: <Error class: unknown class>)

Allocate a new GlyphItem using the provided AutofreeScope.

constructor(item: Item?, glyphs: GlyphString?, yOffset: <Error class: unknown class>, startXOffset: <Error class: unknown class>, endXOffset: <Error class: unknown class>)

Allocate a new GlyphItem.

constructor(item: Item?, glyphs: GlyphString?, yOffset: <Error class: unknown class>, startXOffset: <Error class: unknown class>, endXOffset: <Error class: unknown class>, scope: <Error class: unknown class>)

Allocate a new GlyphItem using the provided AutofreeScope.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var endXOffset: <Error class: unknown class>

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

Link copied to clipboard

corresponding PangoGlyphString

Link copied to clipboard
var item: Item?

corresponding PangoItem

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

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

Link copied to clipboard
var yOffset: <Error class: unknown class>

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: <Error class: unknown class>): 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.

Link copied to clipboard
open override fun toString(): String