GtkSource.CompletionContext¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c |
The type of activation |
||
r/w/co |
The completion object to which the context belongs |
||
r/w |
The |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Emitted when the current population of proposals has been cancelled. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GtkSource.CompletionContext(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- add_proposals(provider, proposals, finished)¶
- Parameters:
provider (
GtkSource.CompletionProvider
) – aGtkSource.CompletionProvider
.proposals ([
GtkSource.CompletionProposal
] orNone
) – The list of proposals to add.finished (
bool
) – Whether the provider is finished adding proposals.
Providers can use this function to add proposals to the completion. They can do so asynchronously by means of the finished argument. Providers must ensure that they always call this function with finished set to
True
once each population (even if no proposals need to be added). Population occurs when theGtkSource.CompletionProvider.populate
() function is called.
- get_activation()¶
- Returns:
The context activation.
- Return type:
Get the context activation.
- get_iter()¶
- Returns:
True
if iter is correctly set,False
otherwise.- iter:
a
Gtk.TextIter
.
- Return type:
(
bool
, iter:Gtk.TextIter
)
Get the iter at which the completion was invoked. Providers can use this to determine how and if to match proposals.
- do_cancelled() virtual¶
Signal Details¶
- GtkSource.CompletionContext.signals.cancelled(completion_context)¶
- Signal Name:
cancelled
- Flags:
- Parameters:
completion_context (
GtkSource.CompletionContext
) – The object which received the signal
Emitted when the current population of proposals has been cancelled. Providers adding proposals asynchronously should connect to this signal to know when to cancel running proposal queries.
Property Details¶
- GtkSource.CompletionContext.props.activation¶
- Name:
activation
- Type:
- Default Value:
- Flags:
The completion activation
- GtkSource.CompletionContext.props.completion¶
- Name:
completion
- Type:
- Default Value:
- Flags:
The
GtkSource.Completion
associated with the context.
- GtkSource.CompletionContext.props.iter¶
- Name:
iter
- Type:
- Default Value:
- Flags:
The
Gtk.TextIter
at which the completion is invoked.