CompletionWords

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

A iface@CompletionProvider for the completion of words.

The GtkSourceCompletionWords is an example of an implementation of the iface@CompletionProvider interface. The proposals are words appearing in the registered class@Gtk.TextBuffers.

Skipped during bindings generation

  • method minimum-word-size: Property has no getter nor setter

  • method priority: Property has no getter nor setter

  • method proposals-batch-size: Property has no getter nor setter

  • method scan-batch-size: Property has no getter nor setter

  • method title: Property has no getter nor setter

Constructors

Link copied to clipboard
constructor(title: String? = null)
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 gtksourceCompletionWordsPointer: <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.

Link copied to clipboard
open fun register(buffer: <Error class: unknown class>)

Registers @buffer in the @words provider.

Link copied to clipboard
open fun unregister(buffer: <Error class: unknown class>)

Unregisters @buffer from the @words provider.