pangoLayoutXyToIndex          package:RGtk2          R Documentation

_p_a_n_g_o_L_a_y_o_u_t_X_y_T_o_I_n_d_e_x

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

     Converts from X and Y position within a layout to the byte index
     to the character at that logical position. If the Y position is
     not inside the layout, the closest position is chosen (the
     position will be clamped inside the layout). If the X position is
     not within the layout, then the start or the end of the line is
     chosen as  described for 'pangoLayoutXToIndex()'. If either the X
     or Y positions were not inside the layout, then the function
     returns 'FALSE'; on an exact hit, it returns 'TRUE'.

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

     pangoLayoutXyToIndex(object, x, y)

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

'object': ['PangoLayout']     a 'PangoLayout'

     'x': [integer]          the X offset (in Pango units) from the
          left edge of the layout.

     'y': [integer]          the Y offset (in Pango units) from the top
          edge of the layout

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

     A list containing the following elements: 

  retval: [logical] 'TRUE' if the coordinates were inside text, 'FALSE'
          otherwise.

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

'trailing': [integer]   location to store a 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.

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

     Derived by RGtkGen from GTK+ documentation

