Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- newtype Hook = Hook (ManagedPtr Hook)
- newZeroHook :: MonadIO m => m Hook
- noHook :: Maybe Hook
- hookCompareIds :: (HasCallStack, MonadIO m) => Hook -> Hook -> m Int32
- hookDestroy :: (HasCallStack, MonadIO m) => HookList -> CULong -> m Bool
- hookDestroyLink :: (HasCallStack, MonadIO m) => HookList -> Hook -> m ()
- hookFree :: (HasCallStack, MonadIO m) => HookList -> Hook -> m ()
- hookInsertBefore :: (HasCallStack, MonadIO m) => HookList -> Maybe Hook -> Hook -> m ()
- hookPrepend :: (HasCallStack, MonadIO m) => HookList -> Hook -> m ()
- hookUnref :: (HasCallStack, MonadIO m) => HookList -> Hook -> m ()
- clearHookData :: MonadIO m => Hook -> m ()
- getHookData :: MonadIO m => Hook -> m (Ptr ())
- setHookData :: MonadIO m => Hook -> Ptr () -> m ()
- clearHookDestroy :: MonadIO m => Hook -> m ()
- getHookDestroy :: MonadIO m => Hook -> m (Maybe DestroyNotify)
- setHookDestroy :: MonadIO m => Hook -> FunPtr C_DestroyNotify -> m ()
- getHookFlags :: MonadIO m => Hook -> m Word32
- setHookFlags :: MonadIO m => Hook -> Word32 -> m ()
- clearHookFunc :: MonadIO m => Hook -> m ()
- getHookFunc :: MonadIO m => Hook -> m (Ptr ())
- setHookFunc :: MonadIO m => Hook -> Ptr () -> m ()
- getHookHookId :: MonadIO m => Hook -> m CULong
- setHookHookId :: MonadIO m => Hook -> CULong -> m ()
- clearHookNext :: MonadIO m => Hook -> m ()
- getHookNext :: MonadIO m => Hook -> m (Maybe Hook)
- setHookNext :: MonadIO m => Hook -> Ptr Hook -> m ()
- clearHookPrev :: MonadIO m => Hook -> m ()
- getHookPrev :: MonadIO m => Hook -> m (Maybe Hook)
- setHookPrev :: MonadIO m => Hook -> Ptr Hook -> m ()
- getHookRefCount :: MonadIO m => Hook -> m Word32
- setHookRefCount :: MonadIO m => Hook -> Word32 -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq Hook Source # | |
WrappedPtr Hook Source # | |
Defined in GI.GLib.Structs.Hook wrappedPtrCalloc :: IO (Ptr Hook) # wrappedPtrCopy :: Hook -> IO Hook # | |
tag ~ 'AttrSet => Constructible Hook tag Source # | |
Defined in GI.GLib.Structs.Hook |
Methods
Overloaded methods
compareIds
:: (HasCallStack, MonadIO m) | |
=> Hook |
|
-> Hook |
|
-> m Int32 | Returns: a value <= 0 if the id of |
Compares the ids of two Hook
elements, returning a negative value
if the second id is greater than the first.
destroy
:: (HasCallStack, MonadIO m) | |
=> HookList |
|
-> CULong |
|
-> m Bool | Returns: |
Destroys a Hook
, given its ID.
destroyLink
free
insertBefore
prepend
unref
Properties
data
data which is passed to func when this hook is invoked
clearHookData :: MonadIO m => Hook -> m () Source #
Set the value of the “data
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#data
getHookData :: MonadIO m => Hook -> m (Ptr ()) Source #
Get the value of the “data
” field.
When overloading is enabled, this is equivalent to
get
hook #data
setHookData :: MonadIO m => Hook -> Ptr () -> m () Source #
Set the value of the “data
” field.
When overloading is enabled, this is equivalent to
set
hook [ #data:=
value ]
destroy
the default finalizeHook
function of a HookList
calls
this member of the hook that is being finalized
clearHookDestroy :: MonadIO m => Hook -> m () Source #
Set the value of the “destroy
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#destroy
getHookDestroy :: MonadIO m => Hook -> m (Maybe DestroyNotify) Source #
Get the value of the “destroy
” field.
When overloading is enabled, this is equivalent to
get
hook #destroy
setHookDestroy :: MonadIO m => Hook -> FunPtr C_DestroyNotify -> m () Source #
Set the value of the “destroy
” field.
When overloading is enabled, this is equivalent to
set
hook [ #destroy:=
value ]
flags
flags which are set for this hook. See HookFlagMask
for
predefined flags
getHookFlags :: MonadIO m => Hook -> m Word32 Source #
Get the value of the “flags
” field.
When overloading is enabled, this is equivalent to
get
hook #flags
setHookFlags :: MonadIO m => Hook -> Word32 -> m () Source #
Set the value of the “flags
” field.
When overloading is enabled, this is equivalent to
set
hook [ #flags:=
value ]
func
the function to call when this hook is invoked. The possible
signatures for this function are HookFunc
and HookCheckFunc
clearHookFunc :: MonadIO m => Hook -> m () Source #
Set the value of the “func
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#func
getHookFunc :: MonadIO m => Hook -> m (Ptr ()) Source #
Get the value of the “func
” field.
When overloading is enabled, this is equivalent to
get
hook #func
setHookFunc :: MonadIO m => Hook -> Ptr () -> m () Source #
Set the value of the “func
” field.
When overloading is enabled, this is equivalent to
set
hook [ #func:=
value ]
hookId
the id of this hook, which is unique within its list
getHookHookId :: MonadIO m => Hook -> m CULong Source #
Get the value of the “hook_id
” field.
When overloading is enabled, this is equivalent to
get
hook #hookId
setHookHookId :: MonadIO m => Hook -> CULong -> m () Source #
Set the value of the “hook_id
” field.
When overloading is enabled, this is equivalent to
set
hook [ #hookId:=
value ]
next
pointer to the next hook in the list
clearHookNext :: MonadIO m => Hook -> m () Source #
Set the value of the “next
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#next
getHookNext :: MonadIO m => Hook -> m (Maybe Hook) Source #
Get the value of the “next
” field.
When overloading is enabled, this is equivalent to
get
hook #next
setHookNext :: MonadIO m => Hook -> Ptr Hook -> m () Source #
Set the value of the “next
” field.
When overloading is enabled, this is equivalent to
set
hook [ #next:=
value ]
prev
pointer to the previous hook in the list
clearHookPrev :: MonadIO m => Hook -> m () Source #
Set the value of the “prev
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#prev
getHookPrev :: MonadIO m => Hook -> m (Maybe Hook) Source #
Get the value of the “prev
” field.
When overloading is enabled, this is equivalent to
get
hook #prev
setHookPrev :: MonadIO m => Hook -> Ptr Hook -> m () Source #
Set the value of the “prev
” field.
When overloading is enabled, this is equivalent to
set
hook [ #prev:=
value ]
refCount
the reference count of this hook
getHookRefCount :: MonadIO m => Hook -> m Word32 Source #
Get the value of the “ref_count
” field.
When overloading is enabled, this is equivalent to
get
hook #refCount
setHookRefCount :: MonadIO m => Hook -> Word32 -> m () Source #
Set the value of the “ref_count
” field.
When overloading is enabled, this is equivalent to
set
hook [ #refCount:=
value ]