GtkSource.CompletionItem¶
- Subclasses:
- None 
Methods¶
- Inherited:
- Structs:
| class | 
 | 
| class | 
 | 
| class | 
 | 
| class | 
 | 
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | 
Virtual Methods¶
- Inherited:
Properties¶
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| r/w | |||
| r/w | |||
| r/w | |||
| r/w | |||
| r/w | |||
| r/w | |||
| r/w | 
Signals¶
- Inherited:
Fields¶
- Inherited:
| Name | Type | Access | Description | 
|---|---|---|---|
| parent | r | 
Class Details¶
- class GtkSource.CompletionItem(**kwargs)¶
- Bases:
- Abstract:
- No 
- Structure:
 - classmethod new(label, text, icon, info)¶
- Parameters:
- Returns:
- a new - GtkSource.CompletionItem.
- Return type:
 - Create a new - GtkSource.CompletionItemwith label label, icon icon and extra information info. Both icon and info can be- Nonein which case there will be no icon shown and no extra information available.- Deprecated since version 3.24: Use - GtkSource.CompletionItem.new2() instead.
 - classmethod new2()¶
- Returns:
- a new - GtkSource.CompletionItem.
- Return type:
 - Creates a new - GtkSource.CompletionItem. The desired properties need to be set afterwards.- New in version 3.24. 
 - classmethod new_from_stock(label, text, stock, info)¶
- Parameters:
- Returns:
- a new - GtkSource.CompletionItem.
- Return type:
 - Creates a new - GtkSource.CompletionItemfrom a stock item. If label is- None, the stock label will be used.- Deprecated since version 3.10: Use - GtkSource.CompletionItem.new2() instead.
 - classmethod new_with_markup(markup, text, icon, info)¶
- Parameters:
- Returns:
- a new - GtkSource.CompletionItem.
- Return type:
 - Create a new - GtkSource.CompletionItemwith markup label markup, icon icon and extra information info. Both icon and info can be- Nonein which case there will be no icon shown and no extra information available.- Deprecated since version 3.24: Use - GtkSource.CompletionItem.new2() instead.
 - set_gicon(gicon)¶
- 
New in version 3.24. 
 - set_icon(icon)¶
- Parameters:
- icon ( - GdkPixbuf.Pixbufor- None) – the- GdkPixbuf.Pixbuf, or- None.
 - New in version 3.24. 
 - set_icon_name(icon_name)¶
- 
New in version 3.24. 
 
Property Details¶
- GtkSource.CompletionItem.props.gicon¶
- 
The Gio.Iconfor the icon to be shown for this proposal.New in version 3.18. 
- GtkSource.CompletionItem.props.icon¶
- Name:
- icon
- Type:
- Default Value:
- Flags:
 - The - GdkPixbuf.Pixbuffor the icon to be shown for this proposal.
- GtkSource.CompletionItem.props.icon_name¶
- 
The icon name for the icon to be shown for this proposal. New in version 3.18. 
- GtkSource.CompletionItem.props.info¶
- 
Optional extra information to be shown for this proposal. 
- GtkSource.CompletionItem.props.label¶
- 
Label to be shown for this proposal. 
- GtkSource.CompletionItem.props.markup¶
- 
Label with markup to be shown for this proposal.