This returns information about the Gtk signal of interest, giving details such as the number and type of parameters that are passed to a signal handler function registered for an event associated with this signal; the type of the return value expected from the handler; the class for which it is defined; the flags indicating how and when handlers for this signal are invoked when an event occurs;
gtkSignalGetInfo(sig)
GtkSignalId
,
typically obtained from a call to gtkTypeGetSignals
GtkSignalId
object (sig
) used to identify the signal
in the callGtkType
object identifying the particular
type of that argument. The names are intended to give some indication
of their meaning.
Note that this list does not include the object for which the event
is generated and which is included in all signal handler calls.GtkType
object identifying
the type of the value a handler should return..GtkSignalRunType
vector. See the possible
values there. One rarely needs to understand this information to
use a signal handler function.
GtkType
identifying the Gtk class/type for which the signal
is defined.Information on Gtk is available from http://www.gtk.org.
gtkTypeGetSignals
getSignalInfo
if (gtkInit()) {
gtkButton()
sigs <- gtkTypeGetSignals("GtkButton")
gtkSignalGetInfo(sigs[["clicked"]])
}
Run the code above in your browser using DataLab