| 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 |
GI.GObject.Structs.ParamSpecTypeInfo
Description
This structure is used to provide the type system with the information required to initialize and destruct (finalize) a parameter's class and instances thereof. The initialized structure is passed to the g_param_type_register_static() The type system will perform a deep copy of this structure, so its memory does not need to be persistent across invocation of g_param_type_register_static().
- newtype ParamSpecTypeInfo = ParamSpecTypeInfo (ForeignPtr ParamSpecTypeInfo)
- newZeroParamSpecTypeInfo :: MonadIO m => m ParamSpecTypeInfo
- noParamSpecTypeInfo :: Maybe ParamSpecTypeInfo
- paramSpecTypeInfoInstanceSize :: AttrLabelProxy "instanceSize"
- paramSpecTypeInfoReadInstanceSize :: MonadIO m => ParamSpecTypeInfo -> m Word16
- paramSpecTypeInfoWriteInstanceSize :: MonadIO m => ParamSpecTypeInfo -> Word16 -> m ()
- paramSpecTypeInfoNPreallocs :: AttrLabelProxy "nPreallocs"
- paramSpecTypeInfoReadNPreallocs :: MonadIO m => ParamSpecTypeInfo -> m Word16
- paramSpecTypeInfoWriteNPreallocs :: MonadIO m => ParamSpecTypeInfo -> Word16 -> m ()
- paramSpecTypeInfoReadValueType :: MonadIO m => ParamSpecTypeInfo -> m GType
- paramSpecTypeInfoValueType :: AttrLabelProxy "valueType"
- paramSpecTypeInfoWriteValueType :: MonadIO m => ParamSpecTypeInfo -> GType -> m ()
Exported types
newtype ParamSpecTypeInfo Source #
Constructors
| ParamSpecTypeInfo (ForeignPtr ParamSpecTypeInfo) |
Instances
| WrappedPtr ParamSpecTypeInfo Source # | |
| (~) AttrOpTag tag AttrSet => Constructible ParamSpecTypeInfo tag Source # | |
| ((~) * info (ResolveParamSpecTypeInfoMethod t ParamSpecTypeInfo), MethodInfo * info ParamSpecTypeInfo p) => IsLabel t (ParamSpecTypeInfo -> p) Source # | |
| ((~) * info (ResolveParamSpecTypeInfoMethod t ParamSpecTypeInfo), MethodInfo * info ParamSpecTypeInfo p) => IsLabelProxy t (ParamSpecTypeInfo -> p) Source # | |
| type AttributeList ParamSpecTypeInfo Source # | |
newZeroParamSpecTypeInfo :: MonadIO m => m ParamSpecTypeInfo Source #
Construct a ParamSpecTypeInfo struct initialized to zero.
noParamSpecTypeInfo :: Maybe ParamSpecTypeInfo Source #
Properties
InstanceSize
paramSpecTypeInfoInstanceSize :: AttrLabelProxy "instanceSize" Source #
paramSpecTypeInfoReadInstanceSize :: MonadIO m => ParamSpecTypeInfo -> m Word16 Source #
paramSpecTypeInfoWriteInstanceSize :: MonadIO m => ParamSpecTypeInfo -> Word16 -> m () Source #
NPreallocs
paramSpecTypeInfoNPreallocs :: AttrLabelProxy "nPreallocs" Source #
paramSpecTypeInfoReadNPreallocs :: MonadIO m => ParamSpecTypeInfo -> m Word16 Source #
paramSpecTypeInfoWriteNPreallocs :: MonadIO m => ParamSpecTypeInfo -> Word16 -> m () Source #
ValueType
paramSpecTypeInfoReadValueType :: MonadIO m => ParamSpecTypeInfo -> m GType Source #
paramSpecTypeInfoValueType :: AttrLabelProxy "valueType" Source #
paramSpecTypeInfoWriteValueType :: MonadIO m => ParamSpecTypeInfo -> GType -> m () Source #