gi-glib
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.GLib.Structs.HookList

Description

The HookList struct represents a list of hook functions.

Synopsis

Exported types

newtype HookList Source #

Memory-managed wrapper type.

Constructors

HookList (ManagedPtr HookList) 

Instances

Instances details
Eq HookList Source # 
Instance details

Defined in GI.GLib.Structs.HookList

BoxedPtr HookList Source # 
Instance details

Defined in GI.GLib.Structs.HookList

CallocPtr HookList Source # 
Instance details

Defined in GI.GLib.Structs.HookList

ManagedPtrNewtype HookList Source # 
Instance details

Defined in GI.GLib.Structs.HookList

tag ~ 'AttrSet => Constructible HookList tag Source # 
Instance details

Defined in GI.GLib.Structs.HookList

Methods

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

HasAttributeList HookList Source # 
Instance details

Defined in GI.GLib.Structs.HookList

(signature ~ m (), MonadIO m) => OverloadedMethod HookListClearMethodInfo HookList signature Source # 
Instance details

Defined in GI.GLib.Structs.HookList

Methods

overloadedMethod :: HookList -> signature #

(signature ~ (Word32 -> m ()), MonadIO m) => OverloadedMethod HookListInitMethodInfo HookList signature Source # 
Instance details

Defined in GI.GLib.Structs.HookList

Methods

overloadedMethod :: HookList -> signature #

(signature ~ (Bool -> m ()), MonadIO m) => OverloadedMethod HookListInvokeCheckMethodInfo HookList signature Source # 
Instance details

Defined in GI.GLib.Structs.HookList

Methods

overloadedMethod :: HookList -> signature #

(signature ~ (Bool -> m ()), MonadIO m) => OverloadedMethod HookListInvokeMethodInfo HookList signature Source # 
Instance details

Defined in GI.GLib.Structs.HookList

Methods

overloadedMethod :: HookList -> signature #

(signature ~ (Bool -> HookCheckMarshaller -> m ()), MonadIO m) => OverloadedMethod HookListMarshalCheckMethodInfo HookList signature Source # 
Instance details

Defined in GI.GLib.Structs.HookList

Methods

overloadedMethod :: HookList -> signature #

(signature ~ (Bool -> HookMarshaller -> m ()), MonadIO m) => OverloadedMethod HookListMarshalMethodInfo HookList signature Source # 
Instance details

Defined in GI.GLib.Structs.HookList

Methods

overloadedMethod :: HookList -> signature #

OverloadedMethodInfo HookListClearMethodInfo HookList Source # 
Instance details

Defined in GI.GLib.Structs.HookList

OverloadedMethodInfo HookListInitMethodInfo HookList Source # 
Instance details

Defined in GI.GLib.Structs.HookList

OverloadedMethodInfo HookListInvokeCheckMethodInfo HookList Source # 
Instance details

Defined in GI.GLib.Structs.HookList

OverloadedMethodInfo HookListInvokeMethodInfo HookList Source # 
Instance details

Defined in GI.GLib.Structs.HookList

OverloadedMethodInfo HookListMarshalCheckMethodInfo HookList Source # 
Instance details

Defined in GI.GLib.Structs.HookList

OverloadedMethodInfo HookListMarshalMethodInfo HookList Source # 
Instance details

Defined in GI.GLib.Structs.HookList

(info ~ ResolveHookListMethod t HookList, OverloadedMethod info HookList p, HasField t HookList p) => HasField (t :: Symbol) HookList (p :: Type) Source # 
Instance details

Defined in GI.GLib.Structs.HookList

Methods

getField :: HookList -> p #

(info ~ ResolveHookListMethod t HookList, OverloadedMethodInfo info HookList) => IsLabel t (MethodProxy info HookList) Source # 
Instance details

Defined in GI.GLib.Structs.HookList

(info ~ ResolveHookListMethod t HookList, OverloadedMethod info HookList p) => IsLabel t (HookList -> p) Source # 
Instance details

Defined in GI.GLib.Structs.HookList

Methods

fromLabel :: HookList -> p #

type AttributeList HookList Source # 
Instance details

Defined in GI.GLib.Structs.HookList

newZeroHookList :: MonadIO m => m HookList Source #

Construct a HookList struct initialized to zero.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

clear, init, invoke, invokeCheck, marshal, marshalCheck.

Getters

None.

Setters

None.

clear

hookListClear Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> HookList

hookList: a HookList

-> m () 

Removes all the Hook elements from a HookList.

init

data HookListInitMethodInfo Source #

Instances

Instances details
(signature ~ (Word32 -> m ()), MonadIO m) => OverloadedMethod HookListInitMethodInfo HookList signature Source # 
Instance details

Defined in GI.GLib.Structs.HookList

Methods

overloadedMethod :: HookList -> signature #

