Class
GtkSourceCompletionWords
Description [src]
class GtkSource.CompletionWords : GObject.Object {
parent_instance: GObject
}
A GtkSourceCompletionProvider for the completion of words.
The GtkSourceCompletionWords is an example of an implementation of
the GtkSourceCompletionProvider interface. The proposals are words
appearing in the registered GtkTextBuffers.
Constructors
gtk_source_completion_words_new
Instance methods
gtk_source_completion_words_register
Registers buffer in the words provider.
gtk_source_completion_words_unregister
Unregisters buffer from the words provider.
Methods inherited from GtkSourceCompletionProvider (10)
gtk_source_completion_provider_activate
This function requests proposal to be activated by the
GtkSourceCompletionProvider.
gtk_source_completion_provider_display
This function requests that the GtkSourceCompletionProvider prepares
cell to display the contents of proposal.
gtk_source_completion_provider_get_priority
This function should return the priority of self in context.
gtk_source_completion_provider_get_title
Gets the title of the completion provider, if any.
gtk_source_completion_provider_is_trigger
This function is used to determine if a character inserted into the text editor should cause a new completion request to be triggered.
gtk_source_completion_provider_key_activates
This function is used to determine if a key typed by the user should
activate proposal (resulting in committing the text to the editor).
gtk_source_completion_provider_list_alternates
Providers should return a list of alternates to proposal or NULL if
there are no alternates available.
gtk_source_completion_provider_populate_async
Asynchronously requests that the provider populates the completion
results for context.
gtk_source_completion_provider_populate_finish
Completes an asynchronous operation to populate a completion provider.
gtk_source_completion_provider_refilter
This function can be used to filter results previously provided to
the GtkSourceCompletionContext by the GtkSourceCompletionProvider.