gtksource.completion_provider
Module for [CompletionProvider] interface
Types 2
interfaceCompletionProvider
Methods
bool activateProposal(gtksource.completion_proposal.CompletionProposal proposal, gtk.text_iter.TextIter iter)Activate proposal at iter. When this functions returns false, the default activation of proposal will take place which replaces the word at iter with the text of proposal (see [gtksource.completion...gtksource.types.CompletionActivation getActivation()Get with what kind of activation the provider should be activated. Returns: a combination of #GtkSourceCompletionActivation.gio.icon.Icon getGicon()Gets the #GIcon for the icon of provider. Returns: The icon to be used for the provider, or null if the provider does not have a special icon.gdkpixbuf.pixbuf.Pixbuf getIcon()Get the #GdkPixbuf for the icon of the provider. Returns: The icon to be used for the provider, or null if the provider does not have a special icon.string getIconName()Gets the icon name of provider. Returns: The icon name to be used for the provider, or null if the provider does not have a special icon.gtk.widget.Widget getInfoWidget(gtksource.completion_proposal.CompletionProposal proposal)Get a customized info widget to show extra information of a proposal. This allows for customized widgets on a proposal basis, although in general providers will have the same custom widget for all ...int getInteractiveDelay()Get the delay in milliseconds before starting interactive completion for this provider. A value of -1 indicates to use the default value as set by the #GtkSourceCompletion:auto-complete-delay prope...string getName()Get the name of the provider. This should be a translatable name for display to the user. For example: _("Document word completion provider"). The returned string must be freed with [glib.global.gf...int getPriority()Get the provider priority. The priority determines the order in which proposals appear in the completion popup. Higher priorities are sorted before lower priorities. The default priority is 0. Retu...bool getStartIter(gtksource.completion_context.CompletionContext context, gtksource.completion_proposal.CompletionProposal proposal, out gtk.text_iter.TextIter iter)Get the #GtkTextIter at which the completion for proposal starts. When implemented, this information is used to position the completion window accordingly when a proposal is selected in the complet...bool match(gtksource.completion_context.CompletionContext context)Get whether the provider match the context of completion detailed in context.void populate(gtksource.completion_context.CompletionContext context)Populate context with proposals from provider added with the [gtksource.completion_context.CompletionContext.addProposals] function.void updateInfo(gtksource.completion_proposal.CompletionProposal proposal, gtksource.completion_info.CompletionInfo info)Update extra information shown in info for proposal.interfaceCompletionProviderGidBuilderImpl(T)