Completion
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 settermethod
select-on-show
: Property has no getter nor settermethod
show-icons
: Property has no getter nor setterparameter
priority
: priority: Out parameter is not supported
Constructors
Functions
Adds a iface@CompletionProvider to the list of providers to be queried for completion results.
The "hide" signal is emitted when the completion window should be hidden.
The "provided-added" signal is emitted when a new provider is added to the completion.
The "provided-removed" signal is emitted when a provider has been removed from the completion.
The "show" signal is emitted when the completion window should be shown.
Removes a iface@CompletionProvider previously added with method@Completion.add_provider.