SourceCompletionProviderIF

Members

Functions

activateProposal
bool activateProposal(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 text of proposal (see Source.completionProposalGetText).

getActivation
GtkSourceCompletionActivation getActivation()

Get with what kind of activation the provider should be activated.

getGicon
IconIF getGicon()

Gets the GIcon for the icon of provider.

getIcon
Pixbuf getIcon()

Get the gdk.Pixbuf for the icon of the provider.

getIconName
string getIconName()

Gets the icon name of provider.

getInfoWidget
Widget getInfoWidget(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.

getInteractiveDelay
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 auto-complete-delay property.

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

getPriority
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.

getSourceCompletionProviderStruct
GtkSourceCompletionProvider* getSourceCompletionProviderStruct(bool transferOwnership)

Get the main Gtk struct

getStartIter
bool getStartIter(SourceCompletionContext context, SourceCompletionProposalIF proposal, TextIter iter)

Get the gtk.TextIter 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 completion window. The proposal text inside the completion window is aligned on iter.

getStruct
void* getStruct()

the main Gtk struct as a void*

match
bool match(SourceCompletionContext context)

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

populate
void populate(SourceCompletionContext context)

Populate context with proposals from provider added with the Source.completionContextAddProposals function.

updateInfo
void updateInfo(SourceCompletionProposalIF proposal, SourceCompletionInfo info)

Update extra information shown in info for proposal.

Static functions

getType
GType getType()