signalNewv

Creates a new signal. (This is usually done in the class initializer.)

See gobject.global.signalNew for details on allowed signal names.

If c_marshaller is null, gobject.cclosure.CClosure.marshalGeneric will be used as the marshaller for this signal.

Parameters

signalName string

the name for the signal

itype gobject.types.GType

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

signalFlags gobject.types.SignalFlags

a combination of #GSignalFlags 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

classClosure gobject.closure.Closure

The closure to invoke on signal emission; may be null

accumulator gobject.types.SignalAccumulator

the accumulator for this signal; may be null

cMarshaller gobject.types.SignalCMarshaller

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

returnType gobject.types.GType

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

paramTypes gobject.types.GType[]

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

Return Value

Type: uint

the signal id