Signal
Object Hierarchy:
Description:
Namespace: GLib
Package: gobject-2.0
Content:
Static methods:
- public static Signal @new (string signal_name, Type itype, SignalFlags signal_flags, uint class_offset, SignalAccumulator? accumulator, void* accu_data, SignalCMarshaller? c_marshaller, Type return_type, uint n_params, ...)
Creates a new signal.
- public static ulong add_emission_hook (uint signal_id, Quark detail, owned SignalEmissionHook hook_func)
Adds an emission hook for a signal, which will get called for any emission of that signal, independent of the instance.
- public static void chain_from_overridden (Value[] instance_and_params, out Value return_value)
Calls the original class closure of a signal.
- public static void chain_from_overridden_handler (void* instance, ...)
Calls the original class closure of a signal.
- public static ulong connect (void* instance, string detailed_signal, Callback handler, void* data)
- public static ulong connect_after (void* instance, string detailed_signal, Callback handler, void* data)
- public static ulong connect_closure (void* instance, string detailed_signal, Closure closure, bool after)
Connects a closure to a signal for a particular object.
- public static ulong connect_closure_by_id (void* instance, uint signal_id, Quark detail, Closure closure, bool after)
Connects a closure to a signal for a particular object.
- public static ulong connect_data (void* instance, string detailed_signal, Callback handler, void* data, ClosureNotify destroy_data, ConnectFlags flags)
Connects a ObjectConstructorFunc function to a signal for a particular object.
- public static ulong connect_object (void* instance, string detailed_signal, Callback handler, Object gobject, ConnectFlags flags)
This is similar to connect_data, but uses a closure which ensures that the
gobject
stays alive during the call toc_handler
by temporarily adding a reference count togobject
. - public static ulong connect_swapped (void* instance, string detailed_signal, Callback handler, void* data)
- public static void emit (void* instance, uint signal_id, Quark detail, ...)
Emits a signal.
- public static void emit_by_name (void* instance, string detailed_signal, ...)
Emits a signal.
- public static unowned SignalInvocationHint? get_invocation_hint (void* instance)
Returns the invocation hint of the innermost signal emission of instance.
- public static bool has_handler_pending (void* instance, uint signal_id, Quark detail, bool may_be_blocked)
Returns whether there are any handlers connected to
instance
for the given signal id and detail. - public static bool is_valid_name (string name)
Validate a signal name.
- public static uint[] list_ids (Type itype)
Lists the signals by id that a certain instance or interface type created.
- public static uint lookup (string name, Type itype)
Given the name of the signal and the type of object it connects to, gets the signal's identifying integer.
- public static unowned string name (uint signal_id)
Given the signal's identifier, finds its name.
- public static Signal new_class_handler (string signal_name, Type itype, SignalFlags signal_flags, Callback? class_handler, SignalAccumulator? accumulator, void* accu_data, SignalCMarshaller? c_marshaller, Type return_type, uint n_params, ...)
Creates a new signal.
- public static Signal new_valist (string signal_name, Type itype, SignalFlags signal_flags, Closure? class_closure, SignalAccumulator? accumulator, void* accu_data, SignalCMarshaller? c_marshaller, Type return_type, uint n_params, va_list args)
Creates a new signal.
- public static Signal newv (string signal_name, Type itype, SignalFlags signal_flags, Closure? class_closure, SignalAccumulator? accumulator, void* accu_data, SignalCMarshaller? c_marshaller, Type return_type, Type[]? param_types)
Creates a new signal.
- public static void override_class_closure (uint signal_id, Type instance_type, Closure class_closure)
Overrides the class closure (i.
- public static void override_class_handler (string signal_name, Type instance_type, Callback class_handler)
Overrides the class closure (i.
- public static bool parse_name (string detailed_signal, Type itype, out uint signal_id, out Quark detail, bool force_detail_quark)
Internal function to parse a signal name into its
signal_id
anddetail
quark. - public static void query (uint signal_id, out SignalQuery query)
Queries the signal system for in-depth information about a specific signal.
- public static void remove_emission_hook (uint signal_id, ulong hook_id)
Deletes an emission hook.
- public static void stop_emission (void* instance, uint signal_id, Quark detail)
Stops a signal's current emission.
- public static void stop_emission_by_name (void* instance, string detailed_signal)
Stops a signal's current emission.
Inherited Members:
All known members inherited from struct uint