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_window_to_buffer_coords(). If non-NULL, line_top will be filled with the coordinate of the top edge of the line.

class TextView
void
getLineAtY

Parameters

targetIter TextIter

a GtkTextIter. out

y int

a y coordinate

lineTop int

return location for top coordinate of the line. out

Meta