setGtkClassCall     package:RGtkBindingGenerator     R Documentation

_C_r_e_a_t_e _c_a_l_l _t_o _s_e_t _c_l_a_s_s _o_f _G_t_k _o_b_j_e_c_t

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

     This function generates code that will set the class of an S
     object that is a reference to a Gtk object. There are two possible
     ways for this function to work. a) generating the class
     information at compile time from the specified type ('className')
     when this function is called, or b) generating a general and
     dynamic call that is executed at run-time when the class
     information is needed and querying the Gtk reference object
     directly.

     This currently uses the first approach (a).

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

     setGtkClassCall(className, defs, variable)

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

className: the name of the Gtk class whose S class information is
          required.

    defs: the collection of Gtk definitions including the class
          hierarchy information 

variable: the name of the S variable whose class is being set. This is
          given so that the generate code can modify this object, e.g.
          using 'class(w) <- ...'

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

     This currently uses 'getClassList' to get the class inheritance
     information immediately and then put this directly into the S code
     being generated. It can also be implemented using a call to
     'gtkObjectGetClasses'

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

     A string giving the S code to set the class of the specified
     variable.

_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:

     'genRCode'

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

