Method

GtkTextViewbuffer_to_window_coords

Declaration [src]

void
gtk_text_view_buffer_to_window_coords (
  GtkTextView* text_view,
  GtkTextWindowType win,
  gint buffer_x,
  gint buffer_y,
  gint* window_x,
  gint* window_y
)

Description [src]

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_set_border_window_size()).

Parameters

win

Type: GtkTextWindowType

A GtkTextWindowType, except GTK_TEXT_WINDOW_PRIVATE.

buffer_x

Type: gint

Buffer x coordinate.

buffer_y

Type: gint

Buffer y coordinate.

window_x

Type: gint*

Window x coordinate return location or NULL.

The argument will be set by the function.
The argument can be NULL.
window_y

Type: gint*

Window y coordinate return location or NULL.

The argument will be set by the function.
The argument can be NULL.