![]() |
![]() |
![]() |
GtkSourceView 2 Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
#include <gtksourceview/gtksourcecompletionitem.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
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 |
|
The item extra information |
Returns : |
The 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 |
|
The item extra information |
Returns : |
The new GtkSourceCompletionItem. |
GtkSourceCompletionItem * gtk_source_completion_item_new_from_stock (const gchar *label, const gchar *text, const gchar *stock, const gchar *info);
Creates a new GtkSourceCompletionItem from a stock item. If label
is NULL
,
the stock label will be used.
|
The item label |
|
The item text |
|
The stock icon |
|
The item extra information |
Returns : |
the newly constructed 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