Function pango::itemize_with_base_dir

source ·
pub fn itemize_with_base_dir(
    context: &Context,
    base_dir: Direction,
    text: &str,
    start_index: i32,
    length: i32,
    attrs: &AttrList,
    cached_iter: Option<&AttrIterator<'_>>
) -> Vec<Item>
Expand description

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

The base direction is used when computing bidirectional levels. itemize() gets the base direction from the Context (see Context::set_base_dir()).


a structure holding information that affects the itemization process.


base direction to use for bidirectional processing


the text to itemize.


first byte in @text to process


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


the set of attributes that apply to @text.


Cached attribute iterator


a GList of Item structures. The items should be freed using Pango::Item::free() probably in combination with GLib::List::free_full().