gi-gobject-2.0.11: GObject bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.GObject.Structs.TypeInfo

Contents

Description

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 typeRegisterStatic function (or is copied into the provided TypeInfo structure in the typePluginCompleteTypeInfo). The type system will perform a deep copy of this structure, so its memory does not need to be persistent across invocation of typeRegisterStatic.

Synopsis

Exported types

newtype TypeInfo Source #

Constructors

TypeInfo (ManagedPtr TypeInfo) 

Instances

WrappedPtr TypeInfo Source # 
(~) AttrOpTag tag AttrSet => Constructible TypeInfo tag Source # 

Methods

new :: MonadIO m => (ManagedPtr TypeInfo -> TypeInfo) -> [AttrOp TypeInfo tag] -> m TypeInfo #

((~) * info (ResolveTypeInfoMethod t TypeInfo), MethodInfo * info TypeInfo p) => IsLabel t (TypeInfo -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> TypeInfo -> p #

((~) * info (ResolveTypeInfoMethod t TypeInfo), MethodInfo * info TypeInfo p) => IsLabelProxy t (TypeInfo -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> TypeInfo -> p #

HasAttributeList * TypeInfo Source # 
type AttributeList TypeInfo Source # 

newZeroTypeInfo :: MonadIO m => m TypeInfo Source #

Construct a TypeInfo struct initialized to zero.

Properties

baseFinalize

baseInit

classData

classFinalize

classInit

classSize

instanceInit

instanceSize

nPreallocs

valueTable