gtksource.completion_proposal_mixin

Module for CompletionProposal interface mixin

Templates 2

tmplCompletionProposalT()

Interface for completion proposals.

This interface is used to denote that an object is capable of being a completion proposal for gtksource.completion.Completion.

Currently, no method or functions are required but additional methods may be added in the future. Proposals created by #GtkSourceCompletionProvider can use func@GObject.IMPLEMENT_INTERFACE to implement this with null for the interface init function.

Functions
string getTypedText()

Gets the typed-text for the proposal, if supported by the implementation.

Implementing this virtual-function is optional, but can be useful to allow external tooling to compare results.

Returns

a newly allocated string, or null
tmplCompletionProposalGidBuilderT()

Fluent builder implementation template for gtksource.completion_proposal.CompletionProposal