Signals.newv

Creates a new signal. (This is usually done in the class initializer.) See g_signal_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

signalName string

the name for the signal

itype GType

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

signalFlags GSignalFlags

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 Closure

The closure to invoke on signal emission; may be NULL. [allow-none]

accumulator GSignalAccumulator

the accumulator for this signal; may be NULL. [allow-none]

accuData void*

user data for the accumulator

cMarshaller GSignalCMarshaller

the function to translate arrays of parameter values to signal emissions into C language callback invocations or NULL. [allow-none]

returnType GType

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

paramTypes GType[]

an array of types, one for each parameter. [array length=n_params]

Return Value

Type: uint

the signal id

Meta