Class: Gtk::ComboBoxText
- Inherits:
-
Object
- Object
- Gtk::ComboBoxText
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#active_text ⇒ String
Returns the currently active string in combo_box, or nil if none is selected.
-
#append(id, text) ⇒ nil
Appends text to the list of strings stored in combo_box.
-
#append_text(text) ⇒ nil
Appends text to the list of strings stored in combo_box.
-
#insert(position, id, text) ⇒ nil
Inserts text at position in the list of strings stored in combo_box.
-
#insert_text(position, text) ⇒ nil
Inserts text at position in the list of strings stored in combo_box.
-
#new ⇒ Gtk::Widget
Creates a new Gtk::ComboBoxText, which is a #GtkComboBox just displaying strings.
-
#new_with_entry ⇒ Gtk::Widget
Creates a new Gtk::ComboBoxText, which is a #GtkComboBox just displaying strings.
-
#prepend(id, text) ⇒ nil
Prepends text to the list of strings stored in combo_box.
-
#prepend_text(text) ⇒ nil
Prepends text to the list of strings stored in combo_box.
-
#remove(position) ⇒ nil
Removes the string at position from combo_box.
-
#remove_all ⇒ nil
Removes all the text entries from the combo box.
Instance Method Details
#active_text ⇒ String
Returns the currently active string in combo_box, or nil if none is selected. If combo_box contains an entry, this function will return its contents (which will not necessarily be an item from the list).
#append(id, text) ⇒ nil
Appends text to the list of strings stored in combo_box. If id is non-nil then it is used as the ID of the row.
This is the same as calling gtk_combo_box_text_insert() with a position of -1.
#append_text(text) ⇒ nil
Appends text to the list of strings stored in combo_box.
This is the same as calling gtk_combo_box_text_insert_text() with a position of -1.
#insert(position, id, text) ⇒ nil
Inserts text at position in the list of strings stored in combo_box. If id is non-nil then it is used as the ID of the row. See Gtk::ComboBox:id-column.
If position is negative then text is appended.
#insert_text(position, text) ⇒ nil
Inserts text at position in the list of strings stored in combo_box.
If position is negative then text is appended.
This is the same as calling gtk_combo_box_text_insert() with a nil ID string.
#new ⇒ Gtk::Widget
Creates a new Gtk::ComboBoxText, which is a #GtkComboBox just displaying strings.
#new_with_entry ⇒ Gtk::Widget
Creates a new Gtk::ComboBoxText, which is a #GtkComboBox just displaying strings. The combo box created by this function has an entry.
#prepend(id, text) ⇒ nil
Prepends text to the list of strings stored in combo_box. If id is non-nil then it is used as the ID of the row.
This is the same as calling gtk_combo_box_text_insert() with a position of 0.
#prepend_text(text) ⇒ nil
Prepends text to the list of strings stored in combo_box.
This is the same as calling gtk_combo_box_text_insert_text() with a position of 0.
#remove(position) ⇒ nil
Removes the string at position from combo_box.
#remove_all ⇒ nil
Removes all the text entries from the combo box.