Next: , Up: Working with GObjects   [Contents][Index]


2.5.1 GType

Every data type registered by The GLib Dynamic Type system has a unique integer ID. The integer ID is called the GType. While GTypes are usually a transparent detail, you will need to use them explicitly to define new GObject parameters and signals.

Guile-GI creates a special GOOPS type <GType> to hold these integer IDs. There are some function that operate on <GType> integers that can be used to query information about the GObject class structure. This mapping is not complete, however. Some datatypes on one end may have several (valid) representations on the other. This includes for instance basic numeric types, which all map to some subtype of <number> with no size indicator, since Guile expands numbers as needed.

See GType Constants and Operations