isEnum {RGtkBindingGenerator} | R Documentation |
These are a collection of logical or predicate functions used to determine if a given name in the symbolic definitions identifies a particular type of definition such as a class, enumeration value, flag or a primitive type.
isEnum(type, enums) isFlag(type, flags) isWidgetClass(name, classes, gtkType = "GtkWidget") isConstructor(name) isPrimitiveType(x)
type |
the name of the element in the definitions being queried |
name |
the name of the element in the definitions being queried |
x |
the name of the element in the definitions being queried |
enums |
the collection of all enumeration definitions |
flags |
the collection of all flag definitions |
classes |
the collection of class definitions |
gtkType |
the identifier for the class for which we want to
determine if the class name extends.
This is used by looking for a corresponding entry in the class hierarchy
for name .
This allows us to use this function not simply for widgets, but
any class.
|
A logical value indicating whether the identified element is of the queried type.
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(?)