createWidgetTree         package:RGtkViewers         R Documentation

_C_r_e_a_t_e _G_t_k_T_r_e_e _d_i_s_p_l_a_y_i_n_g _w_i_d_g_e_t _h_i_e_r_a_r_c_h_y.

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

     This creates a 'GtkTree' by recursively traversing the children
     within a Gtk widget and creating a parallel or mirror node for
     each widget in the existing tree. It allows the caller to specify
     the 'select' callback for each node.

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

     createWidgetTree(node, callback = NULL, display = function(x) class(x)[1], tree = gtkTree(), expand = FALSE)

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

    node: the 'GtkWidget' from which to start.

callback: the callback function to register as a 'select' signal
          handler for each node.

 display: a function that is called to compute the label to display for
          a node in the tree given the corresponding widget in the
          original hierarchy. This can be used to create different
          visual content.

    tree: the tree to which new nodes should be added.

  expand: a logical value indicating whether the tree should be created
          with its sub-nodes already expanded. This is currently
          ignored.

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

     A  'GtkTree' object.

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

     Duncan Temple Lang <duncan@research.bell-labs.com>

_R_e_f_e_r_e_n_c_e_s:

     <URL: http://www.omegahat.org/RGtk>, <URL: http://www.gtk.org>

_S_e_e _A_l_s_o:

     'showGtkInheritance'

_E_x_a_m_p_l_e_s:

