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

class TextView
void
windowToBufferCoords

Parameters

win gtk.types.TextWindowType

a #GtkTextWindowType except gtk.types.TextWindowType.Private

windowX int

window x coordinate

windowY int

window y coordinate

bufferX int

buffer x coordinate return location or null

bufferY int

buffer y coordinate return location or null