itemize_with_base_dir


Description:


[ Version ( since = "1.4" ) ]
public List<Item> itemize_with_base_dir (Context context, Direction base_dir, string text, int start_index, int length, AttrList attrs, AttrIterator? cached_iter)

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

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

Parameters:

context

a structure holding information that affects the itemization process.

base_dir

base direction to use for bidirectional processing

text

the text to itemize.

start_index

first byte in text to process

length

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

attrs

the set of attributes that apply to text.

cached_iter

Cached attribute iterator

Returns:

a `GList` of [struct@Pango.Item] structures. The items should be freed using [method@Pango.Item.free] probably in combination with [ func@GLib.List.free_full].


Namespace: Pango
Package: pango