CompletionProvider
Object Hierarchy:
GtkSource.CompletionProvider
GtkSource.CompletionProvider
GtkSource.CompletionProvider
GLib.Object
GLib.Object
GLib.Object->GtkSource.CompletionProvider
Description:
[ CCode ( type_cname = "GtkSourceCompletionProviderInterface" , type_id = "gtk_source_completion_provider_get_type ()" ) ]public interface CompletionProvider : Object
Completion provider interface.
You must implement this interface to provide proposals to [class@Completion].
In most cases, implementations of this interface will want to use [[email protected] _async] to asynchronously populate
the results to avoid blocking the main loop.
All known implementing classes:
Content:
Methods:
public abstract void activate (CompletionContext context, CompletionProposal proposal)
This function requests proposal
to be activated by the
CompletionProvider .
public abstract void display (CompletionContext context, CompletionProposal proposal, CompletionCell cell)
This function requests that the
CompletionProvider prepares cell
to display the contents of proposal
.
public abstract int get_priority (CompletionContext context)
This function should return the priority of
this in context
.
public abstract string ? get_title ()
Gets the title of the completion provider, if any.
public abstract bool is_trigger (TextIter iter, unichar ch)
This function is used to determine of a character inserted into the
text editor should cause a new completion request to be triggered.
public abstract bool key_activates (CompletionContext context, CompletionProposal proposal, uint keyval, ModifierType state)
This function is used to determine if a key typed by the user should
activate proposal
(resulting in committing the text to the editor).
public abstract GenericArray <CompletionProposal >? list_alternates (CompletionContext context, CompletionProposal proposal)
Providers should return a list of alternates to proposal
or null if there are no alternates available.
public abstract async ListModel populate_async (CompletionContext context, Cancellable ? cancellable) throws Error
Asynchronously requests that the provider populates the completion
results for context
.
public abstract void refilter (CompletionContext context, ListModel model)
This function can be used to filter results previously provided to the
[class@CompletionContext] by the CompletionProvider .
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref