SourceCompletion

Constructors

this
this(GtkSourceCompletion* gtkSourceCompletion, bool ownedRef = false)

Sets our main struct and passes it to the parent class.

Members

Functions

addOnActivateProposal
gulong addOnActivateProposal(void delegate(SourceCompletion) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

The activate-proposal signal is a keybinding signal which gets emitted when the user initiates a proposal activation.

addOnHide
gulong addOnHide(void delegate(SourceCompletion) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

Emitted when the completion window is hidden. The default handler will actually hide the window.

addOnMoveCursor
gulong addOnMoveCursor(void delegate(GtkScrollStep, int, SourceCompletion) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

The move-cursor signal is a keybinding signal which gets emitted when the user initiates a cursor movement.

addOnMovePage
gulong addOnMovePage(void delegate(GtkScrollStep, int, SourceCompletion) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

The move-page signal is a keybinding signal which gets emitted when the user initiates a page movement (i.e. switches between provider pages).

addOnPopulateContext
gulong addOnPopulateContext(void delegate(SourceCompletionContext, SourceCompletion) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

Emitted just before starting to populate the completion with providers. You can use this signal to add additional attributes in the context.

addOnShow
gulong addOnShow(void delegate(SourceCompletion) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

Emitted when the completion window is shown. The default handler will actually show the window.

addProvider
bool addProvider(SourceCompletionProviderIF provider)

Add a new GtkSourceCompletionProvider to the completion object. This will add a reference provider, so make sure to unref your own copy when you no longer need it.

blockInteractive
void blockInteractive()

Block interactive completion. This can be used to disable interactive completion when inserting or deleting text from the buffer associated with the completion. Use gtk_source_completion_unblock_interactive() to enable interactive completion again.

createContext
SourceCompletionContext createContext(TextIter position)

Create a new GtkSourceCompletionContext for completion. The position where the completion occurs can be specified by position. If position is NULL, the current cursor position will be used.

getInfoWindow
SourceCompletionInfo getInfoWindow()

The info widget is the window where the completion displays optional extra information of the proposal.

getProviders
ListG getProviders()

Get list of providers registered on completion. The returned list is owned by the completion and should not be freed.

getSourceCompletionStruct
GtkSourceCompletion* getSourceCompletionStruct(bool transferOwnership = false)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getView
SourceView getView()

The GtkSourceView associated with completion, or NULL if the view has been destroyed.

hide
void hide()

Hides the completion if it is active (visible).

removeProvider
bool removeProvider(SourceCompletionProviderIF provider)

Remove provider from the completion.

start
bool start(ListG providers, SourceCompletionContext context)

Starts a new completion with the specified GtkSourceCompletionContext and a list of potential candidate providers for completion.

unblockInteractive
void unblockInteractive()

Unblock interactive completion. This can be used after using gtk_source_completion_block_interactive() to enable interactive completion again.

Static functions

getType
GType getType()

Variables

gtkSourceCompletion
GtkSourceCompletion* gtkSourceCompletion;

the main Gtk struct