Gtk.EntryBuffer
const Gtk = imports.gi.Gtk; let entry_buffer = new Gtk.EntryBuffer({ max_length: value, text: value, });
The Gtk.EntryBuffer class contains the actual text displayed in a Gtk.Entry widget.
A single Gtk.EntryBuffer object can be shared by multiple Gtk.Entry widgets which will then share the same text content, but not the cursor position, visibility attributes, icon etc.
Gtk.EntryBuffer may be derived from. Such a derived class might allow text to be stored in an alternate location, such as non-pageable memory, useful in the case of important passwords. Or a derived class could integrate with an application's concept of undo/redo.
Hierarchy
-
GObject.Object
- Gtk.EntryBuffer
Methods
- Gtk.EntryBuffer.prototype.delete_text
- Gtk.EntryBuffer.prototype.emit_deleted_text
- Gtk.EntryBuffer.prototype.emit_inserted_text
- Gtk.EntryBuffer.prototype.get_bytes
- Gtk.EntryBuffer.prototype.get_length
- Gtk.EntryBuffer.prototype.get_max_length
- Gtk.EntryBuffer.prototype.get_text
- Gtk.EntryBuffer.prototype.insert_text
- Gtk.EntryBuffer.prototype.set_max_length
- Gtk.EntryBuffer.prototype.set_text