GtkSource.CompletionProposal

g GObject.GInterface GObject.GInterface GtkSource.CompletionProposal GtkSource.CompletionProposal GObject.GInterface->GtkSource.CompletionProposal

Implementations:

None

Methods

get_typed_text ()

Virtual Methods

do_get_typed_text ()

Properties

None

Signals

None

Fields

None

Class Details

class GtkSource.CompletionProposal
Bases:

GObject.GInterface

Structure:

GtkSource.CompletionProposalInterface

Interface for completion proposals.

This interface is used to denote that an object is capable of being a completion proposal for [class`Completion`].

Currently, no method or functions are required but additional methods may be added in the future. Proposals created by GtkSource.CompletionProvider can use [func`GObject`.IMPLEMENT_INTERFACE] to implement this with None for the interface init function.

get_typed_text()
Returns:

a newly allocated string, or None

Return type:

str or None

Gets the typed-text for the proposal, if supported by the implementation.

Implementing this virtual-function is optional, but can be useful to allow external tooling to compare results.

New in version 5.6.

do_get_typed_text() virtual
Returns:

a newly allocated string, or None

Return type:

str or None

Gets the typed-text for the proposal, if supported by the implementation.

Implementing this virtual-function is optional, but can be useful to allow external tooling to compare results.

New in version 5.6.