get_line_at_y


Description:

public void get_line_at_y (out TextIter target_iter, int y, out int line_top)

Gets the `GtkTextIter` at the start of the line containing the coordinate y.

y is in buffer coordinates, convert from window coordinates with [method@Gtk.TextView.window_to_buffer_coords]. If non- null, line_top will be filled with the coordinate of the top edge of the line.

Parameters:

this

a `GtkTextView`

target_iter

a `GtkTextIter`

y

a y coordinate

line_top

return location for top coordinate of the line