Method

Gtk.TextView.get_line_at_y

Declaration [src]

void
gtk_text_view_get_line_at_y (
  GtkTextView* text_view,
  GtkTextIter* target_iter,
  int y,
  int* line_top
)

Description [src]

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.

Parameters

target_iter GtkTextIter
 

a GtkTextIter

 Direction: out
 Ownership is not transferred to the callee
y int
 

a y coordinate

line_top int*
 

return location for top coordinate of the line

 Direction: out
 Ownership of the data is transferred to the callee