Package: gobject
Function g-signal-query
Lambda Listg-signal-query (signal-id) ArgumentsReturn ValueA g-signal-query structure with the signal info. Details
Returns the signal info.
Queries the signal system for in-depth information about a specific signal.
This function will return signal-specific information. If an invalid signal ID is passed in, the signal-id member is 0. Example(setq query (g-signal-query (g-signal-lookup "show" "GtkWidget"))) => #<Signal [#36] void GtkWidget.show () [RUN-FIRST]> (g-signal-query-signal-id query) => 36 (g-signal-query-signal-name query) => "show" (g-signal-query-owner-type query) => #<GTYPE :name "GtkWidget" :id 18826464> (g-signal-query-signal-flags query) => (:RUN-FIRST) (g-signal-query-return-type query) => #<GTYPE :name "void" :id 4> (g-signal-query-param-types query) => NIL (g-signal-query-signal-detail query) => NILA second example for the "drag-drop" signal of a widget: (setq query (g-signal-query (g-signal-lookup "drag-drop" "GtkWidget"))) => #<Signal [#91] gboolean GtkWidget.drag-drop (GdkDragContext, gint, gint, guint) [RUN-LAST]> (g-signal-query-signal-id query) => 91 (g-signal-query-signal-name query) => "drag-drop" (g-signal-query-owner-type query) => #<GTYPE :name "GtkWidget" :id 18826464> (g-signal-query-signal-flags query) => (:RUN-LAST) (g-signal-query-return-type query) => #<GTYPE :name "gboolean" :id 20> (g-signal-query-param-types query) => (#<GTYPE :name "GdkDragContext" :id 18798624> #<GTYPE :name "gint" :id 24> #<GTYPE :name "gint" :id 24> #<GTYPE :name "guint" :id 28>) (g-signal-query-signal-detail query) => NIL | See also |
2021-12-14