.getAutoMethodByName {RGtk} | R Documentation |
These functions are used to
access Gtk class-specific methods
using the $
operator,
as in obj$Add
.
These look for the method name
for each of the classes from which
obj
inherits.
.getAutoMethodByName(obj, name, prefix=c("Gtk", "gtk")) .getAutoElementByName(obj, name, prefix=c("Gtk", "gtk"), error = TRUE)
obj |
the GtkObject which defines the classes of interest. |
name |
the name of the method or accessor being sought. |
prefix |
a vector giving a pair of values mapping the
class prefix (e.g. Gdk) to the function name
gtk prefix. This allows us to handle
Gtk and Gdk objects.
|
error |
a logical value indicating whether to throw an error
or simply return an object of class try-error if no
element is found for the specified name. |
Duncan Temple Lang <duncan@research.bell-labs.com>