genLoadClassesCode   package:RGtkBindingGenerator   R Documentation

_C_r_e_a_t_e _c_o_d_e _t_o _l_o_a_d _d_i_f_f_e_r_e_n_t _G_t_k _c_l_a_s_s_e_s

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

     This generates C code that can be used to force the explicit
     creation of Gtk classes. Essentially, the C code is a sequence of
     calls to the associated get-type routine for each class, e.g.
     'gtk_widget_get_type'.  Invoking such a routine causes the
     associated class to be initialized in the same way that it is
     implicitly created when an object of that class is created. We use
     this code when we want to be able to get reflectance information
     about a class without having to have created an instance of it.

     This code is not strictly necessary on most platforms. One can
     explicitly call the 'gtk_*_get_type' routine directly via the .C
     interface if it is accessible from the DLL/shared library. If not,
     this code allows one to have the same effect with an explicitly
     available C symbol.

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

     genLoadClassesCode(classes, fileName)

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

 classes: a list giving the  Gtk class definitions to be loaded within
          this code. Only the names of the classes are used and are
          taken from the names attribute of this list. Alternatively,
          one can supply the names of the class directly. 

fileName: the name of the file in which to output the C code. If this
          is a connection object, we write to it with the usual rules
          of not closing an previously opened connection. This allows
          the caller to combine the output into an existing C file.

          If the argument  is not specified (i.e. missing in the call),
          the code is written   to the standard error connection.

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

     'NULL'. We are only interested in the side effect. We could return
     the code as a string, however, one can achieve this effect by
     passing a 'textConnection' as the argument for 'fileName'.

_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/GtkAutoBindingGen>   <URL:
     http://www.gtk.org>

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

     'generateCodeFiles'

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

      data(GtkDefs)
      genLoadClassesCode(GtkDefs$classes)

