CompletionProvider.getStartIter
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 completion window. The proposal text inside the completion window is aligned on iter.
If this function is not implemented, the word boundary is taken to position the completion window. See [gtksource.completion_provider.CompletionProvider.activateProposal] for an explanation on the word boundaries.
When the proposal is activated, the default handler uses iter as the start of the word to replace. See [gtksource.completion_provider.CompletionProvider.activateProposal] for more information.
Parameters
context | a #GtkSourceCompletionContext. |
proposal | a #GtkSourceCompletionProposal. |
iter | a #GtkTextIter. |
Returns
true if iter was set for proposal, false otherwise.