itemizeWithBaseDir

fnpango.item.Item[] itemizeWithBaseDir(pango.context.Context context, pango.types.Direction baseDir, string text, int startIndex, int length, pango.attr_list.AttrList attrs, pango.attr_iterator.AttrIterator cachedIter = null)

Like [pango.global.itemize], but with an explicitly specified base direction.

The base direction is used when computing bidirectional levels. funcitemize gets the base direction from the [pango.context.Context] (see [pango.context.Context.setBaseDir]).

Parameters

contexta structure holding information that affects the itemization process.
baseDirbase direction to use for bidirectional processing
textthe text to itemize.
startIndexfirst byte in text to process
lengththe number of bytes (not characters) to process after start_index. This must be >= 0.
attrsthe set of attributes that apply to text.
cachedIterCached attribute iterator

Returns

a [glib.list.List] of

[pango.item.Item] structures. The items should be freed using [pango.item.Item.free] probably in combination with [glib.list.List.freeFull].