gtkLabelGetLayoutOffsets        package:RGtk2        R Documentation

_g_t_k_L_a_b_e_l_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 coordinates where the label will draw the
     'PangoLayout' representing the text in the label; useful to
     convert mouse events into coordinates inside the 'PangoLayout',
     e.g. to take some action if some part of the label is clicked. Of
     course you will need to create a 'GtkEventBox' to receive the
     events, and pack the label inside it, since labels are a
     'GTK_NO_WINDOW' widget. Remember when using the 'PangoLayout'
     functions you need to convert to and from pixels using
     'pangoPixels()' or 'PANGO_SCALE'.

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

     gtkLabelGetLayoutOffsets(object)

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

'object': ['GtkLabel']  a 'GtkLabel'

_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

