getCType        package:RGtkBindingGenerator        R Documentation

_F_u_n_c_t_i_o_n_s _t_o _m_a_n_i_p_u_l_a_t_e _C _a_r_g_u_m_e_n_t_s

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

     These utilities are repsonsible for mapping the name of a type in
     the symbolic definitions to the appropriate C type.

     'mapToCType' isn't used in the package's code. Use 'getCType'
     instead.

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

     getCType(type, defs)
     CtypeDecl(type, var, defs) 

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

    type: the name of the C type, e.g. string, GtkWidget as a character
          vector of length 1

    defs: the collection of symbolic class, routine and enumeration
          definitions.

     var: the name of the C variable

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

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

     'CtypeDecl' calls 'getCType' and returns a string giving the C
     declaration for the specified variable name in the form 'Type
     var'.

     'getCType' returns  a string giving the name of the C type
     corresponding to the  symbolic Gtk type.  It does this by a
     multi-clause 'if-else' statement since some of the matching is
     computational rather than lookup-based.

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

     'genCCode'

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

