Completion

open class Completion(pointer: <Error class: unknown class><<Error class: unknown class>>)

Main Completion Object.

The completion system helps the user when they writes some text, such as words, command names, functions, and suchlike. Proposals can be shown, to complete the text the user is writing. Each proposal can contain an additional piece of information (for example documentation), that is displayed when the "Details" button is clicked.

Proposals are created via a iface@CompletionProvider. There can be for example a provider to complete words (see class@CompletionWords), another provider for the completion of function names, etc. To add a provider, call method@Completion.add_provider.

The iface@CompletionProposal interface represents a proposal.

If a proposal contains extra information (see %GTK_SOURCE_COMPLETION_COLUMN_DETAILS), it will be displayed in a supplemental details window, which appears when the "Details" button is clicked.

Each class@View object is associated with a class@Completion instance. This instance can be obtained with method@View.get_completion. The class@View class contains also the signal@View::show-completion signal.

A same iface@CompletionProvider object can be used for several GtkSourceCompletion's.

Skipped during bindings generation

  • method remember-info-visibility: Property has no getter nor setter

  • method select-on-show: Property has no getter nor setter

  • method show-icons: Property has no getter nor setter

  • parameter priority: priority: Out parameter is not supported

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val buffer: Buffer

The #GtkTextBuffer for the #GtkSourceCompletion:view. This is a convenience property for providers.

Link copied to clipboard
val gtksourceCompletionPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open var pageSize: <Error class: unknown class>

The number of rows to display to the user before scrolling.

Link copied to clipboard
open val view: View

The "view" property is the #GtkTextView for which this #GtkSourceCompletion is providing completion features.

Functions

Link copied to clipboard
open fun addProvider(provider: CompletionProvider)

Adds a iface@CompletionProvider to the list of providers to be queried for completion results.

Link copied to clipboard
open fun blockInteractive()
Link copied to clipboard
fun connectHide(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

The "hide" signal is emitted when the completion window should be hidden.

Link copied to clipboard
fun connectProviderAdded(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (provider: CompletionProvider) -> Unit): <Error class: unknown class>

The "provided-added" signal is emitted when a new provider is added to the completion.

Link copied to clipboard
fun connectProviderRemoved(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (provider: CompletionProvider) -> Unit): <Error class: unknown class>

The "provided-removed" signal is emitted when a provider has been removed from the completion.

Link copied to clipboard
fun connectShow(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

The "show" signal is emitted when the completion window should be shown.

Link copied to clipboard
open fun getBuffer(): Buffer

Gets the connected class@View's class@Buffer

Link copied to clipboard
open fun getPageSize(): <Error class: unknown class>
Link copied to clipboard
open fun getView(): View

Gets the class@View that owns the class@Completion.

Link copied to clipboard
open fun hide()

Emits the "hide" signal.

Link copied to clipboard

Removes a iface@CompletionProvider previously added with method@Completion.add_provider.

Link copied to clipboard
open fun setPageSize(pageSize: <Error class: unknown class>)
Link copied to clipboard
open fun show()

Emits the "show" signal.

Link copied to clipboard