[cairo] Managing LineLayouts

Behdad Esfahbod behdad at behdad.org
Mon Aug 9 15:19:43 PDT 2010


On 08/09/10 13:12, Travis Griggs wrote:
> 
> When using the pango_layout_get_line() function, does it alloc a new
> structure and return the pointer to it? Or is it the case, that the
> structure is managed by the Layout or Iterator, and when those are
> freed, the internal LineLayout structures are freed?

The line is *owned* by the layout, but you can reference it:
pango_layout_line_ref().

behdad


More information about the cairo mailing list