collapseConstructors {RGtkBindingGenerator}R Documentation

Combine Gtk constructor functions with different arguments

Description

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.

Usage

collapseConstructors(k = getConstructors(defs), defs, filter = NULL)

Arguments

k ~~Describe k here~~
defs ~~Describe defs here~~
filter ~~Describe filter here~~

Details

Value

If it is a LIST, use

comp1 Description of `comp1'
comp2 Description of `comp2'

...

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

outputConstructors genCode

Examples



[Package RGtkBindingGenerator version 0.3 Index]