gtkEntryGetLayoutOffsets        package:RGtk2        R Documentation

_g_t_k_E_n_t_r_y_G_e_t_L_a_y_o_u_t_O_f_f_s_e_t_s

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

     Obtains the position of the 'PangoLayout' used to render text in
     the entry, in widget coordinates. Useful if you want to line up
     the text in an entry with some other text, e.g. when using the
     entry to implement editable cells in a sheet widget.

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

     gtkEntryGetLayoutOffsets(object)

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

'object': ['GtkEntry']  a 'GtkEntry'

_D_e_t_a_i_l_s:

     Also useful to convert mouse events into coordinates inside the
     'PangoLayout', e.g. to take some action if some part of the entry
     text is clicked.

     Note that as the user scrolls around in the entry the offsets will
     change; you'll need to connect to the "notify::scroll-offset"
     signal to track this. Remember when using the 'PangoLayout'
     functions you need to convert to and from pixels using
     'pangoPixels()' or 'PANGO_SCALE'.

     Keep in mind that the layout text may contain a preedit string, so
     'gtkEntryLayoutIndexToTextIndex' and
     'gtkEntryTextIndexToLayoutIndex' are needed to convert byte
     indices in the layout to byte indices in the entry contents.

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

     A list containing the following elements: 

     'x': [integer]  location to store X offset of layout, or 'NULL'

     'y': [integer]  location to store Y offset of layout, or 'NULL'

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

     Derived by RGtkGen from GTK+ documentation

