Declaration [src]

gtk_widget_create_pango_layout (
  GtkWidget* widget,
  const char* text

Description [src]

Creates a new PangoLayout with the appropriate font map, font description, and base direction for drawing text for this widget.

If you keep a PangoLayout created in this way around, you need to re-create it when the widget PangoContext is replaced. This can be tracked by listening to changes of the GtkWidget:root property on the widget.


text const char*

text to set on the layout (can be NULL)

 Can be NULL
 The data is owned by the caller of the function
 The string is a NUL terminated UTF-8 string

Return value

Returns: PangoLayout*

the new PangoLayout

The caller of the function takes ownership of the data, and is responsible for freeing it