Top | ![]() |
![]() |
![]() |
![]() |
IdeCompletionActivation | ide_completion_context_get_activation () |
const gchar * | ide_completion_context_get_language () |
gboolean | ide_completion_context_is_language () |
GtkTextBuffer * | ide_completion_context_get_buffer () |
GtkTextView * | ide_completion_context_get_view () |
gboolean | ide_completion_context_get_busy () |
gboolean | ide_completion_context_is_empty () |
void | ide_completion_context_set_proposals_for_provider () |
IdeCompletion * | ide_completion_context_get_completion () |
gboolean | ide_completion_context_get_bounds () |
gboolean | ide_completion_context_get_start_iter () |
gchar * | ide_completion_context_get_word () |
gchar * | ide_completion_context_get_line_text () |
gboolean | ide_completion_context_get_item_full () |
gboolean | busy | Read |
IdeCompletion * | completion | Read / Write / Construct Only |
gboolean | empty | Read |
IdeCompletionActivation
ide_completion_context_get_activation (IdeCompletionContext *self
);
Gets the mode for which the context was activated.
Since: 3.30
const gchar *
ide_completion_context_get_language (IdeCompletionContext *self
);
Gets the language identifier which can be useful for providers that support multiple languages.
Since: 3.30
gboolean ide_completion_context_is_language (IdeCompletionContext *self
,const gchar *language
);
Helper to check the language of the underlying buffer.
Since: 3.30
GtkTextBuffer *
ide_completion_context_get_buffer (IdeCompletionContext *self
);
Gets the underlying buffer used by the context.
This is a convenience function to get the buffer via the IdeCompletion property.
Since: 3.30
GtkTextView *
ide_completion_context_get_view (IdeCompletionContext *self
);
Gets the text view for the context.
gboolean
ide_completion_context_get_busy (IdeCompletionContext *self
);
Gets the "busy" property. This is set to TRUE
while the completion
context is actively fetching proposals from the IdeCompletionProvider
that were registered with ide_completion_context_add_provider()
.
Since: 3.30
gboolean
ide_completion_context_is_empty (IdeCompletionContext *self
);
Checks if any proposals have been provided to the context.
Out of convenience, this function will return TRUE
if self
is NULL
.
Since: 3.30
void ide_completion_context_set_proposals_for_provider (IdeCompletionContext *self
,IdeCompletionProvider *provider
,GListModel *results
);
This function allows providers to update their results for a context
outside of a call to ide_completion_provider_populate_async()
. This
can be used to immediately return results for a provider while it does
additional asynchronous work. Doing so will allow the completions to
update while the operation is in progress.
Since: 3.30
IdeCompletion *
ide_completion_context_get_completion (IdeCompletionContext *self
);
Gets the IdeCompletion that created the context.
Since: 3.30
gboolean ide_completion_context_get_bounds (IdeCompletionContext *self
,GtkTextIter *begin
,GtkTextIter *end
);
Gets the bounds for the completion, which is the beginning of the current word (taking break characters into account) to the current insertion cursor.
If begin
is non-NULL
, it will be set to the start position of the
current word being completed.
If end
is non-NULL
, it will be set to the insertion cursor for the
current word being completed.
Since: 3.30
gboolean ide_completion_context_get_start_iter (IdeCompletionContext *self
,GtkTextIter *iter
);
Gets the iter for the start of the completion.
gchar *
ide_completion_context_get_word (IdeCompletionContext *self
);
Gets the word that is being completed up to the position of the insert mark.
gchar *
ide_completion_context_get_line_text (IdeCompletionContext *self
);
This is a convenience helper to get the line text up until the insertion cursor for the current completion.
Since: 3.30
gboolean ide_completion_context_get_item_full (IdeCompletionContext *self
,guint position
,IdeCompletionProvider **provider
,IdeCompletionProposal **proposal
);
“busy”
property “busy” gboolean
The "busy" property is TRUE
while the completion context is
populating completion proposals.
Flags: Read
Default value: FALSE
Since: 3.30
“completion”
property“completion” IdeCompletion *
The "completion" is the IdeCompletion that was used to create the context.
Flags: Read / Write / Construct Only
Since: 3.30