gi-vte-2.91.19: Vte bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Vte.Callbacks

Contents

Description

 
Synopsis

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

terminal: terminal in which the cell is.

-> CLong

column: column in which the cell is.

-> CLong

row: row in which the cell is.

-> IO Bool

Returns: True if cell has to be selected; False if otherwise.

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

terminal: terminal in which the cell is.

-> CLong

column: column in which the cell is.

-> CLong

row: row in which the cell is.

-> Ptr ()

data: user data.

-> IO Bool

Returns: True if cell has to be selected; False if otherwise.

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

terminal: terminal in which the cell is.

-> CLong

column: column in which the cell is.

-> CLong

row: row in which the cell is.

-> Ptr ()

data: user data.

-> m Bool

Returns: True if cell has to be selected; False if otherwise.

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

mk_SelectionFunc :: C_SelectionFunc -> IO (FunPtr C_SelectionFunc) Source #

Generate a function pointer callable from C code, from 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 #

Arguments

 = Terminal

terminal: the Terminal

-> Int32

pid: a GPid

-> GError

error: a GError, or Nothing

-> 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

type TerminalSpawnAsyncCallback_WithClosures Source #

Arguments

 = Terminal

terminal: the Terminal

-> Int32

pid: a GPid

-> GError

error: a GError, or Nothing

-> Ptr ()

userData: user data that was passed to vte_terminal_spawn_async

-> 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

dynamic_TerminalSpawnAsyncCallback Source #

Arguments

:: (HasCallStack, MonadIO m, IsTerminal a) 
=> FunPtr C_TerminalSpawnAsyncCallback 
-> a

terminal: the Terminal

-> Int32

pid: a GPid

-> GError

error: a GError, or Nothing

-> Ptr ()

userData: user data that was passed to vte_terminal_spawn_async

-> m () 

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