setGtkClassCall {RGtkBindingGenerator}R Documentation

Create call to set class of Gtk object

Description

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).

Usage

setGtkClassCall(className, defs, variable)

Arguments

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) <- ...

Details

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

Value

A string giving the S code to set the class of the specified variable.

Author(s)

Duncan Temple Lang <duncan@research.bell-labs.com>

References

http://www.omegahat.org/RGtk, http://www.omegahat.org/RGtkBindingGenerator, http://www.gtk.org http://www.pygtk.org(?)

See Also

genRCode

Examples






[Package RGtkBindingGenerator version 0.3 Index]