Package: gtk

Function gtk-text-view-window-to-buffer-coords

Lambda List

gtk-text-view-window-to-buffer-coords (view wtype xwindow ywindow)

Arguments

view -- a gtk-text-view widget
wtype -- a value of the gtk-text-window-type enumeration, except :private
xwindow -- an integer with the window x coordinate
ywindow -- an integer with the window y coordinate

Return Value

xbuffer -- an integer with the text buffer x coordinate or
ybuffer -- an integer with the text buffer y coordinate

Details

Converts window coordinates (xwindow, ywindow) on the text view window identified by wtype to text buffer coordinates (xbuffer, ybuffer).

Note that you cannot convert coordinates for a nonexisting window, see the gtk-text-view-border-window-size function.
 

See also

2021-10-16