GtkSourceCompletionItem: libgedit-gtksourceview 300 Reference Manual

## GtkSourceCompletionItem GtkSourceCompletionItem — Simple implementation of GtkSourceCompletionProposal |

## Functions

GtkSourceCompletionItem * | gtk_source_completion_item_new ()
void | gtk_source_completion_item_set_label ()
void | gtk_source_completion_item_set_markup ()
void | gtk_source_completion_item_set_text ()
void | gtk_source_completion_item_set_icon ()
void | gtk_source_completion_item_set_icon_name ()
void | gtk_source_completion_item_set_gicon ()
void | gtk_source_completion_item_set_info ()

## Types and Values

struct | GtkSourceCompletionItem

## Object Hierarchy

        GObject
        ╰── GtkSourceCompletionItem

## Implemented Interfaces

GtkSourceCompletionItem implements GtkSourceCompletionProposal.

## Includes

    #include <gtksourceview/gtksource.h>

## Description

The GtkSourceCompletionItem class is a simple implementation of the GtkSourceCompletionProposal interface.

## Functions

### gtk_source_completion_item_new ()

    GtkSourceCompletionItem *
    gtk_source_completion_item_new (void);

Creates a new GtkSourceCompletionItem. The desired attributes need to be set afterwards.

#### Returns

a new GtkSourceCompletionItem.

[transfer full]

Since: 4.0

### gtk_source_completion_item_set_label ()

    void
    gtk_source_completion_item_set_label (GtkSourceCompletionItem *item,
                                          const gchar *label);

#### Parameters

item | a GtkSourceCompletionItem. |
label | the label, or `NULL`. | [nullable]

Since: 3.24

### gtk_source_completion_item_set_markup ()

    void
    gtk_source_completion_item_set_markup (GtkSourceCompletionItem *item,
                                           const gchar *markup);

#### Parameters

item | a GtkSourceCompletionItem. |
markup | the markup, or `NULL`. | [nullable]

Since: 3.24

### gtk_source_completion_item_set_text ()

    void
    gtk_source_completion_item_set_text (GtkSourceCompletionItem *item,
                                         const gchar *text);

#### Parameters

item | a GtkSourceCompletionItem. |
text | the text, or `NULL`. | [nullable]

Since: 3.24

### gtk_source_completion_item_set_icon ()

    void
    gtk_source_completion_item_set_icon (GtkSourceCompletionItem *item,
                                         GdkPixbuf *icon);

#### Parameters

item | a GtkSourceCompletionItem. |
icon | the GdkPixbuf, or `NULL`. | [nullable]

Since: 3.24

### gtk_source_completion_item_set_icon_name ()

    void
    gtk_source_completion_item_set_icon_name
                                   (GtkSourceCompletionItem *item,
                                    const gchar *icon_name);

#### Parameters

item | a GtkSourceCompletionItem. |
icon_name | the icon name, or `NULL`. | [nullable]

Since: 3.24

### gtk_source_completion_item_set_gicon ()

    void
    gtk_source_completion_item_set_gicon (GtkSourceCompletionItem *item,
                                          GIcon *gicon);

#### Parameters

item | a GtkSourceCompletionItem. |
gicon | the GIcon, or `NULL`. | [nullable]

Since: 3.24

### gtk_source_completion_item_set_info ()

    void
    gtk_source_completion_item_set_info (GtkSourceCompletionItem *item,
                                         const gchar *info);

#### Parameters

item | a GtkSourceCompletionItem. |
info | the info, or `NULL`. | [nullable]

Since: 3.24

## Types and Values

### struct GtkSourceCompletionItem

    struct GtkSourceCompletionItem;