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 |
- newtype Allocator = Allocator (ForeignPtr Allocator)
- class GObject o => AllocatorK o
- toAllocator :: AllocatorK o => o -> IO Allocator
- noAllocator :: Maybe Allocator
- data AllocatorAllocMethodInfo
- allocatorAlloc :: (MonadIO m, AllocatorK a) => a -> Word64 -> Maybe AllocationParams -> m Memory
- allocatorFind :: MonadIO m => Maybe Text -> m Allocator
- data AllocatorFreeMethodInfo
- allocatorFree :: (MonadIO m, AllocatorK a) => a -> Memory -> m ()
- allocatorRegister :: (MonadIO m, AllocatorK a) => Text -> a -> m ()
- data AllocatorSetDefaultMethodInfo
- allocatorSetDefault :: (MonadIO m, AllocatorK a) => a -> m ()
Exported types
GObject Allocator Source | |
((~) * info (ResolveAllocatorMethod t Allocator), MethodInfo * info Allocator p) => IsLabel t (Allocator -> p) Source | |
((~) * info (ResolveAllocatorMethod t Allocator), MethodInfo * info Allocator p) => IsLabelProxy t (Allocator -> p) Source | |
type ParentTypes Allocator Source | |
type AttributeList Allocator Source | |
type SignalList Allocator Source |
class GObject o => AllocatorK o Source
(GObject o, IsDescendantOf Allocator o) => AllocatorK o Source | |
toAllocator :: AllocatorK o => o -> IO Allocator Source
Methods
allocatorAlloc
data AllocatorAllocMethodInfo Source
((~) (TYPE Lifted) signature (Word64 -> Maybe AllocationParams -> m Memory), MonadIO m, AllocatorK a) => MethodInfo (TYPE Lifted) AllocatorAllocMethodInfo a signature Source | |
allocatorAlloc :: (MonadIO m, AllocatorK a) => a -> Word64 -> Maybe AllocationParams -> m Memory Source
allocatorFind
allocatorFree
data AllocatorFreeMethodInfo Source
((~) (TYPE Lifted) signature (Memory -> m ()), MonadIO m, AllocatorK a) => MethodInfo (TYPE Lifted) AllocatorFreeMethodInfo a signature Source | |
allocatorFree :: (MonadIO m, AllocatorK a) => a -> Memory -> m () Source
allocatorRegister
allocatorRegister :: (MonadIO m, AllocatorK a) => Text -> a -> m () Source
allocatorSetDefault
data AllocatorSetDefaultMethodInfo Source
((~) (TYPE Lifted) signature (m ()), MonadIO m, AllocatorK a) => MethodInfo (TYPE Lifted) AllocatorSetDefaultMethodInfo a signature Source | |
allocatorSetDefault :: (MonadIO m, AllocatorK a) => a -> m () Source