TextView.getIterAtLocation

bool getIterAtLocation(out gtk.text_iter.TextIter iter, int x, int y)

Retrieves the iterator at buffer coordinates x and y. 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 [gtk.text_view.TextView.windowToBufferCoords].

Parameters

itera #GtkTextIter
xx position, in buffer coordinates
yy position, in buffer coordinates

Returns

true if the position is over text