Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
- Signals
- BaseFinalizeFunc
- BaseInitFunc
- BindingTransformFunc
- BoxedCopyFunc
- BoxedFreeFunc
- Callback
- ClassFinalizeFunc
- ClassInitFunc
- ClosureMarshalFieldCallback
- ClosureNotify
- InstanceInitFunc
- InterfaceFinalizeFunc
- InterfaceInitFunc
- ObjectFinalizeFunc
- ObjectGetPropertyFunc
- ObjectSetPropertyFunc
- ParamSpecTypeInfoFinalizeFieldCallback
- ParamSpecTypeInfoInstanceInitFieldCallback
- ParamSpecTypeInfoValueSetDefaultFieldCallback
- ParamSpecTypeInfoValueValidateFieldCallback
- ParamSpecTypeInfoValuesCmpFieldCallback
- SignalAccumulator
- SignalEmissionHook
- ToggleNotify
- TypeClassCacheFunc
- TypeInterfaceCheckFunc
- TypePluginCompleteInterfaceInfo
- TypePluginCompleteTypeInfo
- TypePluginUnuse
- TypePluginUse
- TypeValueTableCollectValueFieldCallback
- TypeValueTableLcopyValueFieldCallback
- TypeValueTableValueCopyFieldCallback
- TypeValueTableValueFreeFieldCallback
- TypeValueTableValueInitFieldCallback
- TypeValueTableValuePeekPointerFieldCallback
- ValueTransform
- WeakNotify
Synopsis
- type BaseFinalizeFunc = TypeClass -> IO ()
- type C_BaseFinalizeFunc = Ptr TypeClass -> IO ()
- dynamic_BaseFinalizeFunc :: (HasCallStack, MonadIO m) => FunPtr C_BaseFinalizeFunc -> TypeClass -> m ()
- genClosure_BaseFinalizeFunc :: MonadIO m => BaseFinalizeFunc -> m (GClosure C_BaseFinalizeFunc)
- mk_BaseFinalizeFunc :: C_BaseFinalizeFunc -> IO (FunPtr C_BaseFinalizeFunc)
- noBaseFinalizeFunc :: Maybe BaseFinalizeFunc
- wrap_BaseFinalizeFunc :: Maybe (Ptr (FunPtr C_BaseFinalizeFunc)) -> BaseFinalizeFunc -> C_BaseFinalizeFunc
- type BaseInitFunc = TypeClass -> IO ()
- type C_BaseInitFunc = Ptr TypeClass -> IO ()
- dynamic_BaseInitFunc :: (HasCallStack, MonadIO m) => FunPtr C_BaseInitFunc -> TypeClass -> m ()
- genClosure_BaseInitFunc :: MonadIO m => BaseInitFunc -> m (GClosure C_BaseInitFunc)
- mk_BaseInitFunc :: C_BaseInitFunc -> IO (FunPtr C_BaseInitFunc)
- noBaseInitFunc :: Maybe BaseInitFunc
- wrap_BaseInitFunc :: Maybe (Ptr (FunPtr C_BaseInitFunc)) -> BaseInitFunc -> C_BaseInitFunc
- type BindingTransformFunc = Binding -> GValue -> GValue -> IO Bool
- type BindingTransformFunc_WithClosures = Binding -> GValue -> GValue -> Ptr () -> IO Bool
- type C_BindingTransformFunc = Ptr Binding -> Ptr GValue -> Ptr GValue -> Ptr () -> IO CInt
- drop_closures_BindingTransformFunc :: BindingTransformFunc -> BindingTransformFunc_WithClosures
- dynamic_BindingTransformFunc :: (HasCallStack, MonadIO m, IsBinding a) => FunPtr C_BindingTransformFunc -> a -> GValue -> GValue -> Ptr () -> m Bool
- genClosure_BindingTransformFunc :: MonadIO m => BindingTransformFunc -> m (GClosure C_BindingTransformFunc)
- mk_BindingTransformFunc :: C_BindingTransformFunc -> IO (FunPtr C_BindingTransformFunc)
- noBindingTransformFunc :: Maybe BindingTransformFunc
- noBindingTransformFunc_WithClosures :: Maybe BindingTransformFunc_WithClosures
- wrap_BindingTransformFunc :: Maybe (Ptr (FunPtr C_BindingTransformFunc)) -> BindingTransformFunc_WithClosures -> C_BindingTransformFunc
- type BoxedCopyFunc = Ptr () -> IO (Ptr ())
- type C_BoxedCopyFunc = Ptr () -> IO (Ptr ())
- dynamic_BoxedCopyFunc :: (HasCallStack, MonadIO m) => FunPtr C_BoxedCopyFunc -> Ptr () -> m (Ptr ())
- genClosure_BoxedCopyFunc :: MonadIO m => BoxedCopyFunc -> m (GClosure C_BoxedCopyFunc)
- mk_BoxedCopyFunc :: C_BoxedCopyFunc -> IO (FunPtr C_BoxedCopyFunc)
- noBoxedCopyFunc :: Maybe BoxedCopyFunc
- wrap_BoxedCopyFunc :: Maybe (Ptr (FunPtr C_BoxedCopyFunc)) -> BoxedCopyFunc -> C_BoxedCopyFunc
- type BoxedFreeFunc = Ptr () -> IO ()
- type C_BoxedFreeFunc = Ptr () -> IO ()
- dynamic_BoxedFreeFunc :: (HasCallStack, MonadIO m) => FunPtr C_BoxedFreeFunc -> Ptr () -> m ()
- genClosure_BoxedFreeFunc :: MonadIO m => BoxedFreeFunc -> m (GClosure C_BoxedFreeFunc)
- mk_BoxedFreeFunc :: C_BoxedFreeFunc -> IO (FunPtr C_BoxedFreeFunc)
- noBoxedFreeFunc :: Maybe BoxedFreeFunc
- wrap_BoxedFreeFunc :: Maybe (Ptr (FunPtr C_BoxedFreeFunc)) -> BoxedFreeFunc -> C_BoxedFreeFunc
- type C_Callback = IO ()
- type Callback = IO ()
- dynamic_Callback :: (HasCallStack, MonadIO m) => FunPtr C_Callback -> m ()
- genClosure_Callback :: MonadIO m => Callback -> m (GClosure C_Callback)
- mk_Callback :: C_Callback -> IO (FunPtr C_Callback)
- noCallback :: Maybe Callback
- wrap_Callback :: Maybe (Ptr (FunPtr C_Callback)) -> Callback -> C_Callback
- type C_ClassFinalizeFunc = Ptr TypeClass -> Ptr () -> IO ()
- type ClassFinalizeFunc = TypeClass -> Ptr () -> IO ()
- dynamic_ClassFinalizeFunc :: (HasCallStack, MonadIO m) => FunPtr C_ClassFinalizeFunc -> TypeClass -> Ptr () -> m ()
- genClosure_ClassFinalizeFunc :: MonadIO m => ClassFinalizeFunc -> m (GClosure C_ClassFinalizeFunc)
- mk_ClassFinalizeFunc :: C_ClassFinalizeFunc -> IO (FunPtr C_ClassFinalizeFunc)
- noClassFinalizeFunc :: Maybe ClassFinalizeFunc
- wrap_ClassFinalizeFunc :: Maybe (Ptr (FunPtr C_ClassFinalizeFunc)) -> ClassFinalizeFunc -> C_ClassFinalizeFunc
- type C_ClassInitFunc = Ptr TypeClass -> Ptr () -> IO ()
- type ClassInitFunc = TypeClass -> Ptr () -> IO ()
- dynamic_ClassInitFunc :: (HasCallStack, MonadIO m) => FunPtr C_ClassInitFunc -> TypeClass -> Ptr () -> m ()
- genClosure_ClassInitFunc :: MonadIO m => ClassInitFunc -> m (GClosure C_ClassInitFunc)
- mk_ClassInitFunc :: C_ClassInitFunc -> IO (FunPtr C_ClassInitFunc)
- noClassInitFunc :: Maybe ClassInitFunc
- wrap_ClassInitFunc :: Maybe (Ptr (FunPtr C_ClassInitFunc)) -> ClassInitFunc -> C_ClassInitFunc
- type C_ClosureMarshalFieldCallback = Ptr (GClosure ()) -> Ptr GValue -> Word32 -> Ptr GValue -> Ptr () -> Ptr () -> IO ()
- type ClosureMarshalFieldCallback = GClosure () -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> IO ()
- dynamic_ClosureMarshalFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_ClosureMarshalFieldCallback -> GClosure a -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- genClosure_ClosureMarshalFieldCallback :: MonadIO m => ClosureMarshalFieldCallback -> m (GClosure C_ClosureMarshalFieldCallback)
- mk_ClosureMarshalFieldCallback :: C_ClosureMarshalFieldCallback -> IO (FunPtr C_ClosureMarshalFieldCallback)
- noClosureMarshalFieldCallback :: Maybe ClosureMarshalFieldCallback
- wrap_ClosureMarshalFieldCallback :: Maybe (Ptr (FunPtr C_ClosureMarshalFieldCallback)) -> ClosureMarshalFieldCallback -> C_ClosureMarshalFieldCallback
- type C_ClosureNotify = Ptr () -> Ptr (GClosure ()) -> IO ()
- type ClosureNotify = Ptr () -> GClosure () -> IO ()
- dynamic_ClosureNotify :: (HasCallStack, MonadIO m) => FunPtr C_ClosureNotify -> Ptr () -> GClosure a -> m ()
- genClosure_ClosureNotify :: MonadIO m => ClosureNotify -> m (GClosure C_ClosureNotify)
- mk_ClosureNotify :: C_ClosureNotify -> IO (FunPtr C_ClosureNotify)
- noClosureNotify :: Maybe ClosureNotify
- wrap_ClosureNotify :: Maybe (Ptr (FunPtr C_ClosureNotify)) -> ClosureNotify -> C_ClosureNotify
- type C_InstanceInitFunc = Ptr TypeInstance -> Ptr TypeClass -> IO ()
- type InstanceInitFunc = TypeInstance -> TypeClass -> IO ()
- dynamic_InstanceInitFunc :: (HasCallStack, MonadIO m) => FunPtr C_InstanceInitFunc -> TypeInstance -> TypeClass -> m ()
- genClosure_InstanceInitFunc :: MonadIO m => InstanceInitFunc -> m (GClosure C_InstanceInitFunc)
- mk_InstanceInitFunc :: C_InstanceInitFunc -> IO (FunPtr C_InstanceInitFunc)
- noInstanceInitFunc :: Maybe InstanceInitFunc
- wrap_InstanceInitFunc :: Maybe (Ptr (FunPtr C_InstanceInitFunc)) -> InstanceInitFunc -> C_InstanceInitFunc
- type C_InterfaceFinalizeFunc = Ptr TypeInterface -> Ptr () -> IO ()
- type InterfaceFinalizeFunc = TypeInterface -> Ptr () -> IO ()
- dynamic_InterfaceFinalizeFunc :: (HasCallStack, MonadIO m) => FunPtr C_InterfaceFinalizeFunc -> TypeInterface -> Ptr () -> m ()
- genClosure_InterfaceFinalizeFunc :: MonadIO m => InterfaceFinalizeFunc -> m (GClosure C_InterfaceFinalizeFunc)
- mk_InterfaceFinalizeFunc :: C_InterfaceFinalizeFunc -> IO (FunPtr C_InterfaceFinalizeFunc)
- noInterfaceFinalizeFunc :: Maybe InterfaceFinalizeFunc
- wrap_InterfaceFinalizeFunc :: Maybe (Ptr (FunPtr C_InterfaceFinalizeFunc)) -> InterfaceFinalizeFunc -> C_InterfaceFinalizeFunc
- type C_InterfaceInitFunc = Ptr TypeInterface -> Ptr () -> IO ()
- type InterfaceInitFunc = TypeInterface -> Ptr () -> IO ()
- dynamic_InterfaceInitFunc :: (HasCallStack, MonadIO m) => FunPtr C_InterfaceInitFunc -> TypeInterface -> Ptr () -> m ()
- genClosure_InterfaceInitFunc :: MonadIO m => InterfaceInitFunc -> m (GClosure C_InterfaceInitFunc)
- mk_InterfaceInitFunc :: C_InterfaceInitFunc -> IO (FunPtr C_InterfaceInitFunc)
- noInterfaceInitFunc :: Maybe InterfaceInitFunc
- wrap_InterfaceInitFunc :: Maybe (Ptr (FunPtr C_InterfaceInitFunc)) -> InterfaceInitFunc -> C_InterfaceInitFunc
- type C_ObjectFinalizeFunc = Ptr Object -> IO ()
- type ObjectFinalizeFunc = Object -> IO ()
- dynamic_ObjectFinalizeFunc :: (HasCallStack, MonadIO m, IsObject a) => FunPtr C_ObjectFinalizeFunc -> a -> m ()
- genClosure_ObjectFinalizeFunc :: MonadIO m => ObjectFinalizeFunc -> m (GClosure C_ObjectFinalizeFunc)
- mk_ObjectFinalizeFunc :: C_ObjectFinalizeFunc -> IO (FunPtr C_ObjectFinalizeFunc)
- noObjectFinalizeFunc :: Maybe ObjectFinalizeFunc
- wrap_ObjectFinalizeFunc :: Maybe (Ptr (FunPtr C_ObjectFinalizeFunc)) -> ObjectFinalizeFunc -> C_ObjectFinalizeFunc
- type C_ObjectGetPropertyFunc = Ptr Object -> Word32 -> Ptr GValue -> Ptr GParamSpec -> IO ()
- type ObjectGetPropertyFunc = Object -> Word32 -> GValue -> GParamSpec -> IO ()
- dynamic_ObjectGetPropertyFunc :: (HasCallStack, MonadIO m, IsObject a) => FunPtr C_ObjectGetPropertyFunc -> a -> Word32 -> GValue -> GParamSpec -> m ()
- genClosure_ObjectGetPropertyFunc :: MonadIO m => ObjectGetPropertyFunc -> m (GClosure C_ObjectGetPropertyFunc)
- mk_ObjectGetPropertyFunc :: C_ObjectGetPropertyFunc -> IO (FunPtr C_ObjectGetPropertyFunc)
- noObjectGetPropertyFunc :: Maybe ObjectGetPropertyFunc
- wrap_ObjectGetPropertyFunc :: Maybe (Ptr (FunPtr C_ObjectGetPropertyFunc)) -> ObjectGetPropertyFunc -> C_ObjectGetPropertyFunc
- type C_ObjectSetPropertyFunc = Ptr Object -> Word32 -> Ptr GValue -> Ptr GParamSpec -> IO ()
- type ObjectSetPropertyFunc = Object -> Word32 -> GValue -> GParamSpec -> IO ()
- dynamic_ObjectSetPropertyFunc :: (HasCallStack, MonadIO m, IsObject a) => FunPtr C_ObjectSetPropertyFunc -> a -> Word32 -> GValue -> GParamSpec -> m ()
- genClosure_ObjectSetPropertyFunc :: MonadIO m => ObjectSetPropertyFunc -> m (GClosure C_ObjectSetPropertyFunc)
- mk_ObjectSetPropertyFunc :: C_ObjectSetPropertyFunc -> IO (FunPtr C_ObjectSetPropertyFunc)
- noObjectSetPropertyFunc :: Maybe ObjectSetPropertyFunc
- wrap_ObjectSetPropertyFunc :: Maybe (Ptr (FunPtr C_ObjectSetPropertyFunc)) -> ObjectSetPropertyFunc -> C_ObjectSetPropertyFunc
- type C_ParamSpecTypeInfoFinalizeFieldCallback = Ptr GParamSpec -> IO ()
- type ParamSpecTypeInfoFinalizeFieldCallback = GParamSpec -> IO ()
- dynamic_ParamSpecTypeInfoFinalizeFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_ParamSpecTypeInfoFinalizeFieldCallback -> GParamSpec -> m ()
- genClosure_ParamSpecTypeInfoFinalizeFieldCallback :: MonadIO m => ParamSpecTypeInfoFinalizeFieldCallback -> m (GClosure C_ParamSpecTypeInfoFinalizeFieldCallback)
- mk_ParamSpecTypeInfoFinalizeFieldCallback :: C_ParamSpecTypeInfoFinalizeFieldCallback -> IO (FunPtr C_ParamSpecTypeInfoFinalizeFieldCallback)
- noParamSpecTypeInfoFinalizeFieldCallback :: Maybe ParamSpecTypeInfoFinalizeFieldCallback
- wrap_ParamSpecTypeInfoFinalizeFieldCallback :: Maybe (Ptr (FunPtr C_ParamSpecTypeInfoFinalizeFieldCallback)) -> ParamSpecTypeInfoFinalizeFieldCallback -> C_ParamSpecTypeInfoFinalizeFieldCallback
- type C_ParamSpecTypeInfoInstanceInitFieldCallback = Ptr GParamSpec -> IO ()
- type ParamSpecTypeInfoInstanceInitFieldCallback = GParamSpec -> IO ()
- dynamic_ParamSpecTypeInfoInstanceInitFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_ParamSpecTypeInfoInstanceInitFieldCallback -> GParamSpec -> m ()
- genClosure_ParamSpecTypeInfoInstanceInitFieldCallback :: MonadIO m => ParamSpecTypeInfoInstanceInitFieldCallback -> m (GClosure C_ParamSpecTypeInfoInstanceInitFieldCallback)
- mk_ParamSpecTypeInfoInstanceInitFieldCallback :: C_ParamSpecTypeInfoInstanceInitFieldCallback -> IO (FunPtr C_ParamSpecTypeInfoInstanceInitFieldCallback)
- noParamSpecTypeInfoInstanceInitFieldCallback :: Maybe ParamSpecTypeInfoInstanceInitFieldCallback
- wrap_ParamSpecTypeInfoInstanceInitFieldCallback :: Maybe (Ptr (FunPtr C_ParamSpecTypeInfoInstanceInitFieldCallback)) -> ParamSpecTypeInfoInstanceInitFieldCallback -> C_ParamSpecTypeInfoInstanceInitFieldCallback
- type C_ParamSpecTypeInfoValueSetDefaultFieldCallback = Ptr GParamSpec -> Ptr GValue -> IO ()
- type ParamSpecTypeInfoValueSetDefaultFieldCallback = GParamSpec -> GValue -> IO ()
- dynamic_ParamSpecTypeInfoValueSetDefaultFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_ParamSpecTypeInfoValueSetDefaultFieldCallback -> GParamSpec -> GValue -> m ()
- genClosure_ParamSpecTypeInfoValueSetDefaultFieldCallback :: MonadIO m => ParamSpecTypeInfoValueSetDefaultFieldCallback -> m (GClosure C_ParamSpecTypeInfoValueSetDefaultFieldCallback)
- mk_ParamSpecTypeInfoValueSetDefaultFieldCallback :: C_ParamSpecTypeInfoValueSetDefaultFieldCallback -> IO (FunPtr C_ParamSpecTypeInfoValueSetDefaultFieldCallback)
- noParamSpecTypeInfoValueSetDefaultFieldCallback :: Maybe ParamSpecTypeInfoValueSetDefaultFieldCallback
- wrap_ParamSpecTypeInfoValueSetDefaultFieldCallback :: Maybe (Ptr (FunPtr C_ParamSpecTypeInfoValueSetDefaultFieldCallback)) -> ParamSpecTypeInfoValueSetDefaultFieldCallback -> C_ParamSpecTypeInfoValueSetDefaultFieldCallback
- type C_ParamSpecTypeInfoValueValidateFieldCallback = Ptr GParamSpec -> Ptr GValue -> IO CInt
- type ParamSpecTypeInfoValueValidateFieldCallback = GParamSpec -> GValue -> IO Bool
- dynamic_ParamSpecTypeInfoValueValidateFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_ParamSpecTypeInfoValueValidateFieldCallback -> GParamSpec -> GValue -> m Bool
- genClosure_ParamSpecTypeInfoValueValidateFieldCallback :: MonadIO m => ParamSpecTypeInfoValueValidateFieldCallback -> m (GClosure C_ParamSpecTypeInfoValueValidateFieldCallback)
- mk_ParamSpecTypeInfoValueValidateFieldCallback :: C_ParamSpecTypeInfoValueValidateFieldCallback -> IO (FunPtr C_ParamSpecTypeInfoValueValidateFieldCallback)
- noParamSpecTypeInfoValueValidateFieldCallback :: Maybe ParamSpecTypeInfoValueValidateFieldCallback
- wrap_ParamSpecTypeInfoValueValidateFieldCallback :: Maybe (Ptr (FunPtr C_ParamSpecTypeInfoValueValidateFieldCallback)) -> ParamSpecTypeInfoValueValidateFieldCallback -> C_ParamSpecTypeInfoValueValidateFieldCallback
- type C_ParamSpecTypeInfoValuesCmpFieldCallback = Ptr GParamSpec -> Ptr GValue -> Ptr GValue -> IO Int32
- type ParamSpecTypeInfoValuesCmpFieldCallback = GParamSpec -> GValue -> GValue -> IO Int32
- dynamic_ParamSpecTypeInfoValuesCmpFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_ParamSpecTypeInfoValuesCmpFieldCallback -> GParamSpec -> GValue -> GValue -> m Int32
- genClosure_ParamSpecTypeInfoValuesCmpFieldCallback :: MonadIO m => ParamSpecTypeInfoValuesCmpFieldCallback -> m (GClosure C_ParamSpecTypeInfoValuesCmpFieldCallback)
- mk_ParamSpecTypeInfoValuesCmpFieldCallback :: C_ParamSpecTypeInfoValuesCmpFieldCallback -> IO (FunPtr C_ParamSpecTypeInfoValuesCmpFieldCallback)
- noParamSpecTypeInfoValuesCmpFieldCallback :: Maybe ParamSpecTypeInfoValuesCmpFieldCallback
- wrap_ParamSpecTypeInfoValuesCmpFieldCallback :: Maybe (Ptr (FunPtr C_ParamSpecTypeInfoValuesCmpFieldCallback)) -> ParamSpecTypeInfoValuesCmpFieldCallback -> C_ParamSpecTypeInfoValuesCmpFieldCallback
- type C_SignalAccumulator = Ptr SignalInvocationHint -> Ptr GValue -> Ptr GValue -> Ptr () -> IO CInt
- type SignalAccumulator = SignalInvocationHint -> GValue -> GValue -> Ptr () -> IO Bool
- dynamic_SignalAccumulator :: (HasCallStack, MonadIO m) => FunPtr C_SignalAccumulator -> SignalInvocationHint -> GValue -> GValue -> Ptr () -> m Bool
- genClosure_SignalAccumulator :: MonadIO m => SignalAccumulator -> m (GClosure C_SignalAccumulator)
- mk_SignalAccumulator :: C_SignalAccumulator -> IO (FunPtr C_SignalAccumulator)
- noSignalAccumulator :: Maybe SignalAccumulator
- wrap_SignalAccumulator :: Maybe (Ptr (FunPtr C_SignalAccumulator)) -> SignalAccumulator -> C_SignalAccumulator
- type C_SignalEmissionHook = Ptr SignalInvocationHint -> Word32 -> Ptr GValue -> Ptr () -> IO CInt
- type SignalEmissionHook = SignalInvocationHint -> [GValue] -> Ptr () -> IO Bool
- dynamic_SignalEmissionHook :: (HasCallStack, MonadIO m) => FunPtr C_SignalEmissionHook -> SignalInvocationHint -> [GValue] -> Ptr () -> m Bool
- genClosure_SignalEmissionHook :: MonadIO m => SignalEmissionHook -> m (GClosure C_SignalEmissionHook)
- mk_SignalEmissionHook :: C_SignalEmissionHook -> IO (FunPtr C_SignalEmissionHook)
- noSignalEmissionHook :: Maybe SignalEmissionHook
- wrap_SignalEmissionHook :: Maybe (Ptr (FunPtr C_SignalEmissionHook)) -> SignalEmissionHook -> C_SignalEmissionHook
- type C_ToggleNotify = Ptr () -> Ptr Object -> CInt -> IO ()
- type ToggleNotify = Ptr () -> Object -> Bool -> IO ()
- dynamic_ToggleNotify :: (HasCallStack, MonadIO m, IsObject a) => FunPtr C_ToggleNotify -> Ptr () -> a -> Bool -> m ()
- genClosure_ToggleNotify :: MonadIO m => ToggleNotify -> m (GClosure C_ToggleNotify)
- mk_ToggleNotify :: C_ToggleNotify -> IO (FunPtr C_ToggleNotify)
- noToggleNotify :: Maybe ToggleNotify
- wrap_ToggleNotify :: Maybe (Ptr (FunPtr C_ToggleNotify)) -> ToggleNotify -> C_ToggleNotify
- type C_TypeClassCacheFunc = Ptr () -> Ptr TypeClass -> IO CInt
- type TypeClassCacheFunc = Ptr () -> TypeClass -> IO Bool
- dynamic_TypeClassCacheFunc :: (HasCallStack, MonadIO m) => FunPtr C_TypeClassCacheFunc -> Ptr () -> TypeClass -> m Bool
- genClosure_TypeClassCacheFunc :: MonadIO m => TypeClassCacheFunc -> m (GClosure C_TypeClassCacheFunc)
- mk_TypeClassCacheFunc :: C_TypeClassCacheFunc -> IO (FunPtr C_TypeClassCacheFunc)
- noTypeClassCacheFunc :: Maybe TypeClassCacheFunc
- wrap_TypeClassCacheFunc :: Maybe (Ptr (FunPtr C_TypeClassCacheFunc)) -> TypeClassCacheFunc -> C_TypeClassCacheFunc
- type C_TypeInterfaceCheckFunc = Ptr () -> Ptr TypeInterface -> IO ()
- type TypeInterfaceCheckFunc = Ptr () -> TypeInterface -> IO ()
- dynamic_TypeInterfaceCheckFunc :: (HasCallStack, MonadIO m) => FunPtr C_TypeInterfaceCheckFunc -> Ptr () -> TypeInterface -> m ()
- genClosure_TypeInterfaceCheckFunc :: MonadIO m => TypeInterfaceCheckFunc -> m (GClosure C_TypeInterfaceCheckFunc)
- mk_TypeInterfaceCheckFunc :: C_TypeInterfaceCheckFunc -> IO (FunPtr C_TypeInterfaceCheckFunc)
- noTypeInterfaceCheckFunc :: Maybe TypeInterfaceCheckFunc
- wrap_TypeInterfaceCheckFunc :: Maybe (Ptr (FunPtr C_TypeInterfaceCheckFunc)) -> TypeInterfaceCheckFunc -> C_TypeInterfaceCheckFunc
- type C_TypePluginCompleteInterfaceInfo = Ptr TypePlugin -> CGType -> CGType -> Ptr InterfaceInfo -> IO ()
- type TypePluginCompleteInterfaceInfo = TypePlugin -> GType -> GType -> InterfaceInfo -> IO ()
- dynamic_TypePluginCompleteInterfaceInfo :: (HasCallStack, MonadIO m, IsTypePlugin a) => FunPtr C_TypePluginCompleteInterfaceInfo -> a -> GType -> GType -> InterfaceInfo -> m ()
- genClosure_TypePluginCompleteInterfaceInfo :: MonadIO m => TypePluginCompleteInterfaceInfo -> m (GClosure C_TypePluginCompleteInterfaceInfo)
- mk_TypePluginCompleteInterfaceInfo :: C_TypePluginCompleteInterfaceInfo -> IO (FunPtr C_TypePluginCompleteInterfaceInfo)
- noTypePluginCompleteInterfaceInfo :: Maybe TypePluginCompleteInterfaceInfo
- wrap_TypePluginCompleteInterfaceInfo :: Maybe (Ptr (FunPtr C_TypePluginCompleteInterfaceInfo)) -> TypePluginCompleteInterfaceInfo -> C_TypePluginCompleteInterfaceInfo
- type C_TypePluginCompleteTypeInfo = Ptr TypePlugin -> CGType -> Ptr TypeInfo -> Ptr TypeValueTable -> IO ()
- type TypePluginCompleteTypeInfo = TypePlugin -> GType -> TypeInfo -> TypeValueTable -> IO ()
- dynamic_TypePluginCompleteTypeInfo :: (HasCallStack, MonadIO m, IsTypePlugin a) => FunPtr C_TypePluginCompleteTypeInfo -> a -> GType -> TypeInfo -> TypeValueTable -> m ()
- genClosure_TypePluginCompleteTypeInfo :: MonadIO m => TypePluginCompleteTypeInfo -> m (GClosure C_TypePluginCompleteTypeInfo)
- mk_TypePluginCompleteTypeInfo :: C_TypePluginCompleteTypeInfo -> IO (FunPtr C_TypePluginCompleteTypeInfo)
- noTypePluginCompleteTypeInfo :: Maybe TypePluginCompleteTypeInfo
- wrap_TypePluginCompleteTypeInfo :: Maybe (Ptr (FunPtr C_TypePluginCompleteTypeInfo)) -> TypePluginCompleteTypeInfo -> C_TypePluginCompleteTypeInfo
- type C_TypePluginUnuse = Ptr TypePlugin -> IO ()
- type TypePluginUnuse = TypePlugin -> IO ()
- dynamic_TypePluginUnuse :: (HasCallStack, MonadIO m, IsTypePlugin a) => FunPtr C_TypePluginUnuse -> a -> m ()
- genClosure_TypePluginUnuse :: MonadIO m => TypePluginUnuse -> m (GClosure C_TypePluginUnuse)
- mk_TypePluginUnuse :: C_TypePluginUnuse -> IO (FunPtr C_TypePluginUnuse)
- noTypePluginUnuse :: Maybe TypePluginUnuse
- wrap_TypePluginUnuse :: Maybe (Ptr (FunPtr C_TypePluginUnuse)) -> TypePluginUnuse -> C_TypePluginUnuse
- type C_TypePluginUse = Ptr TypePlugin -> IO ()
- type TypePluginUse = TypePlugin -> IO ()
- dynamic_TypePluginUse :: (HasCallStack, MonadIO m, IsTypePlugin a) => FunPtr C_TypePluginUse -> a -> m ()
- genClosure_TypePluginUse :: MonadIO m => TypePluginUse -> m (GClosure C_TypePluginUse)
- mk_TypePluginUse :: C_TypePluginUse -> IO (FunPtr C_TypePluginUse)
- noTypePluginUse :: Maybe TypePluginUse
- wrap_TypePluginUse :: Maybe (Ptr (FunPtr C_TypePluginUse)) -> TypePluginUse -> C_TypePluginUse
- type C_TypeValueTableCollectValueFieldCallback = Ptr GValue -> Word32 -> Ptr TypeCValue -> Word32 -> IO CString
- type TypeValueTableCollectValueFieldCallback = GValue -> Word32 -> TypeCValue -> Word32 -> IO Text
- dynamic_TypeValueTableCollectValueFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_TypeValueTableCollectValueFieldCallback -> GValue -> Word32 -> TypeCValue -> Word32 -> m Text
- genClosure_TypeValueTableCollectValueFieldCallback :: MonadIO m => TypeValueTableCollectValueFieldCallback -> m (GClosure C_TypeValueTableCollectValueFieldCallback)
- mk_TypeValueTableCollectValueFieldCallback :: C_TypeValueTableCollectValueFieldCallback -> IO (FunPtr C_TypeValueTableCollectValueFieldCallback)
- noTypeValueTableCollectValueFieldCallback :: Maybe TypeValueTableCollectValueFieldCallback
- wrap_TypeValueTableCollectValueFieldCallback :: Maybe (Ptr (FunPtr C_TypeValueTableCollectValueFieldCallback)) -> TypeValueTableCollectValueFieldCallback -> C_TypeValueTableCollectValueFieldCallback
- type C_TypeValueTableLcopyValueFieldCallback = Ptr GValue -> Word32 -> Ptr TypeCValue -> Word32 -> IO CString
- type TypeValueTableLcopyValueFieldCallback = GValue -> Word32 -> TypeCValue -> Word32 -> IO Text
- dynamic_TypeValueTableLcopyValueFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_TypeValueTableLcopyValueFieldCallback -> GValue -> Word32 -> TypeCValue -> Word32 -> m Text
- genClosure_TypeValueTableLcopyValueFieldCallback :: MonadIO m => TypeValueTableLcopyValueFieldCallback -> m (GClosure C_TypeValueTableLcopyValueFieldCallback)
- mk_TypeValueTableLcopyValueFieldCallback :: C_TypeValueTableLcopyValueFieldCallback -> IO (FunPtr C_TypeValueTableLcopyValueFieldCallback)
- noTypeValueTableLcopyValueFieldCallback :: Maybe TypeValueTableLcopyValueFieldCallback
- wrap_TypeValueTableLcopyValueFieldCallback :: Maybe (Ptr (FunPtr C_TypeValueTableLcopyValueFieldCallback)) -> TypeValueTableLcopyValueFieldCallback -> C_TypeValueTableLcopyValueFieldCallback
- type C_TypeValueTableValueCopyFieldCallback = Ptr GValue -> Ptr GValue -> IO ()
- type TypeValueTableValueCopyFieldCallback = GValue -> GValue -> IO ()
- dynamic_TypeValueTableValueCopyFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_TypeValueTableValueCopyFieldCallback -> GValue -> GValue -> m ()
- genClosure_TypeValueTableValueCopyFieldCallback :: MonadIO m => TypeValueTableValueCopyFieldCallback -> m (GClosure C_TypeValueTableValueCopyFieldCallback)
- mk_TypeValueTableValueCopyFieldCallback :: C_TypeValueTableValueCopyFieldCallback -> IO (FunPtr C_TypeValueTableValueCopyFieldCallback)
- noTypeValueTableValueCopyFieldCallback :: Maybe TypeValueTableValueCopyFieldCallback
- wrap_TypeValueTableValueCopyFieldCallback :: Maybe (Ptr (FunPtr C_TypeValueTableValueCopyFieldCallback)) -> TypeValueTableValueCopyFieldCallback -> C_TypeValueTableValueCopyFieldCallback
- type C_TypeValueTableValueFreeFieldCallback = Ptr GValue -> IO ()
- type TypeValueTableValueFreeFieldCallback = GValue -> IO ()
- dynamic_TypeValueTableValueFreeFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_TypeValueTableValueFreeFieldCallback -> GValue -> m ()
- genClosure_TypeValueTableValueFreeFieldCallback :: MonadIO m => TypeValueTableValueFreeFieldCallback -> m (GClosure C_TypeValueTableValueFreeFieldCallback)
- mk_TypeValueTableValueFreeFieldCallback :: C_TypeValueTableValueFreeFieldCallback -> IO (FunPtr C_TypeValueTableValueFreeFieldCallback)
- noTypeValueTableValueFreeFieldCallback :: Maybe TypeValueTableValueFreeFieldCallback
- wrap_TypeValueTableValueFreeFieldCallback :: Maybe (Ptr (FunPtr C_TypeValueTableValueFreeFieldCallback)) -> TypeValueTableValueFreeFieldCallback -> C_TypeValueTableValueFreeFieldCallback
- type C_TypeValueTableValueInitFieldCallback = Ptr GValue -> IO ()
- type TypeValueTableValueInitFieldCallback = GValue -> IO ()
- dynamic_TypeValueTableValueInitFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_TypeValueTableValueInitFieldCallback -> GValue -> m ()
- genClosure_TypeValueTableValueInitFieldCallback :: MonadIO m => TypeValueTableValueInitFieldCallback -> m (GClosure C_TypeValueTableValueInitFieldCallback)
- mk_TypeValueTableValueInitFieldCallback :: C_TypeValueTableValueInitFieldCallback -> IO (FunPtr C_TypeValueTableValueInitFieldCallback)
- noTypeValueTableValueInitFieldCallback :: Maybe TypeValueTableValueInitFieldCallback
- wrap_TypeValueTableValueInitFieldCallback :: Maybe (Ptr (FunPtr C_TypeValueTableValueInitFieldCallback)) -> TypeValueTableValueInitFieldCallback -> C_TypeValueTableValueInitFieldCallback
- type C_TypeValueTableValuePeekPointerFieldCallback = Ptr GValue -> IO (Ptr ())
- type TypeValueTableValuePeekPointerFieldCallback = GValue -> IO (Ptr ())
- dynamic_TypeValueTableValuePeekPointerFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_TypeValueTableValuePeekPointerFieldCallback -> GValue -> m (Ptr ())
- genClosure_TypeValueTableValuePeekPointerFieldCallback :: MonadIO m => TypeValueTableValuePeekPointerFieldCallback -> m (GClosure C_TypeValueTableValuePeekPointerFieldCallback)
- mk_TypeValueTableValuePeekPointerFieldCallback :: C_TypeValueTableValuePeekPointerFieldCallback -> IO (FunPtr C_TypeValueTableValuePeekPointerFieldCallback)
- noTypeValueTableValuePeekPointerFieldCallback :: Maybe TypeValueTableValuePeekPointerFieldCallback
- wrap_TypeValueTableValuePeekPointerFieldCallback :: Maybe (Ptr (FunPtr C_TypeValueTableValuePeekPointerFieldCallback)) -> TypeValueTableValuePeekPointerFieldCallback -> C_TypeValueTableValuePeekPointerFieldCallback
- type C_ValueTransform = Ptr GValue -> Ptr GValue -> IO ()
- type ValueTransform = GValue -> GValue -> IO ()
- dynamic_ValueTransform :: (HasCallStack, MonadIO m) => FunPtr C_ValueTransform -> GValue -> GValue -> m ()
- genClosure_ValueTransform :: MonadIO m => ValueTransform -> m (GClosure C_ValueTransform)
- mk_ValueTransform :: C_ValueTransform -> IO (FunPtr C_ValueTransform)
- noValueTransform :: Maybe ValueTransform
- wrap_ValueTransform :: Maybe (Ptr (FunPtr C_ValueTransform)) -> ValueTransform -> C_ValueTransform
- type C_WeakNotify = Ptr () -> Ptr Object -> IO ()
- type WeakNotify = Ptr () -> Object -> IO ()
- dynamic_WeakNotify :: (HasCallStack, MonadIO m, IsObject a) => FunPtr C_WeakNotify -> Ptr () -> a -> m ()
- genClosure_WeakNotify :: MonadIO m => WeakNotify -> m (GClosure C_WeakNotify)
- mk_WeakNotify :: C_WeakNotify -> IO (FunPtr C_WeakNotify)
- noWeakNotify :: Maybe WeakNotify
- wrap_WeakNotify :: Maybe (Ptr (FunPtr C_WeakNotify)) -> WeakNotify -> C_WeakNotify
Signals
BaseFinalizeFunc
type BaseFinalizeFunc Source #
A callback function used by the type system to finalize those portions
of a derived types class structure that were setup from the corresponding
GBaseInitFunc()
function. Class finalization basically works the inverse
way in which class initialization is performed.
See GClassInitFunc()
for a discussion of the class initialization process.
type C_BaseFinalizeFunc = Ptr TypeClass -> IO () Source #
Type for the callback on the (unwrapped) C side.
dynamic_BaseFinalizeFunc Source #
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_BaseFinalizeFunc | |
-> TypeClass |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_BaseFinalizeFunc :: MonadIO m => BaseFinalizeFunc -> m (GClosure C_BaseFinalizeFunc) Source #
Wrap the callback into a GClosure
.
mk_BaseFinalizeFunc :: C_BaseFinalizeFunc -> IO (FunPtr C_BaseFinalizeFunc) Source #
Generate a function pointer callable from C code, from a C_BaseFinalizeFunc
.
noBaseFinalizeFunc :: Maybe BaseFinalizeFunc Source #
A convenience synonym for
.Nothing
:: Maybe
BaseFinalizeFunc
wrap_BaseFinalizeFunc :: Maybe (Ptr (FunPtr C_BaseFinalizeFunc)) -> BaseFinalizeFunc -> C_BaseFinalizeFunc Source #
Wrap a BaseFinalizeFunc
into a C_BaseFinalizeFunc
.
BaseInitFunc
type BaseInitFunc Source #
A callback function used by the type system to do base initialization
of the class structures of derived types. It is called as part of the
initialization process of all derived classes and should reallocate
or reset all dynamic class members copied over from the parent class.
For example, class members (such as strings) that are not sufficiently
handled by a plain memory copy of the parent class into the derived class
have to be altered. See GClassInitFunc()
for a discussion of the class
initialization process.
type C_BaseInitFunc = Ptr TypeClass -> IO () Source #
Type for the callback on the (unwrapped) C side.
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_BaseInitFunc | |
-> TypeClass |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_BaseInitFunc :: MonadIO m => BaseInitFunc -> m (GClosure C_BaseInitFunc) Source #
Wrap the callback into a GClosure
.
mk_BaseInitFunc :: C_BaseInitFunc -> IO (FunPtr C_BaseInitFunc) Source #
Generate a function pointer callable from C code, from a C_BaseInitFunc
.
noBaseInitFunc :: Maybe BaseInitFunc Source #
A convenience synonym for
.Nothing
:: Maybe
BaseInitFunc
wrap_BaseInitFunc :: Maybe (Ptr (FunPtr C_BaseInitFunc)) -> BaseInitFunc -> C_BaseInitFunc Source #
Wrap a BaseInitFunc
into a C_BaseInitFunc
.
BindingTransformFunc
type BindingTransformFunc Source #
= Binding |
|
-> GValue |
|
-> GValue |
|
-> IO Bool | Returns: |
A function to be called to transform fromValue
to toValue
. If
this is the transformTo
function of a binding, then fromValue
is the sourceProperty
on the source
object, and toValue
is the
targetProperty
on the target
object. If this is the
transformFrom
function of a BindingFlagsBidirectional
binding,
then those roles are reversed.
Since: 2.26
type BindingTransformFunc_WithClosures Source #
= Binding |
|
-> GValue |
|
-> GValue |
|
-> Ptr () |
|
-> IO Bool | Returns: |
A function to be called to transform fromValue
to toValue
. If
this is the transformTo
function of a binding, then fromValue
is the sourceProperty
on the source
object, and toValue
is the
targetProperty
on the target
object. If this is the
transformFrom
function of a BindingFlagsBidirectional
binding,
then those roles are reversed.
Since: 2.26
type C_BindingTransformFunc = Ptr Binding -> Ptr GValue -> Ptr GValue -> Ptr () -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
drop_closures_BindingTransformFunc :: BindingTransformFunc -> BindingTransformFunc_WithClosures Source #
A simple wrapper that ignores the closure arguments.
dynamic_BindingTransformFunc Source #
:: (HasCallStack, MonadIO m, IsBinding a) | |
=> FunPtr C_BindingTransformFunc | |
-> a |
|
-> GValue |
|
-> GValue |
|
-> Ptr () |
|
-> m Bool | Returns: |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_BindingTransformFunc :: MonadIO m => BindingTransformFunc -> m (GClosure C_BindingTransformFunc) Source #
Wrap the callback into a GClosure
.
mk_BindingTransformFunc :: C_BindingTransformFunc -> IO (FunPtr C_BindingTransformFunc) Source #
Generate a function pointer callable from C code, from a C_BindingTransformFunc
.
noBindingTransformFunc :: Maybe BindingTransformFunc Source #
A convenience synonym for
.Nothing
:: Maybe
BindingTransformFunc
noBindingTransformFunc_WithClosures :: Maybe BindingTransformFunc_WithClosures Source #
A convenience synonym for
.Nothing
:: Maybe
BindingTransformFunc_WithClosures
wrap_BindingTransformFunc :: Maybe (Ptr (FunPtr C_BindingTransformFunc)) -> BindingTransformFunc_WithClosures -> C_BindingTransformFunc Source #
Wrap a BindingTransformFunc
into a C_BindingTransformFunc
.
BoxedCopyFunc
type BoxedCopyFunc Source #
= Ptr () |
|
-> IO (Ptr ()) | Returns: The newly created copy of the boxed structure. |
This function is provided by the user and should produce a copy of the passed in boxed structure.
type C_BoxedCopyFunc = Ptr () -> IO (Ptr ()) Source #
Type for the callback on the (unwrapped) C side.
dynamic_BoxedCopyFunc Source #
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_BoxedCopyFunc | |
-> Ptr () |
|
-> m (Ptr ()) | Returns: The newly created copy of the boxed structure. |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_BoxedCopyFunc :: MonadIO m => BoxedCopyFunc -> m (GClosure C_BoxedCopyFunc) Source #
Wrap the callback into a GClosure
.
mk_BoxedCopyFunc :: C_BoxedCopyFunc -> IO (FunPtr C_BoxedCopyFunc) Source #
Generate a function pointer callable from C code, from a C_BoxedCopyFunc
.
noBoxedCopyFunc :: Maybe BoxedCopyFunc Source #
A convenience synonym for
.Nothing
:: Maybe
BoxedCopyFunc
wrap_BoxedCopyFunc :: Maybe (Ptr (FunPtr C_BoxedCopyFunc)) -> BoxedCopyFunc -> C_BoxedCopyFunc Source #
Wrap a BoxedCopyFunc
into a C_BoxedCopyFunc
.
BoxedFreeFunc
type BoxedFreeFunc Source #
This function is provided by the user and should free the boxed structure passed.
type C_BoxedFreeFunc = Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
dynamic_BoxedFreeFunc Source #
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_BoxedFreeFunc | |
-> Ptr () |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_BoxedFreeFunc :: MonadIO m => BoxedFreeFunc -> m (GClosure C_BoxedFreeFunc) Source #
Wrap the callback into a GClosure
.
mk_BoxedFreeFunc :: C_BoxedFreeFunc -> IO (FunPtr C_BoxedFreeFunc) Source #
Generate a function pointer callable from C code, from a C_BoxedFreeFunc
.
noBoxedFreeFunc :: Maybe BoxedFreeFunc Source #
A convenience synonym for
.Nothing
:: Maybe
BoxedFreeFunc
wrap_BoxedFreeFunc :: Maybe (Ptr (FunPtr C_BoxedFreeFunc)) -> BoxedFreeFunc -> C_BoxedFreeFunc Source #
Wrap a BoxedFreeFunc
into a C_BoxedFreeFunc
.
Callback
type C_Callback = IO () Source #
Type for the callback on the (unwrapped) C side.
type Callback = IO () Source #
The type used for callback functions in structure definitions and function
signatures. This doesn't mean that all callback functions must take no
parameters and return void. The required signature of a callback function
is determined by the context in which is used (e.g. the signal to which it
is connected). Use G_CALLBACK()
to cast the callback function to a Callback
.
dynamic_Callback :: (HasCallStack, MonadIO m) => FunPtr C_Callback -> m () Source #
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_Callback :: MonadIO m => Callback -> m (GClosure C_Callback) Source #
Wrap the callback into a GClosure
.
mk_Callback :: C_Callback -> IO (FunPtr C_Callback) Source #
Generate a function pointer callable from C code, from a C_Callback
.
wrap_Callback :: Maybe (Ptr (FunPtr C_Callback)) -> Callback -> C_Callback Source #
Wrap a Callback
into a C_Callback
.
ClassFinalizeFunc
type C_ClassFinalizeFunc = Ptr TypeClass -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ClassFinalizeFunc Source #
= TypeClass |
|
-> Ptr () |
|
-> IO () |
A callback function used by the type system to finalize a class.
This function is rarely needed, as dynamically allocated class resources
should be handled by GBaseInitFunc()
and GBaseFinalizeFunc()
.
Also, specification of a GClassFinalizeFunc()
in the TypeInfo
structure of a static type is invalid, because classes of static types
will never be finalized (they are artificially kept alive when their
reference count drops to zero).
dynamic_ClassFinalizeFunc Source #
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_ClassFinalizeFunc | |
-> TypeClass |
|
-> Ptr () |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_ClassFinalizeFunc :: MonadIO m => ClassFinalizeFunc -> m (GClosure C_ClassFinalizeFunc) Source #
Wrap the callback into a GClosure
.
mk_ClassFinalizeFunc :: C_ClassFinalizeFunc -> IO (FunPtr C_ClassFinalizeFunc) Source #
Generate a function pointer callable from C code, from a C_ClassFinalizeFunc
.
noClassFinalizeFunc :: Maybe ClassFinalizeFunc Source #
A convenience synonym for
.Nothing
:: Maybe
ClassFinalizeFunc
wrap_ClassFinalizeFunc :: Maybe (Ptr (FunPtr C_ClassFinalizeFunc)) -> ClassFinalizeFunc -> C_ClassFinalizeFunc Source #
Wrap a ClassFinalizeFunc
into a C_ClassFinalizeFunc
.
ClassInitFunc
type C_ClassInitFunc = Ptr TypeClass -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ClassInitFunc Source #
= TypeClass |
|
-> Ptr () |
|
-> IO () |
A callback function used by the type system to initialize the class of a specific type. This function should initialize all static class members.
The initialization process of a class involves:
- Copying common members from the parent class over to the derived class structure.
- Zero initialization of the remaining members not copied over from the parent class.
- Invocation of the
GBaseInitFunc()
initializers of all parent types and the class' type. - Invocation of the class'
GClassInitFunc()
initializer.
Since derived classes are partially initialized through a memory copy
of the parent class, the general rule is that GBaseInitFunc()
and
GBaseFinalizeFunc()
should take care of necessary reinitialization
and release of those class members that were introduced by the type
that specified these GBaseInitFunc()
/GBaseFinalizeFunc()
.
GClassInitFunc()
should only care about initializing static
class members, while dynamic class members (such as allocated strings
or reference counted resources) are better handled by a GBaseInitFunc()
for this type, so proper initialization of the dynamic class members
is performed for class initialization of derived types as well.
An example may help to correspond the intend of the different class initializers:
C code
typedef struct { GObjectClass parent_class; gint static_integer; gchar *dynamic_string; } TypeAClass; static void type_a_base_class_init (TypeAClass *class) { class->dynamic_string = g_strdup ("some string"); } static void type_a_base_class_finalize (TypeAClass *class) { g_free (class->dynamic_string); } static void type_a_class_init (TypeAClass *class) { class->static_integer = 42; } typedef struct { TypeAClass parent_class; gfloat static_float; GString *dynamic_gstring; } TypeBClass; static void type_b_base_class_init (TypeBClass *class) { class->dynamic_gstring = g_string_new ("some other string"); } static void type_b_base_class_finalize (TypeBClass *class) { g_string_free (class->dynamic_gstring); } static void type_b_class_init (TypeBClass *class) { class->static_float = 3.14159265358979323846; }
Initialization of TypeBClass will first cause initialization of
TypeAClass (derived classes reference their parent classes, see
typeClassRef
on this).
Initialization of TypeAClass roughly involves zero-initializing its fields,
then calling its GBaseInitFunc()
type_a_base_class_init()
to allocate
its dynamic members (dynamic_string), and finally calling its GClassInitFunc()
type_a_class_init()
to initialize its static members (static_integer).
The first step in the initialization process of TypeBClass is then
a plain memory copy of the contents of TypeAClass into TypeBClass and
zero-initialization of the remaining fields in TypeBClass.
The dynamic members of TypeAClass within TypeBClass now need
reinitialization which is performed by calling type_a_base_class_init()
with an argument of TypeBClass.
After that, the GBaseInitFunc()
of TypeBClass, type_b_base_class_init()
is called to allocate the dynamic members of TypeBClass (dynamic_gstring),
and finally the GClassInitFunc()
of TypeBClass, type_b_class_init()
,
is called to complete the initialization process with the static members
(static_float).
Corresponding finalization counter parts to the GBaseInitFunc()
functions
have to be provided to release allocated resources at class finalization
time.
dynamic_ClassInitFunc Source #
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_ClassInitFunc | |
-> TypeClass |
|
-> Ptr () |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_ClassInitFunc :: MonadIO m => ClassInitFunc -> m (GClosure C_ClassInitFunc) Source #
Wrap the callback into a GClosure
.
mk_ClassInitFunc :: C_ClassInitFunc -> IO (FunPtr C_ClassInitFunc) Source #
Generate a function pointer callable from C code, from a C_ClassInitFunc
.
noClassInitFunc :: Maybe ClassInitFunc Source #
A convenience synonym for
.Nothing
:: Maybe
ClassInitFunc
wrap_ClassInitFunc :: Maybe (Ptr (FunPtr C_ClassInitFunc)) -> ClassInitFunc -> C_ClassInitFunc Source #
Wrap a ClassInitFunc
into a C_ClassInitFunc
.
ClosureMarshalFieldCallback
type C_ClosureMarshalFieldCallback = Ptr (GClosure ()) -> Ptr GValue -> Word32 -> Ptr GValue -> Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ClosureMarshalFieldCallback = GClosure () -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> IO () Source #
No description available in the introspection data.
dynamic_ClosureMarshalFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_ClosureMarshalFieldCallback -> GClosure a -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m () Source #
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_ClosureMarshalFieldCallback :: MonadIO m => ClosureMarshalFieldCallback -> m (GClosure C_ClosureMarshalFieldCallback) Source #
Wrap the callback into a GClosure
.
mk_ClosureMarshalFieldCallback :: C_ClosureMarshalFieldCallback -> IO (FunPtr C_ClosureMarshalFieldCallback) Source #
Generate a function pointer callable from C code, from a C_ClosureMarshalFieldCallback
.
noClosureMarshalFieldCallback :: Maybe ClosureMarshalFieldCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ClosureMarshalFieldCallback
wrap_ClosureMarshalFieldCallback :: Maybe (Ptr (FunPtr C_ClosureMarshalFieldCallback)) -> ClosureMarshalFieldCallback -> C_ClosureMarshalFieldCallback Source #
Wrap a ClosureMarshalFieldCallback
into a C_ClosureMarshalFieldCallback
.
ClosureNotify
type C_ClosureNotify = Ptr () -> Ptr (GClosure ()) -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ClosureNotify Source #
= Ptr () |
|
-> GClosure () |
|
-> IO () |
The type used for the various notification callbacks which can be registered on closures.
dynamic_ClosureNotify Source #
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_ClosureNotify | |
-> Ptr () |
|
-> GClosure a |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_ClosureNotify :: MonadIO m => ClosureNotify -> m (GClosure C_ClosureNotify) Source #
Wrap the callback into a GClosure
.
mk_ClosureNotify :: C_ClosureNotify -> IO (FunPtr C_ClosureNotify) Source #
Generate a function pointer callable from C code, from a C_ClosureNotify
.
noClosureNotify :: Maybe ClosureNotify Source #
A convenience synonym for
.Nothing
:: Maybe
ClosureNotify
wrap_ClosureNotify :: Maybe (Ptr (FunPtr C_ClosureNotify)) -> ClosureNotify -> C_ClosureNotify Source #
Wrap a ClosureNotify
into a C_ClosureNotify
.
InstanceInitFunc
type C_InstanceInitFunc = Ptr TypeInstance -> Ptr TypeClass -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InstanceInitFunc Source #
= TypeInstance |
|
-> TypeClass |
|
-> IO () |
A callback function used by the type system to initialize a new instance of a type. This function initializes all instance members and allocates any resources required by it.
Initialization of a derived instance involves calling all its parent types instance initializers, so the class member of the instance is altered during its initialization to always point to the class that belongs to the type the current initializer was introduced for.
The extended members of instance
are guaranteed to have been filled with
zeros before this function is called.
dynamic_InstanceInitFunc Source #
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_InstanceInitFunc | |
-> TypeInstance |
|
-> TypeClass |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_InstanceInitFunc :: MonadIO m => InstanceInitFunc -> m (GClosure C_InstanceInitFunc) Source #
Wrap the callback into a GClosure
.
mk_InstanceInitFunc :: C_InstanceInitFunc -> IO (FunPtr C_InstanceInitFunc) Source #
Generate a function pointer callable from C code, from a C_InstanceInitFunc
.
noInstanceInitFunc :: Maybe InstanceInitFunc Source #
A convenience synonym for
.Nothing
:: Maybe
InstanceInitFunc
wrap_InstanceInitFunc :: Maybe (Ptr (FunPtr C_InstanceInitFunc)) -> InstanceInitFunc -> C_InstanceInitFunc Source #
Wrap a InstanceInitFunc
into a C_InstanceInitFunc
.
InterfaceFinalizeFunc
type C_InterfaceFinalizeFunc = Ptr TypeInterface -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InterfaceFinalizeFunc Source #
= TypeInterface |
|
-> Ptr () |
|
-> IO () |
A callback function used by the type system to finalize an interface.
This function should destroy any internal data and release any resources
allocated by the corresponding GInterfaceInitFunc()
function.
dynamic_InterfaceFinalizeFunc Source #
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_InterfaceFinalizeFunc | |
-> TypeInterface |
|
-> Ptr () |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_InterfaceFinalizeFunc :: MonadIO m => InterfaceFinalizeFunc -> m (GClosure C_InterfaceFinalizeFunc) Source #
Wrap the callback into a GClosure
.
mk_InterfaceFinalizeFunc :: C_InterfaceFinalizeFunc -> IO (FunPtr C_InterfaceFinalizeFunc) Source #
Generate a function pointer callable from C code, from a C_InterfaceFinalizeFunc
.
noInterfaceFinalizeFunc :: Maybe InterfaceFinalizeFunc Source #
A convenience synonym for
.Nothing
:: Maybe
InterfaceFinalizeFunc
wrap_InterfaceFinalizeFunc :: Maybe (Ptr (FunPtr C_InterfaceFinalizeFunc)) -> InterfaceFinalizeFunc -> C_InterfaceFinalizeFunc Source #
Wrap a InterfaceFinalizeFunc
into a C_InterfaceFinalizeFunc
.
InterfaceInitFunc
type C_InterfaceInitFunc = Ptr TypeInterface -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InterfaceInitFunc Source #
= TypeInterface |
|
-> Ptr () |
|
-> IO () |
A callback function used by the type system to initialize a new interface. This function should initialize all internal data and allocate any resources required by the interface.
The members of ifaceData
are guaranteed to have been filled with
zeros before this function is called.
dynamic_InterfaceInitFunc Source #
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_InterfaceInitFunc | |
-> TypeInterface |
|
-> Ptr () |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_InterfaceInitFunc :: MonadIO m => InterfaceInitFunc -> m (GClosure C_InterfaceInitFunc) Source #
Wrap the callback into a GClosure
.
mk_InterfaceInitFunc :: C_InterfaceInitFunc -> IO (FunPtr C_InterfaceInitFunc) Source #
Generate a function pointer callable from C code, from a C_InterfaceInitFunc
.
noInterfaceInitFunc :: Maybe InterfaceInitFunc Source #
A convenience synonym for
.Nothing
:: Maybe
InterfaceInitFunc
wrap_InterfaceInitFunc :: Maybe (Ptr (FunPtr C_InterfaceInitFunc)) -> InterfaceInitFunc -> C_InterfaceInitFunc Source #
Wrap a InterfaceInitFunc
into a C_InterfaceInitFunc
.
ObjectFinalizeFunc
type C_ObjectFinalizeFunc = Ptr Object -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ObjectFinalizeFunc Source #
The type of the finalize
function of ObjectClass
.
dynamic_ObjectFinalizeFunc Source #
:: (HasCallStack, MonadIO m, IsObject a) | |
=> FunPtr C_ObjectFinalizeFunc | |
-> a |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_ObjectFinalizeFunc :: MonadIO m => ObjectFinalizeFunc -> m (GClosure C_ObjectFinalizeFunc) Source #
Wrap the callback into a GClosure
.
mk_ObjectFinalizeFunc :: C_ObjectFinalizeFunc -> IO (FunPtr C_ObjectFinalizeFunc) Source #
Generate a function pointer callable from C code, from a C_ObjectFinalizeFunc
.
noObjectFinalizeFunc :: Maybe ObjectFinalizeFunc Source #
A convenience synonym for
.Nothing
:: Maybe
ObjectFinalizeFunc
wrap_ObjectFinalizeFunc :: Maybe (Ptr (FunPtr C_ObjectFinalizeFunc)) -> ObjectFinalizeFunc -> C_ObjectFinalizeFunc Source #
Wrap a ObjectFinalizeFunc
into a C_ObjectFinalizeFunc
.
ObjectGetPropertyFunc
type C_ObjectGetPropertyFunc = Ptr Object -> Word32 -> Ptr GValue -> Ptr GParamSpec -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ObjectGetPropertyFunc Source #
= Object |
|
-> Word32 |
|
-> GValue |
|
-> GParamSpec |
|
-> IO () |
The type of the getProperty
function of ObjectClass
.
dynamic_ObjectGetPropertyFunc Source #
:: (HasCallStack, MonadIO m, IsObject a) | |
=> FunPtr C_ObjectGetPropertyFunc | |
-> a |
|
-> Word32 |
|
-> GValue |
|
-> GParamSpec |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_ObjectGetPropertyFunc :: MonadIO m => ObjectGetPropertyFunc -> m (GClosure C_ObjectGetPropertyFunc) Source #
Wrap the callback into a GClosure
.
mk_ObjectGetPropertyFunc :: C_ObjectGetPropertyFunc -> IO (FunPtr C_ObjectGetPropertyFunc) Source #
Generate a function pointer callable from C code, from a C_ObjectGetPropertyFunc
.
noObjectGetPropertyFunc :: Maybe ObjectGetPropertyFunc Source #
A convenience synonym for
.Nothing
:: Maybe
ObjectGetPropertyFunc
wrap_ObjectGetPropertyFunc :: Maybe (Ptr (FunPtr C_ObjectGetPropertyFunc)) -> ObjectGetPropertyFunc -> C_ObjectGetPropertyFunc Source #
Wrap a ObjectGetPropertyFunc
into a C_ObjectGetPropertyFunc
.
ObjectSetPropertyFunc
type C_ObjectSetPropertyFunc = Ptr Object -> Word32 -> Ptr GValue -> Ptr GParamSpec -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ObjectSetPropertyFunc Source #
= Object |
|
-> Word32 |
|
-> GValue |
|
-> GParamSpec |
|
-> IO () |
The type of the setProperty
function of ObjectClass
.
dynamic_ObjectSetPropertyFunc Source #
:: (HasCallStack, MonadIO m, IsObject a) | |
=> FunPtr C_ObjectSetPropertyFunc | |
-> a |
|
-> Word32 |
|
-> GValue |
|
-> GParamSpec |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_ObjectSetPropertyFunc :: MonadIO m => ObjectSetPropertyFunc -> m (GClosure C_ObjectSetPropertyFunc) Source #
Wrap the callback into a GClosure
.
mk_ObjectSetPropertyFunc :: C_ObjectSetPropertyFunc -> IO (FunPtr C_ObjectSetPropertyFunc) Source #
Generate a function pointer callable from C code, from a C_ObjectSetPropertyFunc
.
noObjectSetPropertyFunc :: Maybe ObjectSetPropertyFunc Source #
A convenience synonym for
.Nothing
:: Maybe
ObjectSetPropertyFunc
wrap_ObjectSetPropertyFunc :: Maybe (Ptr (FunPtr C_ObjectSetPropertyFunc)) -> ObjectSetPropertyFunc -> C_ObjectSetPropertyFunc Source #
Wrap a ObjectSetPropertyFunc
into a C_ObjectSetPropertyFunc
.
ParamSpecTypeInfoFinalizeFieldCallback
type C_ParamSpecTypeInfoFinalizeFieldCallback = Ptr GParamSpec -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ParamSpecTypeInfoFinalizeFieldCallback = GParamSpec -> IO () Source #
No description available in the introspection data.
dynamic_ParamSpecTypeInfoFinalizeFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_ParamSpecTypeInfoFinalizeFieldCallback -> GParamSpec -> m () Source #
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_ParamSpecTypeInfoFinalizeFieldCallback :: MonadIO m => ParamSpecTypeInfoFinalizeFieldCallback -> m (GClosure C_ParamSpecTypeInfoFinalizeFieldCallback) Source #
Wrap the callback into a GClosure
.
mk_ParamSpecTypeInfoFinalizeFieldCallback :: C_ParamSpecTypeInfoFinalizeFieldCallback -> IO (FunPtr C_ParamSpecTypeInfoFinalizeFieldCallback) Source #
Generate a function pointer callable from C code, from a C_ParamSpecTypeInfoFinalizeFieldCallback
.
noParamSpecTypeInfoFinalizeFieldCallback :: Maybe ParamSpecTypeInfoFinalizeFieldCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ParamSpecTypeInfoFinalizeFieldCallback
wrap_ParamSpecTypeInfoFinalizeFieldCallback :: Maybe (Ptr (FunPtr C_ParamSpecTypeInfoFinalizeFieldCallback)) -> ParamSpecTypeInfoFinalizeFieldCallback -> C_ParamSpecTypeInfoFinalizeFieldCallback Source #
ParamSpecTypeInfoInstanceInitFieldCallback
type C_ParamSpecTypeInfoInstanceInitFieldCallback = Ptr GParamSpec -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ParamSpecTypeInfoInstanceInitFieldCallback = GParamSpec -> IO () Source #
No description available in the introspection data.
dynamic_ParamSpecTypeInfoInstanceInitFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_ParamSpecTypeInfoInstanceInitFieldCallback -> GParamSpec -> m () Source #
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_ParamSpecTypeInfoInstanceInitFieldCallback :: MonadIO m => ParamSpecTypeInfoInstanceInitFieldCallback -> m (GClosure C_ParamSpecTypeInfoInstanceInitFieldCallback) Source #
Wrap the callback into a GClosure
.
mk_ParamSpecTypeInfoInstanceInitFieldCallback :: C_ParamSpecTypeInfoInstanceInitFieldCallback -> IO (FunPtr C_ParamSpecTypeInfoInstanceInitFieldCallback) Source #
Generate a function pointer callable from C code, from a C_ParamSpecTypeInfoInstanceInitFieldCallback
.
noParamSpecTypeInfoInstanceInitFieldCallback :: Maybe ParamSpecTypeInfoInstanceInitFieldCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ParamSpecTypeInfoInstanceInitFieldCallback
wrap_ParamSpecTypeInfoInstanceInitFieldCallback :: Maybe (Ptr (FunPtr C_ParamSpecTypeInfoInstanceInitFieldCallback)) -> ParamSpecTypeInfoInstanceInitFieldCallback -> C_ParamSpecTypeInfoInstanceInitFieldCallback Source #
ParamSpecTypeInfoValueSetDefaultFieldCallback
type C_ParamSpecTypeInfoValueSetDefaultFieldCallback = Ptr GParamSpec -> Ptr GValue -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ParamSpecTypeInfoValueSetDefaultFieldCallback = GParamSpec -> GValue -> IO () Source #
No description available in the introspection data.
dynamic_ParamSpecTypeInfoValueSetDefaultFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_ParamSpecTypeInfoValueSetDefaultFieldCallback -> GParamSpec -> GValue -> m () Source #
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_ParamSpecTypeInfoValueSetDefaultFieldCallback :: MonadIO m => ParamSpecTypeInfoValueSetDefaultFieldCallback -> m (GClosure C_ParamSpecTypeInfoValueSetDefaultFieldCallback) Source #
Wrap the callback into a GClosure
.
mk_ParamSpecTypeInfoValueSetDefaultFieldCallback :: C_ParamSpecTypeInfoValueSetDefaultFieldCallback -> IO (FunPtr C_ParamSpecTypeInfoValueSetDefaultFieldCallback) Source #
Generate a function pointer callable from C code, from a C_ParamSpecTypeInfoValueSetDefaultFieldCallback
.
noParamSpecTypeInfoValueSetDefaultFieldCallback :: Maybe ParamSpecTypeInfoValueSetDefaultFieldCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ParamSpecTypeInfoValueSetDefaultFieldCallback
wrap_ParamSpecTypeInfoValueSetDefaultFieldCallback :: Maybe (Ptr (FunPtr C_ParamSpecTypeInfoValueSetDefaultFieldCallback)) -> ParamSpecTypeInfoValueSetDefaultFieldCallback -> C_ParamSpecTypeInfoValueSetDefaultFieldCallback Source #
ParamSpecTypeInfoValueValidateFieldCallback
type C_ParamSpecTypeInfoValueValidateFieldCallback = Ptr GParamSpec -> Ptr GValue -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type ParamSpecTypeInfoValueValidateFieldCallback = GParamSpec -> GValue -> IO Bool Source #
No description available in the introspection data.
dynamic_ParamSpecTypeInfoValueValidateFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_ParamSpecTypeInfoValueValidateFieldCallback -> GParamSpec -> GValue -> m Bool Source #
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_ParamSpecTypeInfoValueValidateFieldCallback :: MonadIO m => ParamSpecTypeInfoValueValidateFieldCallback -> m (GClosure C_ParamSpecTypeInfoValueValidateFieldCallback) Source #
Wrap the callback into a GClosure
.
mk_ParamSpecTypeInfoValueValidateFieldCallback :: C_ParamSpecTypeInfoValueValidateFieldCallback -> IO (FunPtr C_ParamSpecTypeInfoValueValidateFieldCallback) Source #
Generate a function pointer callable from C code, from a C_ParamSpecTypeInfoValueValidateFieldCallback
.
noParamSpecTypeInfoValueValidateFieldCallback :: Maybe ParamSpecTypeInfoValueValidateFieldCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ParamSpecTypeInfoValueValidateFieldCallback
wrap_ParamSpecTypeInfoValueValidateFieldCallback :: Maybe (Ptr (FunPtr C_ParamSpecTypeInfoValueValidateFieldCallback)) -> ParamSpecTypeInfoValueValidateFieldCallback -> C_ParamSpecTypeInfoValueValidateFieldCallback Source #
ParamSpecTypeInfoValuesCmpFieldCallback
type C_ParamSpecTypeInfoValuesCmpFieldCallback = Ptr GParamSpec -> Ptr GValue -> Ptr GValue -> IO Int32 Source #
Type for the callback on the (unwrapped) C side.
type ParamSpecTypeInfoValuesCmpFieldCallback = GParamSpec -> GValue -> GValue -> IO Int32 Source #
No description available in the introspection data.
dynamic_ParamSpecTypeInfoValuesCmpFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_ParamSpecTypeInfoValuesCmpFieldCallback -> GParamSpec -> GValue -> GValue -> m Int32 Source #
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_ParamSpecTypeInfoValuesCmpFieldCallback :: MonadIO m => ParamSpecTypeInfoValuesCmpFieldCallback -> m (GClosure C_ParamSpecTypeInfoValuesCmpFieldCallback) Source #
Wrap the callback into a GClosure
.
mk_ParamSpecTypeInfoValuesCmpFieldCallback :: C_ParamSpecTypeInfoValuesCmpFieldCallback -> IO (FunPtr C_ParamSpecTypeInfoValuesCmpFieldCallback) Source #
Generate a function pointer callable from C code, from a C_ParamSpecTypeInfoValuesCmpFieldCallback
.
noParamSpecTypeInfoValuesCmpFieldCallback :: Maybe ParamSpecTypeInfoValuesCmpFieldCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ParamSpecTypeInfoValuesCmpFieldCallback
wrap_ParamSpecTypeInfoValuesCmpFieldCallback :: Maybe (Ptr (FunPtr C_ParamSpecTypeInfoValuesCmpFieldCallback)) -> ParamSpecTypeInfoValuesCmpFieldCallback -> C_ParamSpecTypeInfoValuesCmpFieldCallback Source #
SignalAccumulator
type C_SignalAccumulator = Ptr SignalInvocationHint -> Ptr GValue -> Ptr GValue -> Ptr () -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type SignalAccumulator Source #
= SignalInvocationHint |
|
-> GValue |
|
-> GValue |
|
-> Ptr () |
|
-> IO Bool | Returns: The accumulator function returns whether the signal emission
should be aborted. Returning |
The signal accumulator is a special callback function that can be used
to collect return values of the various callbacks that are called
during a signal emission. The signal accumulator is specified at signal
creation time, if it is left Nothing
, no accumulation of callback return
values is performed. The return value of signal emissions is then the
value returned by the last callback.
dynamic_SignalAccumulator Source #
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_SignalAccumulator | |
-> SignalInvocationHint |
|
-> GValue |
|
-> GValue |
|
-> Ptr () |
|
-> m Bool | Returns: The accumulator function returns whether the signal emission
should be aborted. Returning |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_SignalAccumulator :: MonadIO m => SignalAccumulator -> m (GClosure C_SignalAccumulator) Source #
Wrap the callback into a GClosure
.
mk_SignalAccumulator :: C_SignalAccumulator -> IO (FunPtr C_SignalAccumulator) Source #
Generate a function pointer callable from C code, from a C_SignalAccumulator
.
noSignalAccumulator :: Maybe SignalAccumulator Source #
A convenience synonym for
.Nothing
:: Maybe
SignalAccumulator
wrap_SignalAccumulator :: Maybe (Ptr (FunPtr C_SignalAccumulator)) -> SignalAccumulator -> C_SignalAccumulator Source #
Wrap a SignalAccumulator
into a C_SignalAccumulator
.
SignalEmissionHook
type C_SignalEmissionHook = Ptr SignalInvocationHint -> Word32 -> Ptr GValue -> Ptr () -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type SignalEmissionHook Source #
= SignalInvocationHint |
|
-> [GValue] |
|
-> Ptr () |
|
-> IO Bool | Returns: whether it wants to stay connected. If it returns |
A simple function pointer to get invoked when the signal is emitted. This allows you to tie a hook to the signal type, so that it will trap all emissions of that signal, from any object.
You may not attach these to signals created with the G_SIGNAL_NO_HOOKS
flag.
dynamic_SignalEmissionHook Source #
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_SignalEmissionHook | |
-> SignalInvocationHint |
|
-> [GValue] |
|
-> Ptr () |
|
-> m Bool | Returns: whether it wants to stay connected. If it returns |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_SignalEmissionHook :: MonadIO m => SignalEmissionHook -> m (GClosure C_SignalEmissionHook) Source #
Wrap the callback into a GClosure
.
mk_SignalEmissionHook :: C_SignalEmissionHook -> IO (FunPtr C_SignalEmissionHook) Source #
Generate a function pointer callable from C code, from a C_SignalEmissionHook
.
noSignalEmissionHook :: Maybe SignalEmissionHook Source #
A convenience synonym for
.Nothing
:: Maybe
SignalEmissionHook
wrap_SignalEmissionHook :: Maybe (Ptr (FunPtr C_SignalEmissionHook)) -> SignalEmissionHook -> C_SignalEmissionHook Source #
Wrap a SignalEmissionHook
into a C_SignalEmissionHook
.
ToggleNotify
type C_ToggleNotify = Ptr () -> Ptr Object -> CInt -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ToggleNotify Source #
= Ptr () |
|
-> Object |
|
-> Bool |
|
-> IO () |
A callback function used for notification when the state
of a toggle reference changes. See g_object_add_toggle_ref()
.
:: (HasCallStack, MonadIO m, IsObject a) | |
=> FunPtr C_ToggleNotify | |
-> Ptr () |
|
-> a |
|
-> Bool |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_ToggleNotify :: MonadIO m => ToggleNotify -> m (GClosure C_ToggleNotify) Source #
Wrap the callback into a GClosure
.
mk_ToggleNotify :: C_ToggleNotify -> IO (FunPtr C_ToggleNotify) Source #
Generate a function pointer callable from C code, from a C_ToggleNotify
.
noToggleNotify :: Maybe ToggleNotify Source #
A convenience synonym for
.Nothing
:: Maybe
ToggleNotify
wrap_ToggleNotify :: Maybe (Ptr (FunPtr C_ToggleNotify)) -> ToggleNotify -> C_ToggleNotify Source #
Wrap a ToggleNotify
into a C_ToggleNotify
.
TypeClassCacheFunc
type C_TypeClassCacheFunc = Ptr () -> Ptr TypeClass -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type TypeClassCacheFunc Source #
= Ptr () |
|
-> TypeClass |
|
-> IO Bool | Returns: |
A callback function which is called when the reference count of a class
drops to zero. It may use typeClassRef
to prevent the class from
being freed. You should not call typeClassUnref
from a
TypeClassCacheFunc
function to prevent infinite recursion, use
g_type_class_unref_uncached()
instead.
The functions have to check the class id passed in to figure
whether they actually want to cache the class of this type, since all
classes are routed through the same TypeClassCacheFunc
chain.
dynamic_TypeClassCacheFunc Source #
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_TypeClassCacheFunc | |
-> Ptr () |
|
-> TypeClass |
|
-> m Bool | Returns: |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_TypeClassCacheFunc :: MonadIO m => TypeClassCacheFunc -> m (GClosure C_TypeClassCacheFunc) Source #
Wrap the callback into a GClosure
.
mk_TypeClassCacheFunc :: C_TypeClassCacheFunc -> IO (FunPtr C_TypeClassCacheFunc) Source #
Generate a function pointer callable from C code, from a C_TypeClassCacheFunc
.
noTypeClassCacheFunc :: Maybe TypeClassCacheFunc Source #
A convenience synonym for
.Nothing
:: Maybe
TypeClassCacheFunc
wrap_TypeClassCacheFunc :: Maybe (Ptr (FunPtr C_TypeClassCacheFunc)) -> TypeClassCacheFunc -> C_TypeClassCacheFunc Source #
Wrap a TypeClassCacheFunc
into a C_TypeClassCacheFunc
.
TypeInterfaceCheckFunc
type C_TypeInterfaceCheckFunc = Ptr () -> Ptr TypeInterface -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TypeInterfaceCheckFunc Source #
= Ptr () |
|
-> TypeInterface |
|
-> IO () |
A callback called after an interface vtable is initialized.
See g_type_add_interface_check()
.
Since: 2.4
dynamic_TypeInterfaceCheckFunc Source #
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_TypeInterfaceCheckFunc | |
-> Ptr () |
|
-> TypeInterface |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_TypeInterfaceCheckFunc :: MonadIO m => TypeInterfaceCheckFunc -> m (GClosure C_TypeInterfaceCheckFunc) Source #
Wrap the callback into a GClosure
.
mk_TypeInterfaceCheckFunc :: C_TypeInterfaceCheckFunc -> IO (FunPtr C_TypeInterfaceCheckFunc) Source #
Generate a function pointer callable from C code, from a C_TypeInterfaceCheckFunc
.
noTypeInterfaceCheckFunc :: Maybe TypeInterfaceCheckFunc Source #
A convenience synonym for
.Nothing
:: Maybe
TypeInterfaceCheckFunc
wrap_TypeInterfaceCheckFunc :: Maybe (Ptr (FunPtr C_TypeInterfaceCheckFunc)) -> TypeInterfaceCheckFunc -> C_TypeInterfaceCheckFunc Source #
Wrap a TypeInterfaceCheckFunc
into a C_TypeInterfaceCheckFunc
.
TypePluginCompleteInterfaceInfo
type C_TypePluginCompleteInterfaceInfo = Ptr TypePlugin -> CGType -> CGType -> Ptr InterfaceInfo -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TypePluginCompleteInterfaceInfo Source #
= TypePlugin |
|
-> GType |
|
-> GType |
|
-> InterfaceInfo |
|
-> IO () |
The type of the completeInterfaceInfo
function of GTypePluginClass
.
dynamic_TypePluginCompleteInterfaceInfo Source #
:: (HasCallStack, MonadIO m, IsTypePlugin a) | |
=> FunPtr C_TypePluginCompleteInterfaceInfo | |
-> a |
|
-> GType |
|
-> GType |
|
-> InterfaceInfo |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_TypePluginCompleteInterfaceInfo :: MonadIO m => TypePluginCompleteInterfaceInfo -> m (GClosure C_TypePluginCompleteInterfaceInfo) Source #
Wrap the callback into a GClosure
.
mk_TypePluginCompleteInterfaceInfo :: C_TypePluginCompleteInterfaceInfo -> IO (FunPtr C_TypePluginCompleteInterfaceInfo) Source #
Generate a function pointer callable from C code, from a C_TypePluginCompleteInterfaceInfo
.
noTypePluginCompleteInterfaceInfo :: Maybe TypePluginCompleteInterfaceInfo Source #
A convenience synonym for
.Nothing
:: Maybe
TypePluginCompleteInterfaceInfo
wrap_TypePluginCompleteInterfaceInfo :: Maybe (Ptr (FunPtr C_TypePluginCompleteInterfaceInfo)) -> TypePluginCompleteInterfaceInfo -> C_TypePluginCompleteInterfaceInfo Source #
Wrap a TypePluginCompleteInterfaceInfo
into a C_TypePluginCompleteInterfaceInfo
.
TypePluginCompleteTypeInfo
type C_TypePluginCompleteTypeInfo = Ptr TypePlugin -> CGType -> Ptr TypeInfo -> Ptr TypeValueTable -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TypePluginCompleteTypeInfo Source #
= TypePlugin |
|
-> GType |
|
-> TypeInfo |
|
-> TypeValueTable |
|
-> IO () |
The type of the completeTypeInfo
function of GTypePluginClass
.
dynamic_TypePluginCompleteTypeInfo Source #
:: (HasCallStack, MonadIO m, IsTypePlugin a) | |
=> FunPtr C_TypePluginCompleteTypeInfo | |
-> a |
|
-> GType |
|
-> TypeInfo |
|
-> TypeValueTable |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_TypePluginCompleteTypeInfo :: MonadIO m => TypePluginCompleteTypeInfo -> m (GClosure C_TypePluginCompleteTypeInfo) Source #
Wrap the callback into a GClosure
.
mk_TypePluginCompleteTypeInfo :: C_TypePluginCompleteTypeInfo -> IO (FunPtr C_TypePluginCompleteTypeInfo) Source #
Generate a function pointer callable from C code, from a C_TypePluginCompleteTypeInfo
.
noTypePluginCompleteTypeInfo :: Maybe TypePluginCompleteTypeInfo Source #
A convenience synonym for
.Nothing
:: Maybe
TypePluginCompleteTypeInfo
wrap_TypePluginCompleteTypeInfo :: Maybe (Ptr (FunPtr C_TypePluginCompleteTypeInfo)) -> TypePluginCompleteTypeInfo -> C_TypePluginCompleteTypeInfo Source #
Wrap a TypePluginCompleteTypeInfo
into a C_TypePluginCompleteTypeInfo
.
TypePluginUnuse
type C_TypePluginUnuse = Ptr TypePlugin -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TypePluginUnuse Source #
= TypePlugin |
|
-> IO () |
The type of the unusePlugin
function of GTypePluginClass
.
dynamic_TypePluginUnuse Source #
:: (HasCallStack, MonadIO m, IsTypePlugin a) | |
=> FunPtr C_TypePluginUnuse | |
-> a |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_TypePluginUnuse :: MonadIO m => TypePluginUnuse -> m (GClosure C_TypePluginUnuse) Source #
Wrap the callback into a GClosure
.
mk_TypePluginUnuse :: C_TypePluginUnuse -> IO (FunPtr C_TypePluginUnuse) Source #
Generate a function pointer callable from C code, from a C_TypePluginUnuse
.
noTypePluginUnuse :: Maybe TypePluginUnuse Source #
A convenience synonym for
.Nothing
:: Maybe
TypePluginUnuse
wrap_TypePluginUnuse :: Maybe (Ptr (FunPtr C_TypePluginUnuse)) -> TypePluginUnuse -> C_TypePluginUnuse Source #
Wrap a TypePluginUnuse
into a C_TypePluginUnuse
.
TypePluginUse
type C_TypePluginUse = Ptr TypePlugin -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TypePluginUse Source #
= TypePlugin |
|
-> IO () |
The type of the usePlugin
function of GTypePluginClass
, which gets called
to increase the use count of plugin
.
dynamic_TypePluginUse Source #
:: (HasCallStack, MonadIO m, IsTypePlugin a) | |
=> FunPtr C_TypePluginUse | |
-> a |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_TypePluginUse :: MonadIO m => TypePluginUse -> m (GClosure C_TypePluginUse) Source #
Wrap the callback into a GClosure
.
mk_TypePluginUse :: C_TypePluginUse -> IO (FunPtr C_TypePluginUse) Source #
Generate a function pointer callable from C code, from a C_TypePluginUse
.
noTypePluginUse :: Maybe TypePluginUse Source #
A convenience synonym for
.Nothing
:: Maybe
TypePluginUse
wrap_TypePluginUse :: Maybe (Ptr (FunPtr C_TypePluginUse)) -> TypePluginUse -> C_TypePluginUse Source #
Wrap a TypePluginUse
into a C_TypePluginUse
.
TypeValueTableCollectValueFieldCallback
type C_TypeValueTableCollectValueFieldCallback = Ptr GValue -> Word32 -> Ptr TypeCValue -> Word32 -> IO CString Source #
Type for the callback on the (unwrapped) C side.
type TypeValueTableCollectValueFieldCallback = GValue -> Word32 -> TypeCValue -> Word32 -> IO Text Source #
No description available in the introspection data.
dynamic_TypeValueTableCollectValueFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_TypeValueTableCollectValueFieldCallback -> GValue -> Word32 -> TypeCValue -> Word32 -> m Text Source #
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_TypeValueTableCollectValueFieldCallback :: MonadIO m => TypeValueTableCollectValueFieldCallback -> m (GClosure C_TypeValueTableCollectValueFieldCallback) Source #
Wrap the callback into a GClosure
.
mk_TypeValueTableCollectValueFieldCallback :: C_TypeValueTableCollectValueFieldCallback -> IO (FunPtr C_TypeValueTableCollectValueFieldCallback) Source #
Generate a function pointer callable from C code, from a C_TypeValueTableCollectValueFieldCallback
.
noTypeValueTableCollectValueFieldCallback :: Maybe TypeValueTableCollectValueFieldCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TypeValueTableCollectValueFieldCallback
wrap_TypeValueTableCollectValueFieldCallback :: Maybe (Ptr (FunPtr C_TypeValueTableCollectValueFieldCallback)) -> TypeValueTableCollectValueFieldCallback -> C_TypeValueTableCollectValueFieldCallback Source #
TypeValueTableLcopyValueFieldCallback
type C_TypeValueTableLcopyValueFieldCallback = Ptr GValue -> Word32 -> Ptr TypeCValue -> Word32 -> IO CString Source #
Type for the callback on the (unwrapped) C side.
type TypeValueTableLcopyValueFieldCallback = GValue -> Word32 -> TypeCValue -> Word32 -> IO Text Source #
No description available in the introspection data.
dynamic_TypeValueTableLcopyValueFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_TypeValueTableLcopyValueFieldCallback -> GValue -> Word32 -> TypeCValue -> Word32 -> m Text Source #
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_TypeValueTableLcopyValueFieldCallback :: MonadIO m => TypeValueTableLcopyValueFieldCallback -> m (GClosure C_TypeValueTableLcopyValueFieldCallback) Source #
Wrap the callback into a GClosure
.
mk_TypeValueTableLcopyValueFieldCallback :: C_TypeValueTableLcopyValueFieldCallback -> IO (FunPtr C_TypeValueTableLcopyValueFieldCallback) Source #
Generate a function pointer callable from C code, from a C_TypeValueTableLcopyValueFieldCallback
.
noTypeValueTableLcopyValueFieldCallback :: Maybe TypeValueTableLcopyValueFieldCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TypeValueTableLcopyValueFieldCallback
wrap_TypeValueTableLcopyValueFieldCallback :: Maybe (Ptr (FunPtr C_TypeValueTableLcopyValueFieldCallback)) -> TypeValueTableLcopyValueFieldCallback -> C_TypeValueTableLcopyValueFieldCallback Source #
TypeValueTableValueCopyFieldCallback
type C_TypeValueTableValueCopyFieldCallback = Ptr GValue -> Ptr GValue -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TypeValueTableValueCopyFieldCallback = GValue -> GValue -> IO () Source #
No description available in the introspection data.
dynamic_TypeValueTableValueCopyFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_TypeValueTableValueCopyFieldCallback -> GValue -> GValue -> m () Source #
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_TypeValueTableValueCopyFieldCallback :: MonadIO m => TypeValueTableValueCopyFieldCallback -> m (GClosure C_TypeValueTableValueCopyFieldCallback) Source #
Wrap the callback into a GClosure
.
mk_TypeValueTableValueCopyFieldCallback :: C_TypeValueTableValueCopyFieldCallback -> IO (FunPtr C_TypeValueTableValueCopyFieldCallback) Source #
Generate a function pointer callable from C code, from a C_TypeValueTableValueCopyFieldCallback
.
noTypeValueTableValueCopyFieldCallback :: Maybe TypeValueTableValueCopyFieldCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TypeValueTableValueCopyFieldCallback
wrap_TypeValueTableValueCopyFieldCallback :: Maybe (Ptr (FunPtr C_TypeValueTableValueCopyFieldCallback)) -> TypeValueTableValueCopyFieldCallback -> C_TypeValueTableValueCopyFieldCallback Source #
TypeValueTableValueFreeFieldCallback
type C_TypeValueTableValueFreeFieldCallback = Ptr GValue -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TypeValueTableValueFreeFieldCallback = GValue -> IO () Source #
No description available in the introspection data.
dynamic_TypeValueTableValueFreeFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_TypeValueTableValueFreeFieldCallback -> GValue -> m () Source #
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_TypeValueTableValueFreeFieldCallback :: MonadIO m => TypeValueTableValueFreeFieldCallback -> m (GClosure C_TypeValueTableValueFreeFieldCallback) Source #
Wrap the callback into a GClosure
.
mk_TypeValueTableValueFreeFieldCallback :: C_TypeValueTableValueFreeFieldCallback -> IO (FunPtr C_TypeValueTableValueFreeFieldCallback) Source #
Generate a function pointer callable from C code, from a C_TypeValueTableValueFreeFieldCallback
.
noTypeValueTableValueFreeFieldCallback :: Maybe TypeValueTableValueFreeFieldCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TypeValueTableValueFreeFieldCallback
wrap_TypeValueTableValueFreeFieldCallback :: Maybe (Ptr (FunPtr C_TypeValueTableValueFreeFieldCallback)) -> TypeValueTableValueFreeFieldCallback -> C_TypeValueTableValueFreeFieldCallback Source #
TypeValueTableValueInitFieldCallback
type C_TypeValueTableValueInitFieldCallback = Ptr GValue -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TypeValueTableValueInitFieldCallback = GValue -> IO () Source #
No description available in the introspection data.
dynamic_TypeValueTableValueInitFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_TypeValueTableValueInitFieldCallback -> GValue -> m () Source #
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_TypeValueTableValueInitFieldCallback :: MonadIO m => TypeValueTableValueInitFieldCallback -> m (GClosure C_TypeValueTableValueInitFieldCallback) Source #
Wrap the callback into a GClosure
.
mk_TypeValueTableValueInitFieldCallback :: C_TypeValueTableValueInitFieldCallback -> IO (FunPtr C_TypeValueTableValueInitFieldCallback) Source #
Generate a function pointer callable from C code, from a C_TypeValueTableValueInitFieldCallback
.
noTypeValueTableValueInitFieldCallback :: Maybe TypeValueTableValueInitFieldCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TypeValueTableValueInitFieldCallback
wrap_TypeValueTableValueInitFieldCallback :: Maybe (Ptr (FunPtr C_TypeValueTableValueInitFieldCallback)) -> TypeValueTableValueInitFieldCallback -> C_TypeValueTableValueInitFieldCallback Source #
TypeValueTableValuePeekPointerFieldCallback
type C_TypeValueTableValuePeekPointerFieldCallback = Ptr GValue -> IO (Ptr ()) Source #
Type for the callback on the (unwrapped) C side.
type TypeValueTableValuePeekPointerFieldCallback = GValue -> IO (Ptr ()) Source #
No description available in the introspection data.
dynamic_TypeValueTableValuePeekPointerFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_TypeValueTableValuePeekPointerFieldCallback -> GValue -> m (Ptr ()) Source #
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_TypeValueTableValuePeekPointerFieldCallback :: MonadIO m => TypeValueTableValuePeekPointerFieldCallback -> m (GClosure C_TypeValueTableValuePeekPointerFieldCallback) Source #
Wrap the callback into a GClosure
.
mk_TypeValueTableValuePeekPointerFieldCallback :: C_TypeValueTableValuePeekPointerFieldCallback -> IO (FunPtr C_TypeValueTableValuePeekPointerFieldCallback) Source #
Generate a function pointer callable from C code, from a C_TypeValueTableValuePeekPointerFieldCallback
.
noTypeValueTableValuePeekPointerFieldCallback :: Maybe TypeValueTableValuePeekPointerFieldCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TypeValueTableValuePeekPointerFieldCallback
wrap_TypeValueTableValuePeekPointerFieldCallback :: Maybe (Ptr (FunPtr C_TypeValueTableValuePeekPointerFieldCallback)) -> TypeValueTableValuePeekPointerFieldCallback -> C_TypeValueTableValuePeekPointerFieldCallback Source #
ValueTransform
type C_ValueTransform = Ptr GValue -> Ptr GValue -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ValueTransform Source #
The type of value transformation functions which can be registered with
g_value_register_transform_func()
.
destValue
will be initialized to the correct destination type.
dynamic_ValueTransform Source #
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_ValueTransform | |
-> GValue |
|
-> GValue |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_ValueTransform :: MonadIO m => ValueTransform -> m (GClosure C_ValueTransform) Source #
Wrap the callback into a GClosure
.
mk_ValueTransform :: C_ValueTransform -> IO (FunPtr C_ValueTransform) Source #
Generate a function pointer callable from C code, from a C_ValueTransform
.
noValueTransform :: Maybe ValueTransform Source #
A convenience synonym for
.Nothing
:: Maybe
ValueTransform
wrap_ValueTransform :: Maybe (Ptr (FunPtr C_ValueTransform)) -> ValueTransform -> C_ValueTransform Source #
Wrap a ValueTransform
into a C_ValueTransform
.
WeakNotify
type C_WeakNotify = Ptr () -> Ptr Object -> IO () Source #
Type for the callback on the (unwrapped) C side.
type WeakNotify Source #
= Ptr () |
|
-> Object |
|
-> IO () |
A WeakNotify
function can be added to an object as a callback that gets
triggered when the object is finalized. Since the object is already being
finalized when the WeakNotify
is called, there's not much you could do
with the object, apart from e.g. using its address as hash-index or the like.
:: (HasCallStack, MonadIO m, IsObject a) | |
=> FunPtr C_WeakNotify | |
-> Ptr () |
|
-> a |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_WeakNotify :: MonadIO m => WeakNotify -> m (GClosure C_WeakNotify) Source #
Wrap the callback into a GClosure
.
mk_WeakNotify :: C_WeakNotify -> IO (FunPtr C_WeakNotify) Source #
Generate a function pointer callable from C code, from a C_WeakNotify
.
noWeakNotify :: Maybe WeakNotify Source #
A convenience synonym for
.Nothing
:: Maybe
WeakNotify
wrap_WeakNotify :: Maybe (Ptr (FunPtr C_WeakNotify)) -> WeakNotify -> C_WeakNotify Source #
Wrap a WeakNotify
into a C_WeakNotify
.