GType                 package:RGtk2                 R Documentation

_T_h_e _G_T_y_p_e _s_y_s_t_e_m

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

     "The GType API is the foundation of the GObject system. It
     provides the  facilities for registering and managing all
     fundamental data types, user-defined  object and interface types."
     - GObject documentation

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

     gTypeGetAncestors(type)
     gTypeGetInterfaces(type)
     gTypeFromName(name)
     gTypeGetClass(type)

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

    type: The 'GType', either its name or numeric value, see below

    name: The name of a 'GType'

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

     The 'GType' system supports inheritance and interfaces, enabling
     the  psuedo-object-oriented system known as 'GObject'. However,
     they  also encompass all fundamental (primitive) types.

     A 'GType' is considered a 'transparent-type' in RGtk2, since  you
     may specify one as either the type name or the numeric value
     retrieved from  some API function like 'gTypeFromName'. The
     'GType' system  obviously names primitive types different from the
     corresponding types in R,  but this is automatically taken care of
     for you, so you can use R type names (ie,  "character", "logical",
     etc) when specifying a 'GType'. This means that  'gTypeFromName'
     is not that useful to the RGtk2 programmer.

     All R objects representing external RGtk2 objects have their
     hierarchy stored in the  'class' attribute. Everything descends
     from "RGtkObject", then, for example, "GObject",  etc. The types
     do not necessarily correspond to 'GType's, but they do for all 
     'GObject's and others. Thus, 'gTypeGetAncestors' is also of little
     use  unless one is working with pure 'GType's.

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

     'gTypeGetAncestors' returns a vector of type names from which
     'type' inherits. 'gTypeGetInterfaces' names the interfaces
     implemented by 'type'. 'gTypeFromName' retrieves the numeric value
     of a type from its name. 'gTypeGetClass' returns the class
     instance for the type, for example 'GtkWidgetClass'.

_A_u_t_h_o_r(_s):

     Michael Lawrence

_R_e_f_e_r_e_n_c_e_s:

     <URL:
     http://developer.gnome.org/doc/API/2.0/gobject/gobject-Type-Information.html>

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

     'GObject'

