get_text


Description:

public unowned string get_text ()

Retrieves a pointer to the current contents of a Text actor.

If you need a copy of the contents for manipulating, either use strdup on the returned string, or use:

   copy = clutter_text_get_chars (text, 0, -1);

Which will return a newly allocated string.

If the Text actor is empty, this function will return an empty string, and not null.

Parameters:

this

a Text

Returns:

the contents of the actor. The returned string is owned by the Text actor and should never be modified or freed