TextView.getLineAtY

Gets the #GtkTextIter 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

a #GtkTextIter

y int

a y coordinate

lineTop int

return location for top coordinate of the line