📄 signals.sgml
字号:
</para>@instance: @detailed_signal: @c_handler: @data: <!-- ##### FUNCTION g_signal_connect_object ##### --><para></para>@instance: @detailed_signal: @c_handler: @gobject: @connect_flags: @Returns: <!-- # Unused Parameters # -->@swapped: @after: <!-- ##### ENUM GConnectFlags ##### --><para></para>@G_CONNECT_AFTER: @G_CONNECT_SWAPPED: <!-- ##### FUNCTION g_signal_connect_data ##### --><para></para>@instance: @detailed_signal: @c_handler: @data: @destroy_data: @connect_flags: @Returns: <!-- # Unused Parameters # -->@swapped: @after: <!-- ##### FUNCTION g_signal_connect_closure ##### --><para></para>@instance: @detailed_signal: @closure: @after: @Returns: <!-- # Unused Parameters # -->@signal_id: @detail: <!-- ##### FUNCTION g_signal_connect_closure_by_id ##### --><para></para>@instance: @signal_id: @detail: @closure: @after: @Returns: <!-- ##### FUNCTION g_signal_handler_block ##### --><para>g_signal_handler_block() blocks a handler of aninstance so it will not be called during any signal emissionsunless it is unblocked again. Thus "blocking" a signal handlermeans to temporarily deactive it, a signal handler has to beunblocked exactly the same amount of times it has been blockedbefore to become active again.The @handler_id passed into g_signal_handler_block() hasto be a valid signal handler id, connected to a signal of@instance.</para>@instance: The instance to block the signal handler of.@handler_id: Handler id of the handler to be blocked.<!-- ##### FUNCTION g_signal_handler_unblock ##### --><para>g_signal_handler_unblock() undoes the effect of a previousg_signal_handler_block() call. A blocked handler is skippedduring signal emissions and will not be invoked, unblockingit (for exactly the amount of times it has been blocked before)reverts its "blocked" state, so the handler will be recognizedby the signal system and is called upon future or currentlyongoing signal emissions (since the order in which handlers arecalled during signal emissions is deterministic, whether theunblocked handler in question is called as part of a currentlyongoing emission depends on how far that emission has proceededyet).The @handler_id passed into g_signal_handler_unblock() hasto be a valid id of a signal handler that is connected to asignal of @instance and is currently blocked.</para>@instance: The instance to unblock the signal handler of.@handler_id: Handler id of the handler to be unblocked.<!-- ##### FUNCTION g_signal_handler_disconnect ##### --><para>g_signal_handler_disconnect() disconnects a handler from aninstance so it will not be called during any future or currentlyongoing emissions of the signal it has been connected to.The @handler_id becomes invalid and may be reused.The @handler_id passed into g_signal_handler_disconnect() hasto be a valid signal handler id, connected to a signal of@instance.</para>@instance: The instance to remove the signal handler from.@handler_id: Handler id of the handler to be disconnected.<!-- ##### FUNCTION g_signal_handler_find ##### --><para>Find the first signal handler that matches certain selection criteria.The criteria mask is passed as an OR-ed combination of #GSignalMatchTypeflags, and the criteria values are passed as arguments.The match @mask has to be non-0 for successful matches.If no handler was found, 0 is returned.</para>@instance: The instance owning the signal handler to be found.@mask: Mask indicating which of @signal_id, @detail, @closure, @func and/or @data the handler has to match.@signal_id: Signal the handler has to be connected to.@detail: Signal detail the handler has to be connected to.@closure: The closure the handler will invoke.@func: The C closure callback of the handler (useless for non-C closures).@data: The closure data of the handler's closure.@Returns: A valid non-0 signal handler id for a successful match.<!-- ##### FUNCTION g_signal_handlers_block_matched ##### --><para>This function blocks all handlers on an instance that match a certainselection criteria. The criteria mask is passed as an OR-ed combination of#GSignalMatchType flags, and the criteria values are passed as arguments.Passing at least one of the %G_SIGNAL_MATCH_CLOSURE, %G_SIGNAL_MATCH_FUNCor %G_SIGNAL_MATCH_DATA match flags is required for successful matches.If no handlers were found, 0 is returned, the number of blocked handlersotherwise.</para>@instance: The instance to block handlers from.@mask: Mask indicating which of @signal_id, @detail, @closure, @func and/or @data the handlers have to match.@signal_id: Signal the handlers have to be connected to.@detail: Signal detail the handlers have to be connected to.@closure: The closure the handlers will invoke.@func: The C closure callback of the handlers (useless for non-C closures).@data: The closure data of the handlers' closures.@Returns: The amount of handlers that got blocked.<!-- ##### FUNCTION g_signal_handlers_unblock_matched ##### --><para>This function unblocks all handlers on an instance that match a certainselection criteria. The criteria mask is passed as an OR-ed combination of#GSignalMatchType flags, and the criteria values are passed as arguments.Passing at least one of the %G_SIGNAL_MATCH_CLOSURE, %G_SIGNAL_MATCH_FUNCor %G_SIGNAL_MATCH_DATA match flags is required for successful matches.If no handlers were found, 0 is returned, the number of unblocked handlersotherwise. The match criteria should not apply to any handlers that arenot currently blocked.</para>@instance: The instance to unblock handlers from.@mask: Mask indicating which of @signal_id, @detail, @closure, @func and/or @data the handlers have to match.@signal_id: Signal the handlers have to be connected to.@detail: Signal detail the handlers have to be connected to.@closure: The closure the handlers will invoke.@func: The C closure callback of the handlers (useless for non-C closures).@data: The closure data of the handlers' closures.@Returns: The amount of handlers that got unblocked.<!-- ##### FUNCTION g_signal_handlers_disconnect_matched ##### --><para>This function disconnects all handlers on an instance that match a certainselection criteria. The criteria mask is passed as an OR-ed combination of#GSignalMatchType flags, and the criteria values are passed as arguments.Passing at least one of the %G_SIGNAL_MATCH_CLOSURE, %G_SIGNAL_MATCH_FUNCor %G_SIGNAL_MATCH_DATA match flags is required for successful matches.If no handlers were found, 0 is returned, the number of disconnected handlersotherwise.</para>@instance: The instance to remove handlers from.@mask: Mask indicating which of @signal_id, @detail, @closure, @func and/or @data the handlers have to match.@signal_id: Signal the handlers have to be connected to.@detail: Signal detail the handlers have to be connected to.@closure: The closure the handlers will invoke.@func: The C closure callback of the handlers (useless for non-C closures).@data: The closure data of the handlers' closures.@Returns: The amount of handlers that got disconnected.<!-- ##### FUNCTION g_signal_handler_is_connected ##### --><para></para>@instance: @handler_id: @Returns: <!-- ##### MACRO g_signal_handlers_block_by_func ##### --><para></para>@instance: @func: @data: <!-- ##### MACRO g_signal_handlers_unblock_by_func ##### --><para></para>@instance: @func: @data: <!-- ##### MACRO g_signal_handlers_disconnect_by_func ##### --><para></para>@instance: @func: @data: <!-- ##### FUNCTION g_signal_has_handler_pending ##### --><para></para>@instance: @signal_id: @detail: @may_be_blocked: @Returns: <!-- ##### FUNCTION g_signal_stop_emission ##### --><para></para>@instance: @signal_id: @detail: <!-- ##### FUNCTION g_signal_stop_emission_by_name ##### --><para></para>@instance: @detailed_signal: <!-- ##### FUNCTION g_signal_override_class_closure ##### --><para></para>@signal_id: @instance_type: @class_closure: <!-- ##### FUNCTION g_signal_chain_from_overridden ##### --><para></para>@instance_and_params: @return_value: <!-- # Unused Parameters # -->@signal_id: <!-- ##### FUNCTION g_signal_add_emission_hook ##### --><para></para>@signal_id: @quark: @hook_func: @hook_data: @data_destroy: @Returns: <!-- ##### FUNCTION g_signal_remove_emission_hook ##### --><para></para>@signal_id: @hook_id: <!-- ##### FUNCTION g_signal_parse_name ##### --><para>Internal function to parse a signal names into its @signal_idand @detail quark.</para>@detailed_signal: A string of the form "signal-name::detail".@itype: The interface/instance type that introduced "signal-name".@signal_id_p: Location to store the signal id.@detail_p: Location to stroe the detail quark.@force_detail_quark: %TRUE forces creation of a GQuark for the detail.@Returns: Whether the signal name could successfully be parsed and @signal_id_p and @detail_p contain valid return values.<!-- ##### FUNCTION g_signal_get_invocation_hint ##### --><para></para>@instance: @Returns: <!-- ##### FUNCTION g_signal_handlers_destroy ##### --><para></para>@instance: <!-- ##### FUNCTION g_signal_type_cclosure_new ##### --><para></para>@itype: @struct_offset: @Returns:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -