gdkPangoLayoutLineGetClipRegion    package:RGtk2    R Documentation

_g_d_k_P_a_n_g_o_L_a_y_o_u_t_L_i_n_e_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. The clip region will include space to the left or right of
     the line (to the layout bounding box) if you have indexes above or
     below the indexes contained inside the line. This is to draw the
     selection all the way to the side of the layout. However, the clip
     region is in line coordinates, not layout coordinates.

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

     gdkPangoLayoutLineGetClipRegion(line, x.origin, index.ranges)

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

  'line': ['PangoLayoutLine']  a 'PangoLayoutLine' 

'x.origin': [integer]  X pixel where you intend to draw the layout line
          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 line 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

