setGtkClassCall {RGtkBindingGenerator} | R Documentation |
This function generates code that will set
the class of an S object that is a reference to a
Gtk object.
There are two possible ways for this function
to work.
a) generating the class information at compile
time from the specified type (className
)
when this function is called, or
b) generating a general and dynamic call that is executed
at run-time when the class information is needed and
querying the Gtk reference object directly.
This currently uses the first approach (a).
setGtkClassCall(className, defs, variable)
className |
the name of the Gtk class whose S class information is required. |
defs |
the collection of Gtk definitions including the class hierarchy information |
variable |
the name of the S variable whose class is being set.
This is given so that the generate code can modify this object,
e.g. using class(w) <- ... |
This currently uses getClassList
to get the class inheritance information immediately
and then put this directly into the S code being generated.
It can also be implemented using a call to
gtkObjectGetClasses
A string giving the S code to set the class of the specified variable.
Duncan Temple Lang <duncan@research.bell-labs.com>
http://www.omegahat.org/RGtk, http://www.omegahat.org/RGtkBindingGenerator, http://www.gtk.org http://www.pygtk.org(?)