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 TextView.windowToBufferCoords.

class TextView
bool
getIterAtLocation
(,
int x
,
int y
)

Parameters

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