TextView.windowToBufferCoords

void windowToBufferCoords(gtk.types.TextWindowType win, int windowX, int windowY, out int bufferX, out int bufferY)

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.TextView.setBorderWindowSize).

Parameters

wina #GtkTextWindowType except gtk.types.TextWindowType.Private
windowXwindow x coordinate
windowYwindow y coordinate
bufferXbuffer x coordinate return location or null
bufferYbuffer y coordinate return location or null