Method
Pango.Layout.get_log_attrs_readonly
Declaration [src]
const PangoLogAttr*
pango_layout_get_log_attrs_readonly (
PangoLayout* layout,
gint* n_attrs
)
Description [src]
Retrieves an array of logical attributes for each character in
the layout
.
This is a faster alternative to pango_layout_get_log_attrs()
.
The returned array is part of layout
and must not be modified.
Modifying the layout will invalidate the returned array.
The number of attributes returned in n_attrs
will be one more
than the total number of characters in the layout, since there
need to be attributes corresponding to both the position before
the first character and the position after the last character.
Parameters
n_attrs |
gint* |
location to store the number of the attributes in the array |
|
Direction: out | |
Ownership of the data is transferred to the callee |
Return value
Returns: An array of PangoLogAttr |
|
an array of logical attributes |
|
The length of the array is in the n_attrs argument | |
Ownership is not transferred to the caller |