Method

ClutterTextBufferset_text

Declaration [src]

void
clutter_text_buffer_set_text (
  ClutterTextBuffer* buffer,
  const gchar* chars,
  gint n_chars
)

Description [src]

Sets the text in the buffer.

This is roughly equivalent to calling clutter_text_buffer_delete_text() and clutter_text_buffer_insert_text().

Note that n_chars is in characters, not in bytes.

Parameters

chars

Type: const gchar*

The new text.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
n_chars

Type: gint

The number of characters in text, or -1.