CompletionContext
The context of a completion.
GtkSourceCompletionContext
contains information about an attept to display completion proposals to the user based on typed text in the class@View.
When typing, class@Completion may use registered iface@CompletionProvider to determine if there may be results which could be displayed. If so, a GtkSourceCompletionContext
is created with information that is provided to the iface@CompletionProvider to populate results which might be useful to the user.
iface@CompletionProvider are expected to provide iface@Gio.ListModel with iface@CompletionProposal which may be joined together in a list of results for the user. They are also responsible for how the contents are displayed using class@CompletionCell which allows for some level of customization.
Constructors
Properties
Functions
Emitted when a provider changes a model.
Gets the mode for which the context was activated.
Gets the #GtkSourceCompletion that created the context.
Gets the language of the underlying buffer, if any.
Gets the #GListModel associated with the provider.
Gets the providers that are associated with the context.
This function allows providers to update their results for a context outside of a call to method@CompletionProvider.populate_async.