pangoGlyphStringXToIndex        package:RGtk2        R Documentation

_p_a_n_g_o_G_l_y_p_h_S_t_r_i_n_g_X_T_o_I_n_d_e_x

_D_e_s_c_r_i_p_t_i_o_n:

     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.

_U_s_a_g_e:

     pangoGlyphStringXToIndex(object, text, analysis, x.pos)

_A_r_g_u_m_e_n_t_s:

'object': ['PangoGlyphString']     the glyphs returned from
          'pangoShape'

  'text': [char]       the text for the run

'analysis': ['PangoAnalysis']   the analysis information return from
          'pangoItemize'

 'x.pos': [integer]      the x offset (in Pango units)

_V_a_l_u_e:

     A list containing the following elements: 

 'index': [integer]     location to store calculated byte index within
          'text'

'trailing': [integer]   location to store a boolean indicating whether
          the user clicked on the leading or trailing edge of the
          character.

_A_u_t_h_o_r(_s):

     Derived by RGtkGen from GTK+ documentation

