Class
IdeCompletionContext
Instance methods
ide_completion_context_get_activation
Gets the mode for which the context was activated.
since: 3.32
ide_completion_context_get_bounds
Gets the bounds for the completion, which is the beginning of the current word (taking break characters into account) to the current insertion cursor.
since: 3.32
ide_completion_context_get_busy
Gets the “busy” property. This is set to TRUE
while the completion
context is actively fetching proposals from the IdeCompletionProvider
that were registered with ide_completion_context_add_provider().
since: 3.32
ide_completion_context_get_language
Gets the language identifier which can be useful for providers that support multiple languages.
since: 3.32
ide_completion_context_get_line_text
This is a convenience helper to get the line text up until the insertion cursor for the current completion.
since: 3.32
ide_completion_context_get_word
Gets the word that is being completed up to the position of the insert mark.
since: 3.32
ide_completion_context_is_empty
Checks if any proposals have been provided to the context.
since: 3.32
ide_completion_context_is_language
Helper to check the language of the underlying buffer.
since: 3.32
ide_completion_context_set_proposals_for_provider
This function allows providers to update their results for a context outside of a call to ide_completion_provider_populate_async(). This can be used to immediately return results for a provider while it does additional asynchronous work. Doing so will allow the completions to update while the operation is in progress.
since: 3.32
Methods inherited from GListModel (5)
g_list_model_get_item
Get the item at position
. If position
is greater than the number of
items in list
, NULL
is returned.
since: 2.44
g_list_model_get_item_type
Gets the type of the items in list
. All items returned from
g_list_model_get_type()
are of that type or a subtype, or are an
implementation of that interface.
since: 2.44
g_list_model_get_n_items
Gets the number of items in list
.
since: 2.44
g_list_model_get_object
Get the item at position
. If position
is greater than the number of
items in list
, NULL
is returned.
since: 2.44
g_list_model_items_changed
Emits the GListModel::items-changed
signal on list
.
since: 2.44
Properties
Ide.CompletionContext:busy
The “busy” property is TRUE
while the completion context is
populating completion proposals.
since: 3.32
Ide.CompletionContext:completion
The “completion” is the IdeCompletion
that was used to create the context.
since: 3.32
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Signals inherited from GListModel (1)
GListModel::items-changed
This signal is emitted whenever items were added to or removed
from list
. At position
, removed
items were removed and added
items were added in their place.
since: 2.44