pangoLayoutGetExtents         package:RGtk2         R Documentation

_p_a_n_g_o_L_a_y_o_u_t_G_e_t_E_x_t_e_n_t_s

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

     Computes the logical and ink extents of 'layout'. Logical extents
     are usually what you want for positioning things.  Note that both
     extents may have non-zero x and y.  You may want to use those to
     offset where you render the layout.  Not doing that is a very
     typical bug that shows up as right-to-left layouts not being
     correctly positioned in a layout with a set width.

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

     pangoLayoutGetExtents(object)

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

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

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

     The extents are given in layout coordinates and in Pango units;
     layout coordinates begin at the top left corner of the layout.

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

     A list containing the following elements: 

'ink.rect': ['PangoRectangle']  rectangle used to store the extents of
          the layout as drawn or 'NULL' to indicate that the result is
          not needed.

'logical.rect': ['PangoRectangle']  rectangle used to store the logical
          extents of the layout or 'NULL' to indicate that the result
          is not needed.

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

     Derived by RGtkGen from GTK+ documentation

