get_pango_context


Description:

[ Version ( since = "1.0" ) ]
public unowned Context get_pango_context ()

Retrieves the Context for this.

The actor's Context is already configured using the appropriate font map, resolution and font options.

Unlike create_pango_context, this context is owend by the Actor and it will be updated each time the options stored by the Backend change.

You can use the returned Context to create a Layout and render text using pango_render_layout to reuse the glyphs cache also used by Clutter.

Parameters:

this

a Actor

Returns:

the Context for a Actor. The returned Context is owned by the actor and should not be unreferenced by the application code




2022 vala-language.org