set_selection


Description:

public void set_selection (ssize_t start_pos, ssize_t end_pos)

Selects the region of text between start_pos and end_pos.

This function changes the position of the cursor to match start_pos and the selection bound to match end_pos.

Parameters:

this

a Text

start_pos

start of the selection, in characters

end_pos

end of the selection, in characters