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
,
int len
)

Parameters

str string

a UTF-8 string

len int

the length of @str, or -1 if @str is nul-terminated.

Return Value

Type: bool

%TRUE if the selection was successfully set, otherwise %FALSE.

Meta