collapseConstructors  package:RGtkBindingGenerator  R Documentation

_C_o_m_b_i_n_e _G_t_k _c_o_n_s_t_r_u_c_t_o_r _f_u_n_c_t_i_o_n_s _w_i_t_h _d_i_f_f_e_r_e_n_t _a_r_g_u_m_e_n_t_s

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

     This attempts to create a single convenience function that
     interfaces to two or more Gtk constructor functions by detecting
     the which function is to be called based on the arguments. It is
     typically used for a constructor that takes no arguments (e.g.
     'gtkButtonNew') and one that takes parameters (e.g.
     'gtkButtonNewWithLabel'. The function can then determine which of
     the underlying S functions is to be called.

     This does not work for complex collections of Gtk constructor
     functions that have multiple arguments and rely on different
     calling patterns to identify which constructor is desired.

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

     collapseConstructors(k = getConstructors(defs), defs, filter = NULL)

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

       k: ~~Describe 'k' here~~ 

    defs: ~~Describe 'defs' here~~ 

  filter: ~~Describe 'filter' here~~ 

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

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

     If it is a LIST, use 

  comp1 : Description of `comp1'

  comp2 : Description of `comp2'

     ...

_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.omegahat.org/RGtkBindingGenerator>, <URL:
     http://www.gtk.org> <URL: http://www.pygtk.org>(?)

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

     'outputConstructors' 'genCode'

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

