GscCompletionUtils

GscCompletionUtils — Useful functions

Synopsis

void                gsc_utils_get_iter_at_insert        (GtkTextView *view,
                                                         GtkTextIter *iter);
gchar *             gsc_utils_clear_word                (const gchar *word);
gboolean            gsc_utils_is_separator              (gunichar ch);
gchar *             gsc_utils_get_word_iter             (GtkTextBuffer *text_buffer,
                                                         GtkTextIter *current,
                                                         GtkTextIter *start_word,
                                                         GtkTextIter *end_word);
gchar *             gsc_utils_get_word                  (GtkTextBuffer *text_view);
void                gsc_utils_replace_word              (GtkTextBuffer *text_buffer,
                                                         GtkTextIter *iter,
                                                         const gchar *text,
                                                         gint len);
void                gsc_utils_replace_current_word      (GtkTextBuffer *text_buffer,
                                                         const gchar *text,
                                                         gint len);
void                gsc_utils_move_to_iter              (GtkWindow *window,
                                                         GtkTextView *view,
                                                         GtkTextIter *iter);
void                gsc_utils_move_to_cursor            (GtkWindow *window,
                                                         GtkTextView *view);

Description

Details

gsc_utils_get_iter_at_insert ()

void                gsc_utils_get_iter_at_insert        (GtkTextView *view,
                                                         GtkTextIter *iter);

view :

iter :


gsc_utils_clear_word ()

gchar *             gsc_utils_clear_word                (const gchar *word);

word :

Returns :


gsc_utils_is_separator ()

gboolean            gsc_utils_is_separator              (gunichar ch);

ch :

Returns :


gsc_utils_get_word_iter ()

gchar *             gsc_utils_get_word_iter             (GtkTextBuffer *text_buffer,
                                                         GtkTextIter *current,
                                                         GtkTextIter *start_word,
                                                         GtkTextIter *end_word);

text_buffer: The GtkTextBuffer start_word: if != NULL then assign it the start position of the word end_word: if != NULL then assing it the end position of the word

text_buffer :

current :

start_word :

end_word :

Returns :

the current word

gsc_utils_get_word ()

gchar *             gsc_utils_get_word                  (GtkTextBuffer *text_view);

text_view :

Returns :

the current word

gsc_utils_replace_word ()

void                gsc_utils_replace_word              (GtkTextBuffer *text_buffer,
                                                         GtkTextIter *iter,
                                                         const gchar *text,
                                                         gint len);

text_buffer :

iter :

text :

len :


gsc_utils_replace_current_word ()

void                gsc_utils_replace_current_word      (GtkTextBuffer *text_buffer,
                                                         const gchar *text,
                                                         gint len);

text_buffer :

text :

len :


gsc_utils_move_to_iter ()

void                gsc_utils_move_to_iter              (GtkWindow *window,
                                                         GtkTextView *view,
                                                         GtkTextIter *iter);

window :

the GtkWindow to move

view :

the view

iter :

the iter to move window to

gsc_utils_move_to_cursor ()

void                gsc_utils_move_to_cursor            (GtkWindow *window,
                                                         GtkTextView *view);

window :

view :