-
public void copy_clipboard ()
Copies the contents of the currently selected content in the editable and puts it on the clipboard.
-
public void cut_clipboard ()
Removes the contents of the currently selected content in the editable and puts it on the clipboard.
-
public void delete_selection ()
Deletes the currently selected text of the editable. This call doesn't do anything if there is no
selected text.
-
public abstract void do_delete_text (int start_pos, int end_pos)
-
public abstract void do_insert_text (string text, int length, int position)
-
public abstract unowned string get_chars (int start_pos, int end_pos)
Retrieves a sequence of characters. The characters that are retrieved are those characters at
positions from start_pos up to, but not including end_pos. If end_pos is negative, then the
the characters retrieved are those characters from start_pos to the end of the text.
-
public bool get_editable ()
-
public abstract int get_position ()
Retrieves the current position of the cursor relative to the start of the content of the editable.
-
public abstract bool get_selection_bounds (out int start_pos, out int end_pos)
Retrieves the selection bound of the editable. start_pos will be filled with the start of the
selection and end_pos with end. If no text was selected both will be identical and false will be returned.
-
public void paste_clipboard ()
Pastes the content of the clipboard to the current position of the cursor in the editable.
-
public abstract void select_region (int start_pos, int end_pos)
Selects a region of text. The characters that are selected are those characters at positions from
start_pos up to, but not including end_pos. If end_pos is negative, then the the characters
selected are those characters from start_pos to the end of the text.
-
public void set_editable (bool is_editable)
Determines if the user can edit the text in the editable widget or not.
-
public abstract void set_position (int position)
Sets the cursor position in the editable to the given value.