gtkEditableSelectRegion(object, start, end)
gtkEditableGetSelectionBounds(object)
gtkEditableInsertText(object, new.text, position = 0)
gtkEditableDeleteText(object, start.pos, end.pos)
gtkEditableGetChars(object, start.pos, end.pos)
gtkEditableCutClipboard(object)
gtkEditableCopyClipboard(object)
gtkEditablePasteClipboard(object)
gtkEditableDeleteSelection(object)
gtkEditableSetPosition(object, position)
gtkEditableGetPosition(object)
gtkEditableSetEditable(object, is.editable)
gtkEditableGetEditable(object)
GInterface +----GtkEditable
GtkEntry
, GtkOldEditable
, GtkSpinButton
and GtkText.GtkEditable
interface is an interface which should be implemented by
text editing widgets, such as GtkEntry
and GtkText
. It contains functions
for generically manipulating an editable widget, a large number of action
signals used for key bindings, and several signals that an application can
connect to to modify the behavior of a widget. As an example of the latter usage, by connecting
the following handler to "insert_text", an application
can convert all entry into a widget into uppercase. Forcing entry to uppercase.
insert_text_handler <- function(editable, text, length, position, id) { result <- toupper(text) gSignalHandlerBlock(editable, id) editable$insertText(result, length, position) gSignalHandlerUnblock(editable, id) }
changed(editable, user.data)
GtkEditable
. E.g., a paste operation that replaces the contents of the
selection will cause only one signal emission (even though it
is implemented by first deleting the selection, then inserting
the new content, and may cause multiple ::notify::text signals
to be emitted). editable
user.data
delete-text(editable, start.pos, end.pos, user.data)
gSignalStopEmission
, it
is possible to modify the range of deleted text, or
prevent it from being deleted entirely. The start.pos
and end.pos
parameters are interpreted as for
gtkEditableDeleteText
. editable
start.pos
end.pos
user.data
insert-text(editable, new.text, new.text.length, position, user.data)
gSignalStopEmission
, it
is possible to modify the inserted text, or prevent
it from being inserted entirely. editable
new.text
new.text.length
position
user.data