TextView.getIterAtLocation

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.

class TextView
bool
getIterAtLocation

Parameters

iter gtk.text_iter.TextIter
x int

x position, in buffer coordinates

y int

y position, in buffer coordinates

Return Value

Type: bool

true if the position is over text