AnjutaCompletion

## AnjutaCompletion AnjutaCompletion |

## Synopsis

    struct              AnjutaCompletionClass;
    const char *        (*AnjutaCompletionNameFunc)         (const void *item);
    gboolean            (*AnjutaCompletionFilterFunc)       (const void *item,
                                                             void *user_data);
    AnjutaCompletion *  anjuta_completion_new               (AnjutaCompletionNameFunc name_func);
    gboolean            anjuta_completion_get_case_sensitive
                                                            (AnjutaCompletion *self);
    void                anjuta_completion_set_case_sensitive
                                                            (AnjutaCompletion *self,
                                                             gboolean case_sensitive);
    void                anjuta_completion_set_item_destroy_func
                                                            (AnjutaCompletion *self,
                                                             GDestroyNotify item_destroy_func);
    void                anjuta_completion_set_filter_func   (AnjutaCompletion *self,
                                                             AnjutaCompletionFilterFunc filter_func,
                                                             void *user_data);
    void                anjuta_completion_add_item          (AnjutaCompletion *self,
                                                             void *item);
    void                anjuta_completion_clear             (AnjutaCompletion *self);
    GList *             anjuta_completion_complete          (AnjutaCompletion *self,
                                                             const char *prefix,
                                                             gint max_completions);

## Description

## Details

### struct AnjutaCompletionClass

    struct AnjutaCompletionClass {
        GObjectClass parent_class;
    };

### AnjutaCompletionNameFunc ()

    const char *        (*AnjutaCompletionNameFunc)         (const void *item);

### AnjutaCompletionFilterFunc ()

    gboolean            (*AnjutaCompletionFilterFunc)       (const void *item,
                                                             void *user_data);

### anjuta_completion_new ()

    AnjutaCompletion *  anjuta_completion_new               (AnjutaCompletionNameFunc name_func);

### anjuta_completion_get_case_sensitive ()

    gboolean            anjuta_completion_get_case_sensitive
                                                            (AnjutaCompletion *self);

### anjuta_completion_set_case_sensitive ()

    void                anjuta_completion_set_case_sensitive
                                                            (AnjutaCompletion *self,
                                                             gboolean case_sensitive);

### anjuta_completion_set_item_destroy_func ()

    void                anjuta_completion_set_item_destroy_func
                                                            (AnjutaCompletion *self,
                                                             GDestroyNotify item_destroy_func);

`self` : | a AnjutaCompletion
`item_destroy_func` : | the function to be called on the added items when the AnjutaCompletion object is destroyed. [allow-none]

### anjuta_completion_set_filter_func ()

    void                anjuta_completion_set_filter_func   (AnjutaCompletion *self,
                                                             AnjutaCompletionFilterFunc filter_func,
                                                             void *user_data);

### anjuta_completion_add_item ()

    void                anjuta_completion_add_item          (AnjutaCompletion *self,
                                                             void *item);

Add an item to the completion.

`self` : | a AnjutaCompletion
`item` : | the item to be added.

### anjuta_completion_clear ()

    void                anjuta_completion_clear             (AnjutaCompletion *self);

Clear all items added to the completion.

`self` : | a AnjutaCompletion

### anjuta_completion_complete ()

    GList *             anjuta_completion_complete          (AnjutaCompletion *self,
                                                             const char *prefix,
                                                             gint max_completions);

`self` : | A AnjutaCompletion
`prefix` : | The prefix to complete against.
Returns : | The list of completions that matched `prefix`. [transfer container]