TextView.getLineAtY

Gets the gtk.text_iter.TextIter at the start of the line containing the coordinate y.

y is in buffer coordinates, convert from window coordinates with gtk.text_view.TextView.windowToBufferCoords. If non-null, line_top will be filled with the coordinate of the top edge of the line.

class TextView
void
getLineAtY

Parameters

targetIter gtk.text_iter.TextIter
y int

a y coordinate

lineTop int

return location for top coordinate of the line