gtksourcecompletion-utils

gtksourcecompletion-utils — Internal utilities

Synopsis



gchar*              gtk_source_view_get_last_word_and_iter
                                                        (GtkTextView *text_view,
                                                         GtkTextIter *start_word,
                                                         GtkTextIter *end_word);
gchar*              gtk_source_view_get_last_word       (GtkTextView *text_view);
void                gtk_source_view_get_cursor_pos      (GtkTextView *text_view,
                                                         gint *x,
                                                         gint *y);
gchar*              gtc_gsv_get_text                    (GtkTextView *text_view);
void                gtk_source_view_replace_actual_word (GtkTextView *text_view,
                                                         const gchar *text);

Description

Details

gtk_source_view_get_last_word_and_iter ()

gchar*              gtk_source_view_get_last_word_and_iter
                                                        (GtkTextView *text_view,
                                                         GtkTextIter *start_word,
                                                         GtkTextIter *end_word);

text_view : The GtkTextView
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
Returns : the last word written in the GtkTextView or ""

gtk_source_view_get_last_word ()

gchar*              gtk_source_view_get_last_word       (GtkTextView *text_view);

text_view : The GtkTextView
Returns : the last word written in the GtkTextView or ""

gtk_source_view_get_cursor_pos ()

void                gtk_source_view_get_cursor_pos      (GtkTextView *text_view,
                                                         gint *x,
                                                         gint *y);

Gets the cursor position on the screen.

text_view : The GtkTextView
x : Assign the x position of the cursor
y : Assign the y position of the cursor

gtc_gsv_get_text ()

gchar*              gtc_gsv_get_text                    (GtkTextView *text_view);

text_view : The GtkTextView
Returns : the GtkTextView content .

gtk_source_view_replace_actual_word ()

void                gtk_source_view_replace_actual_word (GtkTextView *text_view,
                                                         const gchar *text);

Replaces the current word in the GtkTextView with the new word

text_view : The GtkTextView
text : The text to be inserted instead of the current word