SelectionData.setText

bool setText(string str)

Sets the contents of the selection from a UTF-8 encoded string. The string is converted to the form determined by selection_data->target.

Parameters

stra UTF-8 string

Returns

true if the selection was successfully set,

otherwise false.