TextView.bufferToWindowCoords

Converts coordinate (buffer_x, buffer_y) to coordinates for the window win, and stores the result in (window_x, window_y).

Note that you can’t convert coordinates for a nonexisting window (see gtk.text_view.TextView.setBorderWindowSize).

class TextView
void
bufferToWindowCoords

Parameters

win gtk.types.TextWindowType

a #GtkTextWindowType, except gtk.types.TextWindowType.Private

bufferX int

buffer x coordinate

bufferY int

buffer y coordinate

windowX int

window x coordinate return location or null

windowY int

window y coordinate return location or null