Virtualvfunc_Virtualvfunc_Deletes a sequence of characters. The characters that are deleted are
those characters at positions from start_pos up to, but not including
end_pos. If end_pos is negative, then the characters deleted
are those from start_pos to the end of the text.
Note that the positions are specified in characters, not bytes.
start position
end position
Virtualvfunc_Deletes a sequence of characters. The characters that are deleted are
those characters at positions from start_pos up to, but not including
end_pos. If end_pos is negative, then the characters deleted
are those from start_pos to the end of the text.
Note that the positions are specified in characters, not bytes.
start position
end position
Virtualvfunc_Inserts new_text_length bytes of new_text into the contents of the
widget, at position position.
Note that the position is in characters, not in bytes.
The function updates position to point after the newly inserted text.
the text to append
the length of the text in bytes, or -1
location of the position text will be inserted at
Virtualvfunc_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 characters
retrieved are those characters from start_pos to the end of the text.
Note that positions are specified in characters, not bytes.
start of text
end of text
Virtualvfunc_Retrieves the current position of the cursor relative to the start of the content of the editable.
Note that this position is in characters, not in bytes.
Virtualvfunc_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.
Note that positions are specified in characters, not bytes.
Virtualvfunc_Inserts new_text_length bytes of new_text into the contents of the
widget, at position position.
Note that the position is in characters, not in bytes.
The function updates position to point after the newly inserted text.
the text to append
the length of the text in bytes, or -1
location of the position text will be inserted at
Virtualvfunc_Sets the cursor position in the editable to the given value.
The cursor is displayed before the character with the given (base 0)
index in the contents of the editable. The value must be less than or
equal to the number of characters in the editable. A value of -1
indicates that the position should be set after the last character
of the editable. Note that position is in characters, not in bytes.
the position of the cursor
Virtualvfunc_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
characters selected are those characters from start_pos to
the end of the text.
Note that positions are specified in characters, not bytes.
start of region
end of region
Interface for implementing Editable. Contains only the virtual methods that need to be implemented.