getCType {RGtkBindingGenerator}R Documentation

Functions to manipulate C arguments

Description

These utilities are repsonsible for mapping the name of a type in the symbolic definitions to the appropriate C type.

mapToCType isn't used in the package's code. Use getCType instead.

Usage

getCType(type, defs)
CtypeDecl(type, var, defs) 

Arguments

type the name of the C type, e.g. string, GtkWidget as a character vector of length 1
defs the collection of symbolic class, routine and enumeration definitions.
var the name of the C variable

Details

Value

CtypeDecl calls getCType and returns a string giving the C declaration for the specified variable name in the form Type var.
getCType returns a string giving the name of the C type corresponding to the symbolic Gtk type. It does this by a multi-clause if-else statement since some of the matching is computational rather than lookup-based.

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

genCCode

Examples



[Package RGtkBindingGenerator version 0.3 Index]