| GtkSourceView 3 Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
Synopsis
#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);
Properties
"icon" GdkPixbuf* : Read / Write "info" gchar* : Read / Write "label" gchar* : Read / Write "markup" gchar* : Read / Write "text" gchar* : Read / Write
Details
gtk_source_completion_item_new ()
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. |
gtk_source_completion_item_new_with_markup ()
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. |
gtk_source_completion_item_new_from_stock ()
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. [allow-none] |
|
The item text. |
|
The stock icon. |
|
The item extra information. [allow-none] |
Returns : |
a new GtkSourceCompletionItem. |
Property Details
The "info" property
"info" gchar* : Read / Write
Optional extra information to be shown for this proposal.
Default value: NULL
The "label" property
"label" gchar* : Read / Write
Label to be shown for this proposal.
Default value: NULL
The "markup" property
"markup" gchar* : Read / Write
Label with markup to be shown for this proposal.
Default value: NULL
