This retrieves the GtkType
object for a given
GtkObject
or directly by name.
This can be used to dynamically discover information
about a Gtk class such as its signals, properties,
inheritance hierarchy, etc.
gtkGetType(name)
gtkObjectGetType(w, check=TRUE)
w
object inherits from GtkObject.
Typically one passes TRUE
for this. It is useful
when one gets an incomplete object constructed directly in C code
and we want to construct its class information
(gtkObjectGetClasses
) manually. names
vector for the numeric vector.
gtkGetType
with a string
giving the name of the Gtk class, the associated
Gtk class must have been initialized first.
Specifically an object of that class
must have been created earlier or
the associated gtk__get_type
called.
This can be done using the .C
function as in .C("gtk_button_get_type", PACKAGE= "RGtk")
.
gtkObjectGetClasses
gtkTypeGetClasses