GObject.Object
GtkSource.CompletionItem
Import line: | GtkSource = imports.gi.GtkSource; |
GIR File: | GtkSource-2.0.gir |
C documentation: | GtkSourceCompletionItem |
Class : | CompletionItem |
Implements: | GtkSource.CompletionProposal |
Extends: | GObject.Object |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
icon : GdkPixbuf.Pixbuf
|
GtkSource.CompletionItem | |
info : String
|
GtkSource.CompletionItem | |
label : String
|
GtkSource.CompletionItem | |
markup : String
|
GtkSource.CompletionItem | |
parent : GObject.Object
read only
|
GtkSource.CompletionItem | |
priv : GtkSource.CompletionItemPrivate
read only
|
GtkSource.CompletionItem | |
text : String
|
GtkSource.CompletionItem |
Method / Constructor | Defined By | |
---|---|---|
new GtkSource.CompletionItem
(Object properties)
Create a new GtkSource.CompletionItem
Create a new GtkSource.CompletionItem
|
||
new GtkSource.CompletionItem.c_new
(String label, String text, Pixbuf icon, String info)
:
GtkSource.CompletionItem
Create a new GtkSource.CompletionItem
Create a new GtkSource.CompletionItem
|
||
new GtkSource.CompletionItem.from_stock
(String label, String text, String stock, String info)
:
GtkSource.CompletionItem
Create a new GtkSource.CompletionItem
Create a new GtkSource.CompletionItem
|
||
new GtkSource.CompletionItem.with_markup
(String markup, String text, Pixbuf icon, String info)
:
GtkSource.CompletionItem
Create a new GtkSource.CompletionItem
Create a new GtkSource.CompletionItem
|
||
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 |