Method
GtkTextViewwindow_to_buffer_coords
Declaration [src]
void
gtk_text_view_window_to_buffer_coords (
GtkTextView* text_view,
GtkTextWindowType win,
gint window_x,
gint window_y,
gint* buffer_x,
gint* buffer_y
)
Description [src]
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_set_border_window_size()).
Parameters
win
-
Type:
GtkTextWindowType
A
GtkTextWindowType
exceptGTK_TEXT_WINDOW_PRIVATE
. window_x
-
Type:
gint
Window x coordinate.
window_y
-
Type:
gint
Window y coordinate.
buffer_x
-
Type:
gint*
Buffer x coordinate return location or
NULL
.The argument will be set by the function. The argument can be NULL
. buffer_y
-
Type:
gint*
Buffer y coordinate return location or
NULL
.The argument will be set by the function. The argument can be NULL
.