.getAutoMethodByName          package:RGtk          R Documentation

_L_o_c_a_t_e_s _G_t_k _c_l_a_s_s _m_e_t_h_o_d_s _f_o_r _a_n _o_b_j_e_c_t

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

     These functions are used to access Gtk class-specific methods
     using the '$' operator, as in 'obj$Add'. These look for the method
     'name' for each of the classes from which 'obj' inherits.

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

     .getAutoMethodByName(obj, name, prefix=c("Gtk", "gtk"))
     .getAutoElementByName(obj, name, prefix=c("Gtk", "gtk"), error = TRUE)

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

     obj: the 'GtkObject' which defines the classes of interest.

    name: the name of the method or accessor being sought.

  prefix: a vector giving a pair of values mapping the class prefix
          (e.g. Gdk) to the function name 'gtk' prefix. This allows us
          to handle Gtk and Gdk objects. 

   error: a logical value indicating whether to throw an error or
          simply return an object of class 'try-error' if no element is
          found for the specified name.

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

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

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

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

     '$.GtkObject'

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

