CompletionSnippets

open class CompletionSnippets(pointer: <Error class: unknown class><<Error class: unknown class>>) : CompletionProvider

A iface@CompletionProvider for the completion of snippets.

The GtkSourceCompletionSnippets is an example of an implementation of the iface@CompletionProvider interface. The proposals are snippets registered with the class@SnippetManager.

Skipped during bindings generation

  • method priority: Property has no getter nor setter

  • method title: Property has no getter nor setter

Constructors

Link copied to clipboard
constructor()
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val gtksourceCompletionProviderPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gtksourceCompletionSnippetsPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun activate(context: CompletionContext, proposal: CompletionProposal)

This function requests @proposal to be activated by the #GtkSourceCompletionProvider.

Link copied to clipboard
open fun display(context: CompletionContext, proposal: CompletionProposal, cell: CompletionCell)

This function requests that the #GtkSourceCompletionProvider prepares

Link copied to clipboard
open fun getPriority(context: CompletionContext): Int

This function should return the priority of @self in @context.

Link copied to clipboard
open fun getTitle(): String?

Gets the title of the completion provider, if any.

Link copied to clipboard
open fun isTrigger(iter: <Error class: unknown class>, ch: <Error class: unknown class>): Boolean

This function is used to determine if a character inserted into the text editor should cause a new completion request to be triggered.

Link copied to clipboard
open fun keyActivates(context: CompletionContext, proposal: CompletionProposal, keyval: <Error class: unknown class>, state: <Error class: unknown class>): Boolean

This function is used to determine if a key typed by the user should activate @proposal (resulting in committing the text to the editor).

Link copied to clipboard
open fun populateAsync(context: CompletionContext, cancellable: <Error class: unknown class>? = null, callback: <Error class: unknown class>)

Asynchronously requests that the provider populates the completion results for @context.

Link copied to clipboard
open fun populateFinish(result: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>>

Completes an asynchronous operation to populate a completion provider.

Link copied to clipboard
open fun refilter(context: CompletionContext, model: <Error class: unknown class>)

This function can be used to filter results previously provided to the class@CompletionContext by the #GtkSourceCompletionProvider.