CompletionProvider.getStartIter

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 gtksource.completion_context.CompletionContext

a #GtkSourceCompletionContext.

proposal gtksource.completion_proposal.CompletionProposal

a #GtkSourceCompletionProposal.

iter gtk.text_iter.TextIter

a #GtkTextIter.

Return Value

Type: bool

true if iter was set for proposal, false otherwise.