signalNewv
fn
uint 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
signalName | the name for the signal |
itype | the type this signal pertains to. It will also pertain to types which are derived from this type |
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 | The closure to invoke on signal emission; may be null |
accumulator | the accumulator for this signal; may be null |
cMarshaller | the function to translate arrays of parameter values to signal emissions into C language callback invocations or null |
returnType | the type of return value, or G_TYPE_NONE for a signal without a return value |
paramTypes | an array of types, one for each parameter (may be null if n_params is zero) |
Returns
the signal id