TextView.getLineAtY

Gets the gtk.TextIter at the start of the line containing the coordinate y. y is in buffer coordinates, convert from window coordinates with TextView.windowToBufferCoords. If non-NULL, line_top will be filled with the coordinate of the top edge of the line.

class TextView
void
getLineAtY
(,
int y
,
out int lineTop
)

Parameters

targetIter TextIter
y int

a y coordinate

lineTop int

return location for top coordinate of the line