SourceCompletionProviderIF

Description You must implement this interface to provide proposals to GtkSourceCompletion

Members

Functions

getSourceCompletionProviderTStruct
GtkSourceCompletionProvider* getSourceCompletionProviderTStruct()
Undocumented in source.
getStruct
void* getStruct()

the main Gtk struct as a void*

gtkSourceCompletionProviderActivateProposal
int gtkSourceCompletionProviderActivateProposal(SourceCompletionProposalIF proposal, 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 label of proposal.

gtkSourceCompletionProviderGetActivation
GtkSourceCompletionActivation gtkSourceCompletionProviderGetActivation()
gtkSourceCompletionProviderGetIcon
Pixbuf gtkSourceCompletionProviderGetIcon()

Get the icon of the provider.

gtkSourceCompletionProviderGetInfoWidget
Widget gtkSourceCompletionProviderGetInfoWidget(SourceCompletionProposalIF 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 their proposals and proposal can be ignored. The implementation of this function is optional. If implemented, gtk_source_completion_provider_update_info MUST also be implemented. If not implemented, the default gtk_source_completion_proposal_get_info will be used to display extra information about a GtkSourceCompletionProposal.

gtkSourceCompletionProviderGetInteractiveDelay
int gtkSourceCompletionProviderGetInteractiveDelay()
gtkSourceCompletionProviderGetName
string gtkSourceCompletionProviderGetName()

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 g_free().

gtkSourceCompletionProviderGetPriority
int gtkSourceCompletionProviderGetPriority()
gtkSourceCompletionProviderGetStartIter
int gtkSourceCompletionProviderGetStartIter(SourceCompletionContext context, SourceCompletionProposalIF proposal, TextIter iter)

Get the GtkTextIter at which the completion for proposal starts. When implemented, the completion can use this information to position the completion window accordingly when a proposal is selected in the completion window.

gtkSourceCompletionProviderMatch
int gtkSourceCompletionProviderMatch(SourceCompletionContext context)

Get whether the provider match the context of completion detailed in context.

gtkSourceCompletionProviderPopulate
void gtkSourceCompletionProviderPopulate(SourceCompletionContext context)

Populate context with proposals from provider

gtkSourceCompletionProviderUpdateInfo
void gtkSourceCompletionProviderUpdateInfo(SourceCompletionProposalIF proposal, SourceCompletionInfo info)

Update extra information shown in info for proposal. This should be implemented if your provider sets a custom info widget for proposal. This function MUST be implemented when gtk_source_completion_provider_get_info_widget is implemented.

Meta