SourceCompletion
Object Hierarchy:
Description:
[ CCode ( type_id = "gtk_source_completion_get_type ()" ) ]
[ GIR ( name = "Completion" ) ]
public class SourceCompletion : Object, Buildable
[ GIR ( name = "Completion" ) ]
public class SourceCompletion : Object, Buildable
Namespace: Gtk
Package: gtksourceview-4
Content:
Properties:
- public uint accelerators { get; set construct; }
Number of keyboard accelerators to show for the first proposals.
- public uint auto_complete_delay { get; set construct; }
Determines the popup delay (in milliseconds) at which the completion will be shown for interactive completion.
- public uint proposal_page_size { get; set construct; }
The scroll page size of the proposals in the completion window.
- public uint provider_page_size { get; set construct; }
The scroll page size of the provider pages in the completion window.
- public bool remember_info_visibility { get; set construct; }
Determines whether the visibility of the info window should be saved when the completion is hidden, and restored when the completion is shown again.
- public bool select_on_show { get; set construct; }
Determines whether the first proposal should be selected when the completion is first shown.
- public bool show_headers { get; set construct; }
Determines whether provider headers should be shown in the proposal list.
- public bool show_icons { get; set construct; }
Determines whether provider and proposal icons should be shown in the completion popup.
- public SourceView view { get; construct; }
The SourceView bound to the completion object.
Creation methods:
- protected SourceCompletion ()
Methods:
- public bool add_provider (SourceCompletionProvider provider) throws Error
Add a new SourceCompletionProvider to the completion object.
- public void block_interactive ()
Block interactive completion.
- public unowned SourceCompletionContext create_context (TextIter? position)
Create a new SourceCompletionContext for this .
- public unowned SourceCompletionInfo get_info_window ()
The info widget is the window where the completion displays optional extra information of the proposal.
- public unowned List<SourceCompletionProvider> get_providers ()
Get list of providers registered on this.
- public unowned SourceView? get_view ()
The SourceView associated with this, or null if the view has been destroyed.
- public virtual bool proposal_activated (SourceCompletionProvider provider, SourceCompletionProposal proposal)
- public bool remove_provider (SourceCompletionProvider provider) throws Error
Remove
provider
from the completion. - public bool start (List<SourceCompletionProvider>? providers, SourceCompletionContext context)
Starts a new completion with the specified SourceCompletionContext and a list of potential candidate providers for completion.
- public void unblock_interactive ()
Unblock interactive completion.
Signals:
- public virtual signal void activate_proposal ()
The activate_proposal signal is a keybinding signal which gets emitted when the user initiates a proposal activation.
- public virtual signal void hide ()
Emitted when the completion window is hidden.
- public virtual signal void move_cursor (ScrollStep step, int num)
The move_cursor signal is a keybinding signal which gets emitted when the user initiates a cursor movement.
- public virtual signal void move_page (ScrollStep step, int num)
The move_page signal is a keybinding signal which gets emitted when the user initiates a page movement (i.
- public virtual signal void populate_context (SourceCompletionContext context)
Emitted just before starting to populate the completion with providers.
- public virtual signal void show ()
Emitted when the completion window is shown.
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface Gtk.Buildable