Method
ClutterActorcreate_pango_layout
Declaration [src]
PangoLayout*
clutter_actor_create_pango_layout (
ClutterActor* self,
const gchar* text
)
Description [src]
Creates a new PangoLayout
from the same PangoContext
used
by the ClutterActor
. The PangoLayout
is already configured
with the font map, resolution and font options, and the
given text
.
If you want to keep around a PangoLayout
created by this
function you will have to connect to the ClutterBackend::font-changed
and ClutterBackend::resolution-changed
signals, and call
pango_layout_context_changed()
in response to them.
Available since: | 1.0 |
Parameters
text |
const gchar* |
The text to set on the |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. |
Return value
Returns: | PangoLayout |
The newly created |
|
The caller of the method takes ownership of the data, and is responsible for freeing it. |