GtkEditable {RGtk2} | R Documentation |
Interface for text-editing widgets
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
GtkEditable is implemented by
GtkEntry
, GtkOldEditable
, GtkSpinButton
and GtkText.
The 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) }
GtkEditable
The GtkEditable
structure is an opaque structure whose members
cannot be directly accessed.
Derived by RGtkGen from GTK+ documentation
http://library.gnome.org/devel//gtk/GtkEditable.html