SelectionData.setText

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

class SelectionData
bool
setText
(
string str
)

Parameters

str string

a UTF-8 string

Return Value

Type: bool

true if the selection was successfully set, otherwise false.