newv


Description:

public static Signal newv (string signal_name, Type itype, SignalFlags signal_flags, Closure? class_closure, SignalAccumulator? accumulator, void* accu_data, SignalCMarshaller? c_marshaller, Type return_type, Type[]? param_types)

Creates a new signal.

(This is usually done in the class initializer.)

See @new for details on allowed signal names.

If c_marshaller is null, g_cclosure_marshal_generic will be used as the marshaller for this signal.

Parameters:

signal_name

the name for the signal

itype

the type this signal pertains to. It will also pertain to types which are derived from this type

signal_flags

a combination of SignalFlags specifying detail of when the default handler is to be invoked. You should at least specify g_signal_run_first or g_signal_run_last

class_closure

The closure to invoke on signal emission; may be null

accumulator

the accumulator for this signal; may be null

c_marshaller

the function to translate arrays of parameter values to signal emissions into C language callback invocations or null

return_type

the type of return value, or g_type_none for a signal without a return value

param_types

an array of types, one for each parameter (may be null if param_types.length is zero)

accu_data

user data for the accumulator

n_params

the length of param_types

Returns:

the signal id




2022 vala-language.org