Function

Pangoitemize_with_base_dir_and_embedding_levels

since: 1.59

Declaration [src]

GList*
pango_itemize_with_base_dir_and_embedding_levels (
  PangoContext* context,
  PangoDirection base_dir,
  const char* text,
  int start_index,
  int length,
  PangoAttrList* attrs,
  PangoAttrIterator* cached_iter,
  const guint8* embedding_levels,
  int n_embedding_levels
)

Description [src]

Itemizes a range using embedding levels computed for the complete paragraph.

This is useful when itemizing bounded ranges of a paragraph without changing the directional analysis at range boundaries. The embedding levels must contain one entry for every Unicode character in text. start_index and length must identify UTF-8 character boundaries.

Available since: 1.59

Parameters

context

Type: PangoContext

A structure holding information that affects itemization.

The data is owned by the caller of the function.
base_dir

Type: PangoDirection

Base direction of the paragraph.

text

Type: const char*

Valid UTF-8 paragraph text.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
start_index

Type: int

First byte in text to process.

length

Type: int

Number of bytes to process.

attrs

Type: PangoAttrList

Attributes that apply to text.

The argument can be NULL.
The data is owned by the caller of the function.
cached_iter

Type: PangoAttrIterator

Cached attribute iterator.

The argument can be NULL.
The data is owned by the caller of the function.
embedding_levels

Type: An array of guint8

One embedding level for each character in text.

The length of the array is specified in the n_embedding_levels argument.
The data is owned by the caller of the function.
n_embedding_levels

Type: int

Length of embedding_levels.

Return value

Type: A list of PangoItem*

Newly allocated items in logical order.

The caller of the function takes ownership of the data, and is responsible for freeing it.