gi-dazzle-1.0.2: libdazzle bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Dazzle.Callbacks

Description

 
Synopsis

Signals

CounterForeachFunc

type C_CounterForeachFunc = Ptr Counter -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type CounterForeachFunc Source #

Arguments

 = Counter

counter: the counter.

-> IO () 

Function prototype for callbacks provided to counterArenaForeach.

type CounterForeachFunc_WithClosures Source #

Arguments

 = Counter

counter: the counter.

-> Ptr ()

userData: data supplied to counterArenaForeach.

-> IO () 

Function prototype for callbacks provided to counterArenaForeach.

drop_closures_CounterForeachFunc :: CounterForeachFunc -> CounterForeachFunc_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_CounterForeachFunc Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FunPtr C_CounterForeachFunc 
-> Counter

counter: the counter.

-> Ptr ()

userData: data supplied to counterArenaForeach.

-> m () 

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_CounterForeachFunc :: MonadIO m => CounterForeachFunc -> m (GClosure C_CounterForeachFunc) Source #

Wrap the callback into a GClosure.

mk_CounterForeachFunc :: C_CounterForeachFunc -> IO (FunPtr C_CounterForeachFunc) Source #

Generate a function pointer callable from C code, from a C_CounterForeachFunc.

DirectoryModelVisibleFunc

type C_DirectoryModelVisibleFunc = Ptr DirectoryModel -> Ptr File -> Ptr FileInfo -> Ptr () -> IO CInt Source #

Type for the callback on the (unwrapped) C side.

type DirectoryModelVisibleFunc = DirectoryModel -> File -> FileInfo -> IO Bool Source #

No description available in the introspection data.

type DirectoryModelVisibleFunc_WithClosures = DirectoryModel -> File -> FileInfo -> Ptr () -> IO Bool Source #

No description available in the introspection data.

dynamic_DirectoryModelVisibleFunc :: (HasCallStack, MonadIO m, IsDirectoryModel a, IsFile b, IsFileInfo c) => FunPtr C_DirectoryModelVisibleFunc -> a -> b -> c -> Ptr () -> m Bool Source #

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

ListModelFilterFunc

type C_ListModelFilterFunc = Ptr Object -> Ptr () -> IO CInt Source #

Type for the callback on the (unwrapped) C side.

type ListModelFilterFunc = Object -> IO Bool Source #

No description available in the introspection data.

type ListModelFilterFunc_WithClosures = Object -> Ptr () -> IO Bool Source #

No description available in the introspection data.

drop_closures_ListModelFilterFunc :: ListModelFilterFunc -> ListModelFilterFunc_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_ListModelFilterFunc :: (HasCallStack, MonadIO m, IsObject a) => FunPtr C_ListModelFilterFunc -> a -> Ptr () -> m Bool Source #

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_ListModelFilterFunc :: MonadIO m => ListModelFilterFunc -> m (GClosure C_ListModelFilterFunc) Source #

Wrap the callback into a GClosure.

mk_ListModelFilterFunc :: C_ListModelFilterFunc -> IO (FunPtr C_ListModelFilterFunc) Source #

Generate a function pointer callable from C code, from a C_ListModelFilterFunc.

RecursiveIgnoreFunc

type C_RecursiveIgnoreFunc = Ptr File -> Ptr () -> IO CInt Source #

Type for the callback on the (unwrapped) C side.

type RecursiveIgnoreFunc = File -> IO Bool Source #

No description available in the introspection data.

type RecursiveIgnoreFunc_WithClosures = File -> Ptr () -> IO Bool Source #

No description available in the introspection data.

drop_closures_RecursiveIgnoreFunc :: RecursiveIgnoreFunc -> RecursiveIgnoreFunc_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_RecursiveIgnoreFunc :: (HasCallStack, MonadIO m, IsFile a) => FunPtr C_RecursiveIgnoreFunc -> a -> Ptr () -> m Bool Source #

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_RecursiveIgnoreFunc :: MonadIO m => RecursiveIgnoreFunc -> m (GClosure C_RecursiveIgnoreFunc) Source #

Wrap the callback into a GClosure.

mk_RecursiveIgnoreFunc :: C_RecursiveIgnoreFunc -> IO (FunPtr C_RecursiveIgnoreFunc) Source #

Generate a function pointer callable from C code, from a C_RecursiveIgnoreFunc.

ShortcutChordTableForeach

type C_ShortcutChordTableForeach = Ptr ShortcutChord -> Ptr () -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type ShortcutChordTableForeach = ShortcutChord -> Ptr () -> IO () Source #

No description available in the introspection data.

type ShortcutChordTableForeach_WithClosures = ShortcutChord -> Ptr () -> Ptr () -> IO () Source #

No description available in the introspection data.

dynamic_ShortcutChordTableForeach :: (HasCallStack, MonadIO m) => FunPtr C_ShortcutChordTableForeach -> ShortcutChord -> Ptr () -> Ptr () -> m () Source #

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

StackListCreateWidgetFunc

