isEnum {RGtkBindingGenerator}R Documentation

Predicate functions for identifying type of symbolic definition

Description

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.

Usage

isEnum(type, enums)
isFlag(type, flags)
isWidgetClass(name, classes, gtkType = "GtkWidget")
isConstructor(name)
isPrimitiveType(x)

Arguments

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.

Details

Value

A logical value indicating whether the identified element is of the queried type.

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

Examples



[Package RGtkBindingGenerator version 0.3 Index]