gtkTextViewAddChildInWindow      package:RGtk2      R Documentation

_g_t_k_T_e_x_t_V_i_e_w_A_d_d_C_h_i_l_d_I_n_W_i_n_d_o_w

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

     Adds a child at fixed coordinates in one of the text widget's
     windows.  The window must have nonzero size (see
     'gtkTextViewSetBorderWindowSize').  Note that the child
     coordinates are given relative to the 'GdkWindow' in question, and
     that these coordinates have no sane relationship to scrolling.
     When placing a child in 'GTK_TEXT_WINDOW_WIDGET', scrolling is
     irrelevant, the child floats above all scrollable areas. But when
     placing a child in one of the scrollable windows (border windows
     or text window), you'll need to compute the child's correct
     position in buffer coordinates any time scrolling occurs or buffer
     changes occur, and then call 'gtkTextViewMoveChild' to update the
     child's position. Unfortunately there's no good way to detect that
     scrolling has occurred, using the current API; a possible hack
     would be to update all child positions when the scroll adjustments
     change or the text buffer changes. See bug 64518 on
     bugzilla.gnome.org for status of fixing this issue.

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

     gtkTextViewAddChildInWindow(object, child, which.window, xpos, ypos)

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

'object': ['GtkTextView']  a 'GtkTextView'

 'child': ['GtkWidget']  a 'GtkWidget'

'which.window': ['GtkTextWindowType']  which window the child should
          appear in

  'xpos': [integer]  X position of child in window coordinates

  'ypos': [integer]  Y position of child in window coordinates

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

     Derived by RGtkGen from GTK+ documentation