type C_StackListCreateWidgetFunc = Ptr Object -> Ptr () -> IO (Ptr Widget) Source #

Type for the callback on the (unwrapped) C side.

type StackListCreateWidgetFunc Source #

Arguments

 = Object

item: the item from the model for which to create a widget for

-> IO Widget

Returns: a Widget that represents item

Called for stack lists that are bound to a ListModel with stackListPush for each item that gets added to the model.

type StackListCreateWidgetFunc_WithClosures Source #

Arguments

 = Object

item: the item from the model for which to create a widget for

-> Ptr ()

userData: user data from stackListPush

-> IO Widget

Returns: a Widget that represents item

Called for stack lists that are bound to a ListModel with stackListPush for each item that gets added to the model.

dynamic_StackListCreateWidgetFunc Source #

Arguments

:: (HasCallStack, MonadIO m, IsObject a) 
=> FunPtr C_StackListCreateWidgetFunc 
-> a

item: the item from the model for which to create a widget for

-> Ptr ()

userData: user data from stackListPush

-> m Widget

Returns: a Widget that represents item

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

SuggestionPositionFunc

type C_SuggestionPositionFunc = Ptr SuggestionEntry -> Ptr Rectangle -> Ptr CInt -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type SuggestionPositionFunc Source #

Arguments

 = SuggestionEntry

entry: a SuggestionEntry

-> Rectangle

area: location to place the popover

-> Bool

isAbsolute: If the area is in absolute coordinates

-> IO Bool 

Positions the popover in the coordinates defined by area.

If isAbsolute is set to True, then absolute coordinates are used. Otherwise, the position is expected to be relative to entry.

Since: 3.26

type SuggestionPositionFunc_WithClosures Source #

Arguments

 = SuggestionEntry

entry: a SuggestionEntry

-> Rectangle

area: location to place the popover

-> Bool

isAbsolute: If the area is in absolute coordinates

-> Ptr ()

userData: closure data

-> IO Bool 

Positions the popover in the coordinates defined by area.

If isAbsolute is set to True, then absolute coordinates are used. Otherwise, the position is expected to be relative to entry.

Since: 3.26

dynamic_SuggestionPositionFunc Source #

Arguments

:: (HasCallStack, MonadIO m, IsSuggestionEntry a) 
=> FunPtr C_SuggestionPositionFunc 
-> a

entry: a SuggestionEntry

-> Rectangle

area: location to place the popover

-> Bool

isAbsolute: If the area is in absolute coordinates

-> Ptr ()

userData: closure data

-> m Bool 

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_SuggestionPositionFunc :: MonadIO m => SuggestionPositionFunc -> m (GClosure C_SuggestionPositionFunc) Source #

Wrap the callback into a GClosure.

TaskCacheCallback

type C_TaskCacheCallback = Ptr TaskCache -> Ptr () -> Ptr Task -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type TaskCacheCallback Source #

Arguments

 = TaskCache

self: An TaskCache.

-> Ptr ()

key: the key to fetch

-> Task

task: the task to be completed

-> IO () 

TaskCacheCallback is the prototype for a function to be executed to populate an item in the cache.

This function will be executed when a fault (cache miss) occurs from a caller requesting an item from the cache.

The callee may complete the operation asynchronously, but MUST return either a GObject using taskReturnPointer or a GError using taskReturnError or g_task_return_new_error().

type TaskCacheCallback_WithClosures Source #

Arguments

 = TaskCache

self: An TaskCache.

-> Ptr ()

key: the key to fetch

-> Task

task: the task to be completed

-> Ptr ()

userData: user_data registered at initialization.

-> IO () 

TaskCacheCallback is the prototype for a function to be executed to populate an item in the cache.

This function will be executed when a fault (cache miss) occurs from a caller requesting an item from the cache.

The callee may complete the operation asynchronously, but MUST return either a GObject using taskReturnPointer or a GError using taskReturnError or g_task_return_new_error().

drop_closures_TaskCacheCallback :: TaskCacheCallback -> TaskCacheCallback_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_TaskCacheCallback Source #

Arguments

:: (HasCallStack, MonadIO m, IsTaskCache a, IsTask b) 
=> FunPtr C_TaskCacheCallback 
-> a

self: An TaskCache.

-> Ptr ()

key: the key to fetch

-> b

task: the task to be completed

-> Ptr ()

userData: user_data registered at initialization.

-> m () 

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_TaskCacheCallback :: MonadIO m => TaskCacheCallback -> m (GClosure C_TaskCacheCallback) Source #

Wrap the callback into a GClosure.

mk_TaskCacheCallback :: C_TaskCacheCallback -> IO (FunPtr C_TaskCacheCallback) Source #

Generate a function pointer callable from C code, from a C_TaskCacheCallback.

TreeFilterFunc

type C_TreeFilterFunc = Ptr Tree -> Ptr TreeNode -> Ptr () -> IO CInt Source #

Type for the callback on the (unwrapped) C side.

type TreeFilterFunc Source #

Arguments

 = Tree 
