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
win | a #GtkTextWindowType except gtk.types.TextWindowType.Private |
windowX | window x coordinate |
windowY | window y coordinate |
bufferX | buffer x coordinate return location or null |
bufferY | buffer y coordinate return location or null |