| 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 |
GI.Vte.Callbacks
Description
Synopsis
- type C_SelectionFunc = Ptr Terminal -> CLong -> CLong -> Ptr () -> IO CInt
- type SelectionFunc = Terminal -> CLong -> CLong -> IO Bool
- type SelectionFunc_WithClosures = Terminal -> CLong -> CLong -> Ptr () -> IO Bool
- drop_closures_SelectionFunc :: SelectionFunc -> SelectionFunc_WithClosures
- dynamic_SelectionFunc :: (HasCallStack, MonadIO m, IsTerminal a) => FunPtr C_SelectionFunc -> a -> CLong -> CLong -> Ptr () -> m Bool
- genClosure_SelectionFunc :: SelectionFunc -> IO Closure
- mk_SelectionFunc :: C_SelectionFunc -> IO (FunPtr C_SelectionFunc)
- noSelectionFunc :: Maybe SelectionFunc
- noSelectionFunc_WithClosures :: Maybe SelectionFunc_WithClosures
- wrap_SelectionFunc :: Maybe (Ptr (FunPtr C_SelectionFunc)) -> SelectionFunc_WithClosures -> C_SelectionFunc
- type C_TerminalSpawnAsyncCallback = Ptr Terminal -> Int32 -> Ptr GError -> Ptr () -> IO ()
- type TerminalSpawnAsyncCallback = Terminal -> Int32 -> GError -> IO ()
- type TerminalSpawnAsyncCallback_WithClosures = Terminal -> Int32 -> GError -> Ptr () -> IO ()
- drop_closures_TerminalSpawnAsyncCallback :: TerminalSpawnAsyncCallback -> TerminalSpawnAsyncCallback_WithClosures
- dynamic_TerminalSpawnAsyncCallback :: (HasCallStack, MonadIO m, IsTerminal a) => FunPtr C_TerminalSpawnAsyncCallback -> a -> Int32 -> GError -> Ptr () -> m ()
- genClosure_TerminalSpawnAsyncCallback :: TerminalSpawnAsyncCallback -> IO Closure
- mk_TerminalSpawnAsyncCallback :: C_TerminalSpawnAsyncCallback -> IO (FunPtr C_TerminalSpawnAsyncCallback)
- noTerminalSpawnAsyncCallback :: Maybe TerminalSpawnAsyncCallback
- noTerminalSpawnAsyncCallback_WithClosures :: Maybe TerminalSpawnAsyncCallback_WithClosures
- wrap_TerminalSpawnAsyncCallback :: Maybe (Ptr (FunPtr C_TerminalSpawnAsyncCallback)) -> TerminalSpawnAsyncCallback_WithClosures -> C_TerminalSpawnAsyncCallback
Signals
SelectionFunc
type C_SelectionFunc = Ptr Terminal -> CLong -> CLong -> Ptr () -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type SelectionFunc Source #
Arguments
| = Terminal |
|
| -> CLong |
|
| -> CLong |
|
| -> IO Bool | Returns: |
Specifies the type of a selection function used to check whether a cell has to be selected or not.
type SelectionFunc_WithClosures Source #
Arguments
| = Terminal |
|
| -> CLong |
|
| -> CLong |
|
| -> Ptr () |
|
| -> IO Bool | Returns: |
Specifies the type of a selection function used to check whether a cell has to be selected or not.
drop_closures_SelectionFunc :: SelectionFunc -> SelectionFunc_WithClosures Source #
A simple wrapper that ignores the closure arguments.
dynamic_SelectionFunc Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTerminal a) | |
| => FunPtr C_SelectionFunc | |
| -> a |
|
| -> CLong |
|
| -> CLong |
|
| -> Ptr () |
|
| -> m Bool | Returns: |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_SelectionFunc :: SelectionFunc -> IO Closure Source #
Wrap the callback into a Closure.
mk_SelectionFunc :: C_SelectionFunc -> IO (FunPtr C_SelectionFunc) Source #
Generate a function pointer callable from C code, from a C_SelectionFunc.
noSelectionFunc :: Maybe SelectionFunc Source #
A convenience synonym for .Nothing :: Maybe SelectionFunc
noSelectionFunc_WithClosures :: Maybe SelectionFunc_WithClosures Source #
A convenience synonym for .Nothing :: Maybe SelectionFunc_WithClosures
wrap_SelectionFunc :: Maybe (Ptr (FunPtr C_SelectionFunc)) -> SelectionFunc_WithClosures -> C_SelectionFunc Source #
Wrap a SelectionFunc into a C_SelectionFunc.
TerminalSpawnAsyncCallback
type C_TerminalSpawnAsyncCallback = Ptr Terminal -> Int32 -> Ptr GError -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TerminalSpawnAsyncCallback Source #
Callback for vte_terminal_spawn_async().
On success, pid contains the PID of the spawned process, and error
is Nothing.
On failure, pid is -1 and error contains the error information.
Since: 0.48
type TerminalSpawnAsyncCallback_WithClosures Source #
Arguments
| = Terminal |
|
| -> Int32 |
|
| -> GError | |
| -> Ptr () |
|
| -> IO () |
Callback for vte_terminal_spawn_async().
On success, pid contains the PID of the spawned process, and error
is Nothing.
On failure, pid is -1 and error contains the error information.
Since: 0.48
drop_closures_TerminalSpawnAsyncCallback :: TerminalSpawnAsyncCallback -> TerminalSpawnAsyncCallback_WithClosures Source #
A simple wrapper that ignores the closure arguments.
dynamic_TerminalSpawnAsyncCallback Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTerminal a) | |
| => FunPtr C_TerminalSpawnAsyncCallback | |
| -> a |
|
| -> Int32 |
|
| -> GError | |
| -> Ptr () |
|
| -> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_TerminalSpawnAsyncCallback :: TerminalSpawnAsyncCallback -> IO Closure Source #
Wrap the callback into a Closure.
mk_TerminalSpawnAsyncCallback :: C_TerminalSpawnAsyncCallback -> IO (FunPtr C_TerminalSpawnAsyncCallback) Source #
Generate a function pointer callable from C code, from a C_TerminalSpawnAsyncCallback.
noTerminalSpawnAsyncCallback :: Maybe TerminalSpawnAsyncCallback Source #
A convenience synonym for .Nothing :: Maybe TerminalSpawnAsyncCallback
noTerminalSpawnAsyncCallback_WithClosures :: Maybe TerminalSpawnAsyncCallback_WithClosures Source #
A convenience synonym for .Nothing :: Maybe TerminalSpawnAsyncCallback_WithClosures