Import line: | GtkSource = imports.gi.GtkSource; |
GIR File: | GtkSource-2.0.gir |
C documentation: | GtkSourceCompletionProposal |
Interface : | CompletionProposal |
Implementations: | GtkSource.CompletionItem |
Show / Hide Inherited methods, properties and signals |
None |
Method / Constructor | Defined By | |
---|---|---|
changed
()
:
none
Emits the "changed" signal on proposal.
Emits the "changed" signal on proposal. This should be called by implementations whenever the name, icon or info of the proposal has changed.
|
GtkSource.CompletionProposal | |
equal
(CompletionProposal other)
:
Boolean
Get whether two proposal objects are the same.
Get whether two proposal objects are the same. This is used to (together with gtk_source_completion_proposal_hash) to match proposals in the completion model. By default, it uses direct equality (g_direct_equal).
|
GtkSource.CompletionProposal | |
get_icon
()
:
GdkPixbuf.Pixbuf
Gets the icon of proposal.
Gets the icon of proposal.
|
GtkSource.CompletionProposal | |
get_info
()
:
String
Gets extra information associated to the proposal.
Gets extra information associated to the proposal. This information will be used to present the user with extra, detailed information about the selected proposal. The returned string must be freed with g_free(). no extra information is associated to proposal.
|
GtkSource.CompletionProposal | |
get_label
()
:
String
Gets the label of proposal.
Gets the label of proposal. The label is shown in the list of proposals as plain text. If you need any markup (such as bold or italic text), you have to implement gtk_source_completion_proposal_get_markup. The returned string must be freed with g_free().
|
GtkSource.CompletionProposal | |
get_markup
()
:
String
Gets the label of proposal with markup.
Gets the label of proposal with markup. The label is shown in the list of proposals and may contain markup. This will be used instead of gtk_source_completion_proposal_get_label if implemented. The returned string must be freed with g_free().
|
GtkSource.CompletionProposal | |
get_text
()
:
String
Gets the text of proposal.
Gets the text of proposal. The text that is inserted into the text buffer when the proposal is activated by the default activation. You are free to implement a custom activation handler in the provider and not implement this function. The returned string must be freed with g_free().
|
GtkSource.CompletionProposal | |
hash
()
:
Number
Get the hash value of proposal.
Get the hash value of proposal. This is used to (together with gtk_source_completion_proposal_equal) to match proposals in the completion model. By default, it uses a direct hash (g_direct_hash).
|
GtkSource.CompletionProposal |
Event | Defined By | |
---|---|---|
changed (CompletionProposal self)
:
none
|
GtkSource.CompletionProposal |
Class / Namespace | Method / Signal / Properties |
---|---|
GtkSource.CompletionProvider
Method |
get_info_widget
(CompletionProposal proposal)
:
Gtk.Widget
Get a customized info widget to show extra information of a proposal.
|
GtkSource.CompletionProvider
Method |
update_info
(CompletionProposal proposal, CompletionInfo info)
:
none
Update extra information shown in info for proposal.
|
GtkSource.CompletionProvider
Method |
Get the GtkTextIter at which the completion for proposal starts.
|
GtkSource.CompletionProvider
Method |
Activate proposal at iter.
|