-
public void complete ()
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.
-
public void delete_action (int index_)
Deletes the action at index_ from completion's action list.
-
public unowned string get_completion_prefix ()
Get the original text entered by the user that triggered the completion or null if there's
no completion ongoing.
-
public weak Widget get_entry ()
Gets the entry completion has been attached to.
-
public bool get_inline_completion ()
Returns whether the common prefix of the possible completions should be automatically inserted in the
entry.
-
public bool get_inline_selection ()
Returns true if inline-selection mode is turned on.
-
public int get_minimum_key_length ()
Returns the minimum key length as set for completion.
-
public weak TreeModel get_model ()
Returns the model the EntryCompletion is using as
data source. Returns null if the model is unset.
-
public bool get_popup_completion ()
Returns whether the completions should be presented in a popup window.
-
public bool get_popup_set_width ()
Returns whether the completion popup window will be resized to the width of the entry.
-
public bool get_popup_single_match ()
Returns whether the completion popup window will appear even if there is only a single match.
-
public int get_text_column ()
Returns the column in the model of completion to get strings from.
-
public void insert_action_markup (int index_, string markup)
Inserts an action in completion's action item list at position index_ with
markup markup.
-
public void insert_action_text (int index_, string text)
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
insert_action_markup.
-
public void set_inline_completion (bool inline_completion)
Sets whether the common prefix of the possible completions should be automatically inserted in the
entry.
-
public void set_inline_selection (bool inline_selection)
Sets whether it is possible to cycle through the possible completions inside the entry.
-
public void set_match_func (owned EntryCompletionMatchFunc func)
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.
-
public void set_minimum_key_length (int length)
Requires the length of the search key for completion to be at least length.
This is useful for long lists, where completing using a small key takes a lot of time and will come up with meaningless results anyway
(ie, a too large dataset).
-
public void set_model (TreeModel? model)
Sets the model for a EntryCompletion. If
completion already has a model set, it will remove it before setting the new model. If model is null, then it
will unset the model.
-
public void set_popup_completion (bool popup_completion)
Sets whether the completions should be presented in a popup window.
-
public void set_popup_set_width (bool popup_set_width)
Sets whether the completion popup window will be resized to be the same width as the entry.
-
public void set_popup_single_match (bool popup_single_match)
Sets whether the completion popup window will appear even if there is only a single match. You may want
to set this to false if you are using inline
completion.
-
public void set_text_column (int column)
Convenience function for setting up the most used case of this code: a completion list with just
strings. This function will set up completion to have a list displaying all (and just) strings in the completion list,
and to get those strings from column in the model of completion.