gboolean gtk_text_view_get_iter_at_position ( GtkTextView* text_view, GtkTextIter* iter, int* trailing, int x, int y )
Retrieves the iterator pointing to the character at buffer
Buffer coordinates are coordinates for the entire buffer, not just
the currently-displayed portion. If you have coordinates from an event,
you have to convert those to buffer coordinates with
Note that this is different from
which returns cursor locations, i.e. positions between characters.
The argument will be set by the function. The data is owned by the instance.
NULL, location to store an integer indicating where in the grapheme the user clicked. It will either be zero, or the number of characters in the grapheme. 0 represents the trailing edge of the grapheme.
The argument will be set by the function. The argument can be
X position, in buffer coordinates.
Y position, in buffer coordinates.