PgContext.itemizeWithBaseDir

Like pango_itemize(), but with an explicitly specified base direction.

The base direction is used when computing bidirectional levels. (see [method@Pango.Context.set_base_dir]). [func@itemize] gets the base direction from the PangoContext.

Parameters

context PgContext

a structure holding information that affects the itemization process.

baseDir PangoDirection

base direction to use for bidirectional processing

text string

the text to itemize.

startIndex int

first byte in @text to process

length int

the number of bytes (not characters) to process after @start_index. This must be >= 0.

attrs PgAttributeList

the set of attributes that apply to @text.

cachedIter PgAttributeIterator

Cached attribute iterator, or %NULL

Return Value

Type: ListG

a GList of [struct@Pango.Item] structures. The items should be freed using [method@Pango.Item.free] probably in combination with g_list_free_full().

Meta