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 [[email protected]_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




2022 vala-language.org