gdkPangoLayoutGetClipRegion      package:RGtk2      R Documentation

_g_d_k_P_a_n_g_o_L_a_y_o_u_t_G_e_t_C_l_i_p_R_e_g_i_o_n

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

     Obtains a clip region which contains the areas where the given
     ranges of text would be drawn. 'x.origin' and 'y.origin' are the
     same position you would pass to 'gdkDrawLayoutLine'.
     'index.ranges' should contain ranges of bytes in the layout's
     text.

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

     gdkPangoLayoutGetClipRegion(layout, x.origin, index.ranges)

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

'layout': ['PangoLayout']  a 'PangoLayout' 

'x.origin': [integer]  X pixel where you intend to draw the layout with
          this clip

'index.ranges': [integer]  list of byte indexes into the layout, where
          even members of list are start indexes and odd elements are
          end indexes

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

     Note that the regions returned correspond to logical extents of
     the text ranges, not ink extents. So the drawn layout may in fact
     touch areas out of the clip region.  The clip region is mainly
     useful for highlightling parts of text, such as when text is
     selected.

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

     ['GdkRegion']  a clip region containing the given ranges

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

     Derived by RGtkGen from GTK+ documentation

