Class: GtkSource::CompletionContext
- Inherits:
-
Object
- Object
- GtkSource::CompletionContext
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#activation ⇒ GtkSource::CompletionActivation
Gets the mode for which the context was activated.
-
#buffer ⇒ GtkSource::Buffer
Gets the underlying buffer used by the context.
-
#busy ⇒ Boolean
Gets the "busy" property.
-
#busy=(busy) ⇒ Boolean
The "busy" property is true while the completion context is populating completion proposals.
-
#busy? ⇒ Boolean
The "busy" property is true while the completion context is populating completion proposals.
-
#completion ⇒ GtkSource::Completion
The "completion" is the Gtk::SourceCompletion that was used to create the context.
-
#completion=(completion) ⇒ GtkSource::Completion
The "completion" is the Gtk::SourceCompletion that was used to create the context.
-
#empty ⇒ Boolean
Checks if any proposals have been provided to the context.
-
#empty=(empty) ⇒ Boolean
The "empty" property is true when there are no results.
-
#empty? ⇒ Boolean
The "empty" property is true when there are no results.
-
#get_bounds(begin, end) ⇒ Boolean
Gets the bounds for the completion, which is the beginning of the current word (taking break characters into account) to the current insertion cursor.
-
#get_proposals_for_provider(provider) ⇒ Gio::ListModel
Gets the GList::Model associated with the provider.
-
#language ⇒ GtkSource::Language
Gets the language of the underlying buffer, if any.
-
#list_providers ⇒ Gio::ListModel
Gets the providers that are associated with the context.
-
#set_proposals_for_provider(provider, results) ⇒ nil
This function allows providers to update their results for a context outside of a call to [methodCompletionProvider.populate_async].
-
#view ⇒ GtkSource::View
Gets the text view for the context.
-
#word ⇒ String
Gets the word that is being completed up to the position of the insert mark.
Instance Method Details
#activation ⇒ GtkSource::CompletionActivation
Gets the mode for which the context was activated.
#buffer ⇒ GtkSource::Buffer
Gets the underlying buffer used by the context.
This is a convenience function to get the buffer via the Gtk::SourceCompletion property.
#busy ⇒ Boolean
Gets the "busy" property. This is set to true while the completion context is actively fetching proposals from registered Gtk::SourceCompletionProvider's.
#busy=(busy) ⇒ Boolean
The "busy" property is true while the completion context is populating completion proposals.
#busy? ⇒ Boolean
The "busy" property is true while the completion context is populating completion proposals.
#completion ⇒ GtkSource::Completion
The "completion" is the Gtk::SourceCompletion that was used to create the context.
#completion=(completion) ⇒ GtkSource::Completion
The "completion" is the Gtk::SourceCompletion that was used to create the context.
#empty ⇒ Boolean
Checks if any proposals have been provided to the context.
Out of convenience, this function will return true if self is nil.
#empty=(empty) ⇒ Boolean
The "empty" property is true when there are no results.
It will be notified when the first result is added or the last result is removed.
#empty? ⇒ Boolean
The "empty" property is true when there are no results.
It will be notified when the first result is added or the last result is removed.
#get_bounds(begin, end) ⇒ Boolean
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-nil, it will be set to the start position of the current word being completed.
If end is non-nil, it will be set to the insertion cursor for the current word being completed.
#get_proposals_for_provider(provider) ⇒ Gio::ListModel
Gets the GList::Model associated with the provider.
You can connect to Gtk::SourceCompletionContext::model-changed to receive notifications about when the model has been replaced by a new model.
#language ⇒ GtkSource::Language
Gets the language of the underlying buffer, if any.
#list_providers ⇒ Gio::ListModel
Gets the providers that are associated with the context.
#set_proposals_for_provider(provider, results) ⇒ nil
This function allows providers to update their results for a context outside of a call to [methodCompletionProvider.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.
#view ⇒ GtkSource::View
Gets the text view for the context.
#word ⇒ String
Gets the word that is being completed up to the position of the insert mark.