gok-word-complete

gok-word-complete

Functions

Description

Functions

gok_wordcomplete_open ()

gboolean
gok_wordcomplete_open (GokWordComplete *complete,
                       gchar *directory);

Opens and initializes the word completor engine.

Returns

TRUE if it was opend OK, FALSE if not.


gok_wordcomplete_close ()

void
gok_wordcomplete_close (GokWordComplete *complete);

Closes the word completor engine.

Returns

void


gok_wordcomplete_predict ()

gchar **
gok_wordcomplete_predict (GokWordComplete *complete,
                          gint num_predictions);

Makes a prediction. If the currently displayed keyboard is showing prediction keys then they are filled in with the predictions.

Returns

An array of strings representing the predicted completions.


gok_wordcomplete_add_new_word ()

gboolean
gok_wordcomplete_add_new_word (GokWordComplete *complete,
                               const char *word);

Adds a new word to the predictor dictionary.

Returns

TRUE if the word was added to the dictionary, FALSE if not.

Types and Values