| [Insert name here] Reference Manual |
|---|
gboolean gok_wordcomplete_open (GokWordComplete *complete, gchar *directory); void gok_wordcomplete_close (GokWordComplete *complete); gchar** gok_wordcomplete_predict (GokWordComplete *complete, gint num_predictions); gboolean gok_wordcomplete_add_new_word (GokWordComplete *complete, const char *word);
gboolean gok_wordcomplete_open (GokWordComplete *complete,
gchar *directory);Opens and initializes the word completor engine.
| complete : | |
| directory : | |
| Returns : | TRUE if it was opend OK, FALSE if not. |
void gok_wordcomplete_close (GokWordComplete *complete);
Closes the word completor engine.
| complete : |
|
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.
| complete : | |
| num_predictions : | |
| Returns : | An array of strings representing the predicted completions. |
gboolean gok_wordcomplete_add_new_word (GokWordComplete *complete,
const char *word);Adds a new word to the predictor dictionary.
| complete : | |
| word : | |
| Returns : | TRUE if the word was added to the dictionary, FALSE if not. |
| <<< gok-spy | gok >>> |