OverloadedMethodInfo HookListInitMethodInfo HookList Source # 
Instance details

Defined in GI.GLib.Structs.HookList

hookListInit Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> HookList

hookList: a HookList

-> Word32

hookSize: the size of each element in the HookList, typically sizeof (GHook).

-> m () 

Initializes a HookList. This must be called before the HookList is used.

invoke

hookListInvoke Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> HookList

hookList: a HookList

-> Bool

mayRecurse: True if functions which are already running (e.g. in another thread) can be called. If set to False, these are skipped

-> m () 

Calls all of the Hook functions in a HookList.

invokeCheck

hookListInvokeCheck Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> HookList

hookList: a HookList

-> Bool

mayRecurse: True if functions which are already running (e.g. in another thread) can be called. If set to False, these are skipped

-> m () 

Calls all of the Hook functions in a HookList. Any function which returns False is removed from the HookList.

marshal

hookListMarshal Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> HookList

hookList: a HookList

-> Bool

mayRecurse: True if hooks which are currently running (e.g. in another thread) are considered valid. If set to False, these are skipped

-> HookMarshaller

marshaller: the function to call for each Hook

-> m () 

Calls a function on each valid Hook.

marshalCheck

hookListMarshalCheck Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> HookList

hookList: a HookList

-> Bool

mayRecurse: True if hooks which are currently running (e.g. in another thread) are considered valid. If set to False, these are skipped

-> HookCheckMarshaller

marshaller: the function to call for each Hook

-> m () 

Calls a function on each valid Hook and destroys it if the function returns False.

Properties

dummy3

unused

clearHookListDummy3 :: MonadIO m => HookList -> m () Source #

Set the value of the “dummy3” field to Nothing. When overloading is enabled, this is equivalent to

clear #dummy3

getHookListDummy3 :: MonadIO m => HookList -> m (Ptr ()) Source #

Get the value of the “dummy3” field. When overloading is enabled, this is equivalent to

get hookList #dummy3

setHookListDummy3 :: MonadIO m => HookList -> Ptr () -> m () Source #

Set the value of the “dummy3” field. When overloading is enabled, this is equivalent to

set hookList [ #dummy3 := value ]

finalizeHook

the function to call to finalize a Hook element. The default behaviour is to call the hooks destroy function

clearHookListFinalizeHook :: MonadIO m => HookList -> m () Source #

Set the value of the “finalize_hook” field to Nothing. When overloading is enabled, this is equivalent to

clear #finalizeHook

getHookListFinalizeHook :: MonadIO m => HookList -> m (Maybe HookFinalizeFunc) Source #

Get the value of the “finalize_hook” field. When overloading is enabled, this is equivalent to

get hookList #finalizeHook

setHookListFinalizeHook :: MonadIO m => HookList -> FunPtr C_HookFinalizeFunc -> m () Source #

Set the value of the “finalize_hook” field. When overloading is enabled, this is equivalent to

set hookList [ #finalizeHook := value ]

hookSize

the size of the HookList elements, in bytes

getHookListHookSize :: MonadIO m => HookList -> m Word32 Source #

Get the value of the “hook_size” field. When overloading is enabled, this is equivalent to

get hookList #hookSize

setHookListHookSize :: MonadIO m => HookList -> Word32 -> m () Source #

Set the value of the “hook_size” field. When overloading is enabled, this is equivalent to

set hookList [ #hookSize := value ]

hooks

the first Hook element in the list

clearHookListHooks :: MonadIO m => HookList -> m () Source #

Set the value of the “hooks” field to Nothing. When overloading is enabled, this is equivalent to

clear #hooks

getHookListHooks :: MonadIO m => HookList -> m (Maybe Hook) Source #

Get the value of the “hooks” field. When overloading is enabled, this is equivalent to

get hookList #hooks

setHookListHooks :: MonadIO m => HookList -> Ptr Hook -> m () Source #

Set the value of the “hooks” field. When overloading is enabled, this is equivalent to

set hookList [ #hooks := value ]

isSetup

1 if the HookList has been initialized

getHookListIsSetup :: MonadIO m => HookList -> m Word32 Source #

Get the value of the “is_setup” field. When overloading is enabled, this is equivalent to

get hookList #isSetup

setHookListIsSetup :: MonadIO m => HookList -> Word32 -> m () Source #

Set the value of the “is_setup” field. When overloading is enabled, this is equivalent to

set hookList [ #isSetup := value ]

seqId

the next free Hook id

getHookListSeqId :: MonadIO m => HookList -> m CULong Source #

Get the value of the “seq_id” field. When overloading is enabled, this is equivalent to

get hookList #seqId

setHookListSeqId :: MonadIO m => HookList -> CULong -> m () Source #

Set the value of the “seq_id” field. When overloading is enabled, this is equivalent to

set hookList [ #seqId := value ]