| Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
GtkSourceCompletionItemGtkSourceCompletionItem — Simple implementation of GtkSourceCompletionProposal |
#include <gtksourceview/gtksource.h>
GtkSourceCompletionItem;
GtkSourceCompletionItem * gtk_source_completion_item_new
(const gchar *label,
const gchar *text,
GdkPixbuf *icon,
const gchar *info);
GtkSourceCompletionItem * gtk_source_completion_item_new_with_markup
(const gchar *markup,
const gchar *text,
GdkPixbuf *icon,
const gchar *info);
GtkSourceCompletionItem * gtk_source_completion_item_new_from_stock
(const gchar *label,
const gchar *text,
const gchar *stock,
const gchar *info);
"icon" GdkPixbuf* : Read / Write "info" gchar* : Read / Write "label" gchar* : Read / Write "markup" gchar* : Read / Write "text" gchar* : Read / Write "icon" GdkPixbuf* : Read / Write "info" gchar* : Read / Write "label" gchar* : Read / Write "markup" gchar* : Read / Write "text" gchar* : Read / Write "icon" GdkPixbuf* : Read / Write "info" gchar* : Read / Write "label" gchar* : Read / Write "markup" gchar* : Read / Write "text" gchar* : Read / Write
The GtkSourceCompletionItem class is a simple implementation of the GtkSourceCompletionProposal interface.
GtkSourceCompletionItem * gtk_source_completion_item_new (const gchar *label,const gchar *text,GdkPixbuf *icon,const gchar *info);
Create a new GtkSourceCompletionItem with label label, icon icon and
extra information info. Both icon and info can be NULL in which case
there will be no icon shown and no extra information available.
|
The item label. |
|
The item text. |
|
The item icon. [allow-none] |
|
The item extra information. [allow-none] |
Returns : |
a new GtkSourceCompletionItem. |
GtkSourceCompletionItem * gtk_source_completion_item_new_with_markup (const gchar *markup,const gchar *text,GdkPixbuf *icon,const gchar *info);
Create a new GtkSourceCompletionItem with markup label markup, icon
icon and extra information info. Both icon and info can be NULL in
which case there will be no icon shown and no extra information available.
|
The item markup label. |
|
The item text. |
|
The item icon. [allow-none] |
|
The item extra information. [allow-none] |
Returns : |
a new GtkSourceCompletionItem. |
GtkSourceCompletionItem * gtk_source_completion_item_new_from_stock (const gchar *label,const gchar *text,const gchar *stock,const gchar *info);
gtk_source_completion_item_new_from_stock has been deprecated since version 3.10 and should not be used in newly-written code. Use gtk_source_completion_item_new() instead.
Creates a new GtkSourceCompletionItem from a stock item. If label is NULL,
the stock label will be used.
|
The item label. [allow-none] |
|
The item text. |
|
The stock icon. |
|
The item extra information. [allow-none] |
Returns : |
a new GtkSourceCompletionItem. |
"info" property"info" gchar* : Read / Write
Optional extra information to be shown for this proposal.
Default value: NULL
"label" property"label" gchar* : Read / Write
Label to be shown for this proposal.
Default value: NULL
"markup" property"markup" gchar* : Read / Write
Label with markup to be shown for this proposal.
Default value: NULL
"info" property"info" gchar* : Read / Write
Optional extra information to be shown for this proposal.
Default value: NULL
"label" property"label" gchar* : Read / Write
Label to be shown for this proposal.
Default value: NULL
"markup" property"markup" gchar* : Read / Write
Label with markup to be shown for this proposal.
Default value: NULL
"info" property"info" gchar* : Read / Write
Optional extra information to be shown for this proposal.
Default value: NULL
"label" property"label" gchar* : Read / Write
Label to be shown for this proposal.
Default value: NULL
"markup" property"markup" gchar* : Read / Write
Label with markup to be shown for this proposal.
Default value: NULL