signalNewv

fnuint signalNewv(string signalName, gobject.types.GType itype, gobject.types.SignalFlags signalFlags, gobject.closure.Closure classClosure, gobject.types.SignalAccumulator accumulator, gobject.types.SignalCMarshaller cMarshaller, gobject.types.GType returnType, gobject.types.GType[] paramTypes = null)

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

signalNamethe name for the signal
itypethe type this signal pertains to. It will also pertain to types which are derived from this type
signalFlagsa 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
classClosureThe closure to invoke on signal emission; may be null
accumulatorthe accumulator for this signal; may be null
cMarshallerthe function to translate arrays of parameter values to signal emissions into C language callback invocations or null
returnTypethe type of return value, or G_TYPE_NONE for a signal without a return value
paramTypesan array of types, one for each parameter (may be null if n_params is zero)

Returns

the signal id