Import line: | GtkSource = imports.gi.GtkSource; |
GIR File: | GtkSource-2.0.gir |
C documentation: | GtkSourceCompletionProvider |
Interface : | CompletionProvider |
Show / Hide Inherited methods, properties and signals |
None |
Method / Constructor | Defined By | |
---|---|---|
Activate proposal at iter.
Activate proposal at iter. When this functions returns FALSE, the default activation of proposal will take place which replaces the word at iter with the label of proposal. FALSE otherwise.
|
GtkSource.CompletionProvider | |
get_activation
()
:
GtkSource.CompletionActivation
Get with what kind of activation the provider should be activated.
Get with what kind of activation the provider should be activated.
|
GtkSource.CompletionProvider | |
get_icon
()
:
GdkPixbuf.Pixbuf
Get the icon of the provider.
Get the icon of the provider. not have a special icon.
|
GtkSource.CompletionProvider | |
get_info_widget
(CompletionProposal proposal)
:
Gtk.Widget
Get a customized info widget to show extra information of a proposal.
Get a customized info widget to show extra information of a proposal. This allows for customized widgets on a proposal basis, although in general providers will have the same custom widget for all their proposals and If implemented, gtk_source_completion_provider_update_info MUST also be implemented. If not implemented, the default gtk_source_completion_proposal_get_info will be used to display extra information about a GtkSourceCompletionProposal.
|
GtkSource.CompletionProvider | |
get_interactive_delay
()
:
Number
Get the delay in milliseconds before starting interactive completion for this provider.
Get the delay in milliseconds before starting interactive completion for this provider. A value of -1 indicates to use the default value as set by GtkSourceCompletion::auto-complete-delay.
|
GtkSource.CompletionProvider | |
get_name
()
:
String
Get the name of the provider.
Get the name of the provider. This should be a translatable name for returned string must be freed with g_free().
|
GtkSource.CompletionProvider | |
get_priority
()
:
Number
Get the provider priority.
Get the provider priority. The priority determines the order in which proposals appear in the completion popup. Higher priorities are sorted before lower priorities. The default priority is 0.
|
GtkSource.CompletionProvider | |
Get the GtkTextIter at which the completion for proposal starts.
Get the GtkTextIter at which the completion for proposal starts. When implemented, the completion can use this information to position the completion window accordingly when a proposal is selected in the completion window.
|
GtkSource.CompletionProvider | |
match
(CompletionContext context)
:
Boolean
Get whether the provider match the context of completion detailed in
Get whether the provider match the context of completion detailed in
|
GtkSource.CompletionProvider | |
populate
(CompletionContext context)
:
none
Populate context with proposals from provider.
Populate context with proposals from provider.
|
GtkSource.CompletionProvider | |
update_info
(CompletionProposal proposal, CompletionInfo info)
:
none
Update extra information shown in info for proposal.
Update extra information shown in info for proposal. This should be implemented if your provider sets a custom info widget for proposal. This function MUST be implemented when gtk_source_completion_provider_get_info_widget is implemented.
|
GtkSource.CompletionProvider |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
GtkSource.Completion
Method |
add_provider
(CompletionProvider provider)
:
Boolean
Add a new GtkSourceCompletionProvider to the completion object.
|
GtkSource.Completion
Method |
remove_provider
(CompletionProvider provider)
:
Boolean
Remove provider from the completion.
|
GtkSource.CompletionModel
Method |
end
(CompletionProvider provider)
:
none
|
GtkSource.CompletionModel
Method |
n_proposals
(CompletionProvider provider)
:
Number
|