Class: Gtk::EntryBuffer
- Inherits:
-
Object
- Object
- Gtk::EntryBuffer
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#bytes ⇒ Integer
Retrieves the length in bytes of the buffer.
-
#delete_text(position, n_chars) ⇒ Integer
Deletes a sequence of characters from the buffer.
-
#emit_deleted_text(position, n_chars) ⇒ nil
Used when subclassing Gtk::EntryBuffer.
-
#emit_inserted_text(position, chars, n_chars) ⇒ nil
Used when subclassing Gtk::EntryBuffer.
-
#insert_text(position, chars, n_chars) ⇒ Integer
Inserts n_chars characters of chars into the contents of the buffer, at position position.
-
#length ⇒ Integer
The length (in characters) of the text in buffer.
-
#length=(length) ⇒ Integer
The length (in characters) of the text in buffer.
-
#max_length ⇒ Integer
The maximum length (in characters) of the text in the buffer.
-
#max_length=(max_length) ⇒ Integer
The maximum length (in characters) of the text in the buffer.
-
#new(initial_chars, n_initial_chars) ⇒ Gtk::EntryBuffer
Create a new GtkEntryBuffer object.
-
#set_text(chars, n_chars) ⇒ nil
Sets the text in the buffer.
-
#text ⇒ String
The contents of the buffer.
-
#text=(text) ⇒ String
The contents of the buffer.
Instance Method Details
#bytes ⇒ Integer
Retrieves the length in bytes of the buffer. See gtk_entry_buffer_get_length().
#delete_text(position, n_chars) ⇒ Integer
Deletes a sequence of characters from the buffer. n_chars characters are deleted starting at position. If n_chars is negative, then all characters until the end of the text are deleted.
If position or n_chars are out of bounds, then they are coerced to sane values.
Note that the positions are specified in characters, not bytes.
#emit_deleted_text(position, n_chars) ⇒ nil
Used when subclassing Gtk::EntryBuffer
#emit_inserted_text(position, chars, n_chars) ⇒ nil
Used when subclassing Gtk::EntryBuffer
#insert_text(position, chars, n_chars) ⇒ Integer
Inserts n_chars characters of chars into the contents of the buffer, at position position.
If n_chars is negative, then characters from chars will be inserted until a null-terminator is found. If position or n_chars are out of bounds, or the maximum buffer text length is exceeded, then they are coerced to sane values.
Note that the position and length are in characters, not in bytes.
#length ⇒ Integer
The length (in characters) of the text in buffer.
#length=(length) ⇒ Integer
The length (in characters) of the text in buffer.
#max_length ⇒ Integer
The maximum length (in characters) of the text in the buffer.
#max_length=(max_length) ⇒ Integer
The maximum length (in characters) of the text in the buffer.
#new(initial_chars, n_initial_chars) ⇒ Gtk::EntryBuffer
Create a new GtkEntryBuffer object.
Optionally, specify initial text to set in the buffer.
#set_text(chars, n_chars) ⇒ nil
Sets the text in the buffer.
This is roughly equivalent to calling gtk_entry_buffer_delete_text() and gtk_entry_buffer_insert_text().
Note that n_chars is in characters, not in bytes.
#text ⇒ String
The contents of the buffer.
#text=(text) ⇒ String
The contents of the buffer.