Class: Gtk::EntryCompletion
- Inherits:
-
Object
- Object
- Gtk::EntryCompletion
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#cell_area ⇒ Gtk::CellArea
The Gtk::CellArea used to layout cell renderers in the treeview column.
-
#cell_area=(cell_area) ⇒ Gtk::CellArea
The Gtk::CellArea used to layout cell renderers in the treeview column.
-
#complete ⇒ nil
Requests a completion operation, or in other words a refiltering of the current list with completions, using the current key.
-
#completion_prefix ⇒ String
Get the original text entered by the user that triggered the completion or nil if there’s no completion ongoing.
-
#compute_prefix(key) ⇒ String
Computes the common prefix that is shared by all rows in completion that start with key.
-
#delete_action(index_) ⇒ nil
Deletes the action at index_ from completion’s action list.
-
#entry ⇒ Gtk::Widget
Gets the entry completion has been attached to.
-
#inline_completion ⇒ TrueClass
Returns whether the common prefix of the possible completions should be automatically inserted in the entry.
-
#inline_completion=(inline_completion) ⇒ TrueClass
Determines whether the common prefix of the possible completions should be inserted automatically in the entry.
-
#inline_completion? ⇒ TrueClass
Determines whether the common prefix of the possible completions should be inserted automatically in the entry.
-
#inline_selection ⇒ TrueClass
Returns true if inline-selection mode is turned on.
-
#inline_selection=(inline_selection) ⇒ TrueClass
Determines whether the possible completions on the popup will appear in the entry as you navigate through them.
-
#inline_selection? ⇒ TrueClass
Determines whether the possible completions on the popup will appear in the entry as you navigate through them.
-
#insert_action_markup(index_, markup) ⇒ nil
Inserts an action in completion’s action item list at position index_ with markup markup.
-
#insert_action_text(index_, text) ⇒ nil
Inserts an action in completion’s action item list at position index_ with text text.
-
#insert_prefix ⇒ nil
Requests a prefix insertion.
-
#minimum_key_length ⇒ Integer
Minimum-key-length.
- #minimum_key_length=(minimum_key_length) ⇒ Integer
-
#model ⇒ Gtk::TreeModel
Model.
- #model=(model) ⇒ Gtk::TreeModel
-
#new ⇒ Gtk::EntryCompletion
Creates a new Gtk::EntryCompletion object.
-
#new_with_area(area) ⇒ Gtk::EntryCompletion
Creates a new Gtk::EntryCompletion object using the specified area to layout cells in the underlying Gtk::TreeViewColumn for the drop-down menu.
-
#popup_completion ⇒ TrueClass
Returns whether the completions should be presented in a popup window.
-
#popup_completion=(popup_completion) ⇒ TrueClass
Determines whether the possible completions should be shown in a popup window.
-
#popup_completion? ⇒ TrueClass
Determines whether the possible completions should be shown in a popup window.
-
#popup_set_width ⇒ TrueClass
Returns whether the completion popup window will be resized to the width of the entry.
-
#popup_set_width=(popup_set_width) ⇒ TrueClass
Determines whether the completions popup window will be resized to the width of the entry.
-
#popup_set_width? ⇒ TrueClass
Determines whether the completions popup window will be resized to the width of the entry.
-
#popup_single_match ⇒ TrueClass
Returns whether the completion popup window will appear even if there is only a single match.
-
#popup_single_match=(popup_single_match) ⇒ TrueClass
Determines whether the completions popup window will shown for a single possible completion.
-
#popup_single_match? ⇒ TrueClass
Determines whether the completions popup window will shown for a single possible completion.
-
#set_match_func(func, func_data, func_notify) ⇒ nil
Sets the match function for completion to be func.
-
#text_column ⇒ Integer
The column of the model containing the strings.
-
#text_column=(text_column) ⇒ Integer
The column of the model containing the strings.
Instance Method Details
#cell_area ⇒ Gtk::CellArea
The Gtk::CellArea used to layout cell renderers in the treeview column.
If no area is specified when creating the entry completion with gtk_entry_completion_new_with_area() a horizontally oriented Gtk::CellAreaBox will be used.
#cell_area=(cell_area) ⇒ Gtk::CellArea
The Gtk::CellArea used to layout cell renderers in the treeview column.
If no area is specified when creating the entry completion with gtk_entry_completion_new_with_area() a horizontally oriented Gtk::CellAreaBox will be used.
#complete ⇒ nil
Requests a completion operation, or in other words a refiltering of the current list with completions, using the current key. The completion list view will be updated accordingly.
#completion_prefix ⇒ String
Get the original text entered by the user that triggered the completion or nil if there’s no completion ongoing.
#compute_prefix(key) ⇒ String
Computes the common prefix that is shared by all rows in completion that start with key. If no row matches key, nil will be returned. Note that a text column must have been set for this function to work, see gtk_entry_completion_set_text_column() for details.
#delete_action(index_) ⇒ nil
Deletes the action at index_ from completion’s action list.
Note that index_ is a relative position and the position of an action may have changed since it was inserted.
#entry ⇒ Gtk::Widget
Gets the entry completion has been attached to.
#inline_completion ⇒ TrueClass
Returns whether the common prefix of the possible completions should be automatically inserted in the entry.
#inline_completion=(inline_completion) ⇒ TrueClass
Determines whether the common prefix of the possible completions should be inserted automatically in the entry. Note that this requires text-column to be set, even if you are using a custom match function.
#inline_completion? ⇒ TrueClass
Determines whether the common prefix of the possible completions should be inserted automatically in the entry. Note that this requires text-column to be set, even if you are using a custom match function.
#inline_selection ⇒ TrueClass
Returns true if inline-selection mode is turned on.
#inline_selection=(inline_selection) ⇒ TrueClass
Determines whether the possible completions on the popup will appear in the entry as you navigate through them.
#inline_selection? ⇒ TrueClass
Determines whether the possible completions on the popup will appear in the entry as you navigate through them.
#insert_action_markup(index_, markup) ⇒ nil
Inserts an action in completion’s action item list at position index_ with markup markup.
#insert_action_text(index_, text) ⇒ nil
Inserts an action in completion’s action item list at position index_ with text text. If you want the action item to have markup, use gtk_entry_completion_insert_action_markup().
Note that index_ is a relative position in the list of actions and the position of an action can change when deleting a different action.
#insert_prefix ⇒ nil
Requests a prefix insertion.
#minimum_key_length ⇒ Integer
Returns minimum-key-length.
#minimum_key_length=(minimum_key_length) ⇒ Integer
#model ⇒ Gtk::TreeModel
Returns model.
#model=(model) ⇒ Gtk::TreeModel
#new ⇒ Gtk::EntryCompletion
Creates a new Gtk::EntryCompletion object.
#new_with_area(area) ⇒ Gtk::EntryCompletion
Creates a new Gtk::EntryCompletion object using the specified area to layout cells in the underlying Gtk::TreeViewColumn for the drop-down menu.
#popup_completion ⇒ TrueClass
Returns whether the completions should be presented in a popup window.
#popup_completion=(popup_completion) ⇒ TrueClass
Determines whether the possible completions should be shown in a popup window.
#popup_completion? ⇒ TrueClass
Determines whether the possible completions should be shown in a popup window.
#popup_set_width ⇒ TrueClass
Returns whether the completion popup window will be resized to the width of the entry.
#popup_set_width=(popup_set_width) ⇒ TrueClass
Determines whether the completions popup window will be resized to the width of the entry.
#popup_set_width? ⇒ TrueClass
Determines whether the completions popup window will be resized to the width of the entry.
#popup_single_match ⇒ TrueClass
Returns whether the completion popup window will appear even if there is only a single match.
#popup_single_match=(popup_single_match) ⇒ TrueClass
Determines whether the completions popup window will shown for a single possible completion. You probably want to set this to false if you are using [inline completion].
#popup_single_match? ⇒ TrueClass
Determines whether the completions popup window will shown for a single possible completion. You probably want to set this to false if you are using [inline completion].
#set_match_func(func, func_data, func_notify) ⇒ nil
Sets the match function for completion to be func. The match function is used to determine if a row should or should not be in the completion list.
#text_column ⇒ Integer
The column of the model containing the strings. Note that the strings must be UTF-8.
#text_column=(text_column) ⇒ Integer
The column of the model containing the strings. Note that the strings must be UTF-8.