Text.from_static_string


Description:

[ CCode ( cname = "ibus_text_new_from_static_string" , has_construct_function = false ) ]
public Text.from_static_string (string str)

Creates a new Text from a static string.

Since str is a static string which won't be freed. This function will NOT duplicate str.

Parameters:

str

An text string to be set.

Returns:

A newly allocated Text.