Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gtkTextViewGetIterAtPosition

gtkTextViewGetIterAtPosition


Description

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 gtkTextViewWindowToBufferCoords.

Usage

gtkTextViewGetIterAtPosition(object, x, y)

Arguments

object

a GtkTextView

x

x position, in buffer coordinates

y

y position, in buffer coordinates

Details

Note that this is different from gtkTextViewGetIterAtLocation, which returns cursor locations, i.e. positions between characters. Since 2.6

Value

A list containing the following elements:

iter

a GtkTextIter. [ out ]

trailing

if non-NULL, location to store an integer indicating where in the grapheme the user clicked. It will either be zero, or the number of characters in the grapheme. 0 represents the trailing edge of the grapheme. [ out ][ allow-none ]

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2

R Bindings for Gtk 2.8.0 and Above

v2.20.36
GPL
Authors
Michael Lawrence <michafla@gene.com> and Duncan Temple Lang <duncan@wald.ucdavis.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.