-> TreeNode 
-> IO Bool

Returns: True if node should be visible.

Callback to check if node should be visible.

type TreeFilterFunc_WithClosures Source #

Arguments

 = Tree 
-> TreeNode 
-> Ptr () 
-> IO Bool

Returns: True if node should be visible.

Callback to check if node should be visible.

drop_closures_TreeFilterFunc :: TreeFilterFunc -> TreeFilterFunc_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_TreeFilterFunc Source #

Arguments

:: (HasCallStack, MonadIO m, IsTree a, IsTreeNode b) 
=> FunPtr C_TreeFilterFunc 
-> a 
-> b 
-> Ptr () 
-> m Bool

Returns: True if node should be visible.

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_TreeFilterFunc :: MonadIO m => TreeFilterFunc -> m (GClosure C_TreeFilterFunc) Source #

Wrap the callback into a GClosure.

mk_TreeFilterFunc :: C_TreeFilterFunc -> IO (FunPtr C_TreeFilterFunc) Source #

Generate a function pointer callable from C code, from a C_TreeFilterFunc.

TreeFindFunc

type C_TreeFindFunc = Ptr Tree -> Ptr TreeNode -> Ptr TreeNode -> Ptr () -> IO CInt Source #

Type for the callback on the (unwrapped) C side.

type TreeFindFunc Source #

Arguments

 = Tree 
-> TreeNode 
-> TreeNode 
-> IO Bool

Returns: True if child matched

Callback to check child, a child of node, matches a lookup request. Returns True if child matches, False if not.

type TreeFindFunc_WithClosures Source #

Arguments

 = Tree 
-> TreeNode 
-> TreeNode 
-> Ptr () 
-> IO Bool

Returns: True if child matched

Callback to check child, a child of node, matches a lookup request. Returns True if child matches, False if not.

drop_closures_TreeFindFunc :: TreeFindFunc -> TreeFindFunc_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_TreeFindFunc Source #

Arguments

:: (HasCallStack, MonadIO m, IsTree a, IsTreeNode b, IsTreeNode c) 
=> FunPtr C_TreeFindFunc 
-> a 
-> b 
-> c 
-> Ptr () 
-> m Bool

Returns: True if child matched

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_TreeFindFunc :: MonadIO m => TreeFindFunc -> m (GClosure C_TreeFindFunc) Source #

Wrap the callback into a GClosure.

mk_TreeFindFunc :: C_TreeFindFunc -> IO (FunPtr C_TreeFindFunc) Source #

Generate a function pointer callable from C code, from a C_TreeFindFunc.

TreeNodeCompareFunc

type C_TreeNodeCompareFunc = Ptr TreeNode -> Ptr TreeNode -> Ptr () -> IO Int32 Source #

Type for the callback on the (unwrapped) C side.

type TreeNodeCompareFunc = TreeNode -> TreeNode -> IO Int32 Source #

No description available in the introspection data.

type TreeNodeCompareFunc_WithClosures = TreeNode -> TreeNode -> Ptr () -> IO Int32 Source #

No description available in the introspection data.

drop_closures_TreeNodeCompareFunc :: TreeNodeCompareFunc -> TreeNodeCompareFunc_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_TreeNodeCompareFunc :: (HasCallStack, MonadIO m, IsTreeNode a, IsTreeNode b) => FunPtr C_TreeNodeCompareFunc -> a -> b -> Ptr () -> m Int32 Source #

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_TreeNodeCompareFunc :: MonadIO m => TreeNodeCompareFunc -> m (GClosure C_TreeNodeCompareFunc) Source #

Wrap the callback into a GClosure.

mk_TreeNodeCompareFunc :: C_TreeNodeCompareFunc -> IO (FunPtr C_TreeNodeCompareFunc) Source #

Generate a function pointer callable from C code, from a C_TreeNodeCompareFunc.

TrieTraverseFunc

type C_TrieTraverseFunc = Ptr Trie -> CString -> Ptr () -> Ptr () -> IO CInt Source #

Type for the callback on the (unwrapped) C side.

type TrieTraverseFunc = Trie -> Text -> Ptr () -> IO Bool Source #

No description available in the introspection data.

type TrieTraverseFunc_WithClosures = Trie -> Text -> Ptr () -> Ptr () -> IO Bool Source #

No description available in the introspection data.

drop_closures_TrieTraverseFunc :: TrieTraverseFunc -> TrieTraverseFunc_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_TrieTraverseFunc :: (HasCallStack, MonadIO m) => FunPtr C_TrieTraverseFunc -> Trie -> Text -> Ptr () -> Ptr () -> m Bool Source #

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_TrieTraverseFunc :: MonadIO m => TrieTraverseFunc -> m (GClosure C_TrieTraverseFunc) Source #

Wrap the callback into a GClosure.

mk_TrieTraverseFunc :: C_TrieTraverseFunc -> IO (FunPtr C_TrieTraverseFunc) Source #

Generate a function pointer callable from C code, from a C_TrieTraverseFunc.