create_pango_layout


Description:

[ Version ( since = "1.0" ) ]
public Layout create_pango_layout (string? text)

Creates a new Layout from the same Context used by the Actor.

The Layout is already configured with the font map, resolution and font options, and the given text.

If you want to keep around a Layout created by this function you will have to connect to the font_changed and resolution_changed signals, and call context_changed in response to them.

Parameters:

this

a Actor

text

the text to set on the Layout, or null

Returns:

the newly created Layout. Use unref when done