TextView.windowToBufferCoords

Converts coordinates on the window identified by win to buffer coordinates, storing the result in (buffer_x,buffer_y). Note that you can't convert coordinates for a nonexisting window (see gtk_text_view_set_border_window_size()).

class TextView
void
windowToBufferCoords

Parameters

win GtkTextWindowType

a GtkTextWindowType except GTK_TEXT_WINDOW_PRIVATE

windowX int

window x coordinate

windowY int

window y coordinate

bufferX int

buffer x coordinate return location or NULL. out[allow-none]

bufferY int

buffer y coordinate return location or NULL. out[allow-none]

Meta