collapseConstructors {RGtkBindingGenerator} | R Documentation |
This attempts to create a single convenience function
that interfaces to two or more Gtk constructor functions
by detecting the which function is to be called based
on the arguments.
It is typically used for a constructor that takes no
arguments (e.g. gtkButtonNew
) and
one that takes parameters (e.g. gtkButtonNewWithLabel
.
The function can then determine which of the underlying
S functions is to be called.
This does not work for complex collections of Gtk constructor functions that have multiple arguments and rely on different calling patterns to identify which constructor is desired.
collapseConstructors(k = getConstructors(defs), defs, filter = NULL)
k |
~~Describe k here~~ |
defs |
~~Describe defs here~~ |
filter |
~~Describe filter here~~ |
If it is a LIST, use
comp1 |
Description of `comp1' |
comp2 |
Description of `comp2' |
...
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(?)