Method
Gtk.TextView.get_iter_at_position
Declaration [src]
gboolean
gtk_text_view_get_iter_at_position (
GtkTextView* text_view,
GtkTextIter* iter,
int* trailing,
int x,
int y
)
Description [src]
Retrieves the iterator pointing to the character at buffer
coordinates x
and y
.
Buffer coordinates are coordinates for the entire buffer, not just
the currently-displayed portion. If you have coordinates from an event,
you have to convert those to buffer coordinates with
gtk_text_view_window_to_buffer_coords()
.
Note that this is different from gtk_text_view_get_iter_at_location()
,
which returns cursor locations, i.e. positions between characters.
Parameters
iter |
GtkTextIter |
a |
|
Direction: out | |
Ownership is not transferred to the callee | |
trailing |
int* |
if non- |
|
Direction: out | |
Ownership of the data is transferred to the callee | |
x |
int |
x position, in buffer coordinates |
|
y |
int |
y position, in buffer coordinates |