RGtk2 (version 2.20.31)

gtkTextViewWindowToBufferCoords: gtkTextViewWindowToBufferCoords

Description

Converts coordinates on the window identified by win to buffer coordinates, storing the result in (buffer.x,buffer.y).

Usage

gtkTextViewWindowToBufferCoords(object, win, window.x, window.y)

Arguments

object
win
a GtkTextWindowType except GTK_TEXT_WINDOW_PRIVATE
window.x
window x coordinate
window.y
window y coordinate

Value

A list containing the following elements:
buffer.x
buffer x coordinate return location or NULL. [ out ][ allow-none ]
buffer.y
buffer y coordinate return location or NULL. [ out ][ allow-none ]

Details

Note that you can't convert coordinates for a nonexisting window (see gtkTextViewSetBorderWindowSize).