Description Usage Arguments Value Author(s)
Convert from x offset to character position. Character positions are computed by dividing up each cluster into equal portions. In scripts where positioning within a cluster is not allowed (such as Thai), the returned value may not be a valid cursor position; the caller must combine the result with the logical attributes for the text to compute the valid cursor position.
1 | pangoGlyphStringXToIndex(object, text, analysis, x.pos)
|
|
[ |
|
[char] the text for the run |
|
[ |
|
[integer] the x offset (in Pango units) |
A list containing the following elements:
|
[integer] location to store calculated byte index within |
|
[integer] location to store a boolean indicating whether the user clicked on the leading or trailing edge of the character. |
Derived by RGtkGen from GTK+ documentation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.