Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
GTK2
GTK2.TextView

Method GTK2.TextView()->get_iter_at_location()


Method get_iter_at_location

GTK2.TextIter get_iter_at_location(int x, int y)

Description

Retrieves the iterator at buffer coordinates x and y. Buffer coordinates are coordinates for the entire buffer, not just the currently-displayed portions. If you have coordinates from an event, you have to convert those to buffer coordinates with window_to_buffer_coords().