Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
This structure is used to provide the type system with the information required to initialize and destruct (finalize) a type's class and its instances.
The initialized structure is passed to the g_type_register_static() function (or is copied into the provided #GTypeInfo structure in the g_type_plugin_complete_type_info()). The type system will perform a deep copy of this structure, so its memory does not need to be persistent across invocation of g_type_register_static().
- newtype TypeInfo = TypeInfo (ForeignPtr TypeInfo)
- noTypeInfo :: Maybe TypeInfo
- typeInfoReadClassData :: TypeInfo -> IO (Ptr ())
- typeInfoReadClassSize :: TypeInfo -> IO Word16
- typeInfoReadInstanceSize :: TypeInfo -> IO Word16
- typeInfoReadNPreallocs :: TypeInfo -> IO Word16
- typeInfoReadValueTable :: TypeInfo -> IO TypeValueTable
Exported types
Properties
ClassData
typeInfoReadClassData :: TypeInfo -> IO (Ptr ()) Source