pangoLayoutMoveCursorVisually     package:RGtk2     R Documentation

_p_a_n_g_o_L_a_y_o_u_t_M_o_v_e_C_u_r_s_o_r_V_i_s_u_a_l_l_y

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

     Computes a new cursor position from an old position and a count of
     positions to move visually. If 'count' is positive, then the new
     strong cursor position will be one position to the right of the
     old cursor position. If 'count' is position then the new strong
     cursor position will be one position to the left of the old cursor
     position.

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

     pangoLayoutMoveCursorVisually(object, strong, old.index, old.trailing, direction)

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

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

'strong': [logical]        whether the moving cursor is the strong
          cursor or the weak cursor. The strong cursor is the cursor
          corresponding to text insertion in the base direction for the
          layout.

'old.index': [integer]     the byte index of the grapheme for the old
          index

'old.trailing': [integer]  if 0, the cursor was at the trailing edge of
          the  grapheme indicated by 'old.index', if > 0, the cursor
          was at the leading edge.

'direction': [integer]     direction to move cursor. A negative value
          indicates motion to the left.

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

     In the presence of bidirection text, the correspondence between
     logical and visual order will depend on the direction of the
     current run, and there may be jumps when the cursor is moved off
     of the end of a run.

     Motion here is in cursor positions, not in characters, so a single
     call to 'pangoLayoutMoveCursorVisually' may move the cursor over
     multiple characters when multiple characters combine to form a
     single grapheme.

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

     A list containing the following elements: 

'new.index': [integer]     location to store the new cursor byte index.
          A value of -1  indicates that the cursor has been moved off
          the beginning of the layout. A value of G_MAXINT indicates
          that the cursor has been moved off the end of the layout.

'new.trailing': [integer]  number of characters to move forward from
          the location returned for 'new.index' to get the position
          where the cursor should be displayed. This allows
          distinguishing the position at the beginning of one line from
          the position at the end of the preceding line. 'new.index' is
          always on the line where the cursor should be displayed. 

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

     Derived by RGtkGen from GTK+ documentation

