⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 signals.sgml

📁 GLib是GTK+和GNOME工程的基础底层核心程序库
💻 SGML
📖 第 1 页 / 共 5 页
字号:
</para></refsect2><refsect2><title><anchor id="G-SIGNAL-MATCH-MASK-CAPS">G_SIGNAL_MATCH_MASK</title><programlisting>#define G_SIGNAL_MATCH_MASK  0x3f</programlisting><para></para></refsect2><refsect2><title><anchor id="G-SIGNAL-FLAGS-MASK-CAPS">G_SIGNAL_FLAGS_MASK</title><programlisting>#define G_SIGNAL_FLAGS_MASK  0x7f</programlisting><para></para></refsect2><refsect2><title><anchor id="g-signal-new">g_signal_new ()</title><programlisting><link linkend="guint">guint</link>       g_signal_new                    (const <link linkend="gchar">gchar</link> *signal_name,                                             <link linkend="GType">GType</link> itype,                                             <link linkend="GSignalFlags">GSignalFlags</link> signal_flags,                                             <link linkend="guint">guint</link> class_offset,                                             <link linkend="GSignalAccumulator">GSignalAccumulator</link> accumulator,                                             <link linkend="gpointer">gpointer</link> accu_data,                                             <link linkend="GSignalCMarshaller">GSignalCMarshaller</link> c_marshaller,                                             <link linkend="GType">GType</link> return_type,                                             <link linkend="guint">guint</link> n_params,                                             ...);</programlisting><para></para><informaltable pgwide="1" frame="none" role="params"><tgroup cols="2"><colspec colwidth="2*"><colspec colwidth="8*"><tbody><row><entry align="right"><parameter>signal_name</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>itype</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>signal_flags</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>class_offset</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>accumulator</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>accu_data</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>c_marshaller</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>return_type</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>n_params</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>...</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry></entry></row></tbody></tgroup></informaltable></refsect2><refsect2><title><anchor id="g-signal-newv">g_signal_newv ()</title><programlisting><link linkend="guint">guint</link>       g_signal_newv                   (const <link linkend="gchar">gchar</link> *signal_name,                                             <link linkend="GType">GType</link> itype,                                             <link linkend="GSignalFlags">GSignalFlags</link> signal_flags,                                             <link linkend="GClosure">GClosure</link> *class_closure,                                             <link linkend="GSignalAccumulator">GSignalAccumulator</link> accumulator,                                             <link linkend="gpointer">gpointer</link> accu_data,                                             <link linkend="GSignalCMarshaller">GSignalCMarshaller</link> c_marshaller,                                             <link linkend="GType">GType</link> return_type,                                             <link linkend="guint">guint</link> n_params,                                             <link linkend="GType">GType</link> *param_types);</programlisting><para></para><informaltable pgwide="1" frame="none" role="params"><tgroup cols="2"><colspec colwidth="2*"><colspec colwidth="8*"><tbody><row><entry align="right"><parameter>signal_name</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>itype</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>signal_flags</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>class_closure</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>accumulator</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>accu_data</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>c_marshaller</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>return_type</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>n_params</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>param_types</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry></entry></row></tbody></tgroup></informaltable></refsect2><refsect2><title><anchor id="g-signal-new-valist">g_signal_new_valist ()</title><programlisting><link linkend="guint">guint</link>       g_signal_new_valist             (const <link linkend="gchar">gchar</link> *signal_name,                                             <link linkend="GType">GType</link> itype,                                             <link linkend="GSignalFlags">GSignalFlags</link> signal_flags,                                             <link linkend="GClosure">GClosure</link> *class_closure,                                             <link linkend="GSignalAccumulator">GSignalAccumulator</link> accumulator,                                             <link linkend="gpointer">gpointer</link> accu_data,                                             <link linkend="GSignalCMarshaller">GSignalCMarshaller</link> c_marshaller,                                             <link linkend="GType">GType</link> return_type,                                             <link linkend="guint">guint</link> n_params,                                             va_list args);</programlisting><para></para><informaltable pgwide="1" frame="none" role="params"><tgroup cols="2"><colspec colwidth="2*"><colspec colwidth="8*"><tbody><row><entry align="right"><parameter>signal_name</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>itype</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>signal_flags</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>class_closure</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>accumulator</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>accu_data</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>c_marshaller</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>return_type</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>n_params</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>args</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry></entry></row></tbody></tgroup></informaltable></refsect2><refsect2><title><anchor id="g-signal-query">g_signal_query ()</title><programlisting>void        g_signal_query                  (<link linkend="guint">guint</link> signal_id,                                             <link linkend="GSignalQuery">GSignalQuery</link> *query);</programlisting><para>Query the signal system for in-depth information about aspecific signal. This function will fill in a user-providedstructure to hold signal-specific information. If an invalidsignal id is passed in, the <parameter>signal_id</parameter> member of the <link linkend="GSignalQuery">GSignalQuery</link>is 0. All members filled into the <link linkend="GSignalQuery">GSignalQuery</link> structure shouldbe considered constant and have to be left untouched.</para><informaltable pgwide="1" frame="none" role="params"><tgroup cols="2"><colspec colwidth="2*"><colspec colwidth="8*"><tbody><row><entry align="right"><parameter>signal_id</parameter>&nbsp;:</entry><entry>	The signal id of the signal to query information for.</entry></row><row><entry align="right"><parameter>query</parameter>&nbsp;:</entry><entry>	A user provided structure that is filled in with constant		values upon success.</entry></row></tbody></tgroup></informaltable></refsect2><refsect2><title><anchor id="g-signal-lookup">g_signal_lookup ()</title><programlisting><link linkend="guint">guint</link>       g_signal_lookup                 (const <link linkend="gchar">gchar</link> *name,                                             <link linkend="GType">GType</link> itype);</programlisting><para></para><informaltable pgwide="1" frame="none" role="params"><tgroup cols="2"><colspec colwidth="2*"><colspec colwidth="8*"><tbody><row><entry align="right"><parameter>name</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><parameter>itype</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry></entry></row></tbody></tgroup></informaltable></refsect2><refsect2><title><anchor id="g-signal-name">g_signal_name ()</title><programlisting>G_CONST_RETURN <link linkend="gchar">gchar</link>* g_signal_name         (<link linkend="guint">guint</link> signal_id);</programlisting><para></para><informaltable pgwide="1" frame="none" role="params"><tgroup cols="2"><colspec colwidth="2*"><colspec colwidth="8*"><tbody><row><entry align="right"><parameter>signal_id</parameter>&nbsp;:</entry><entry></entry></row><row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry></entry></row></tbody></tgroup></informaltable></refsect2><refsect2><title><anchor id="g-signal-list-ids">g_signal_list_ids ()</title><programlisting><link linkend="guint">guint</link>*      g_signal_list_ids               (<link linkend="GType">GType</link> itype,                                             <link linkend="guint">guint</link> *n_ids);</programlisting><para>List the signals by id, that a certain instance or interface typecreated. Further information about the signals can be acquired through<link linkend="g-signal-query">g_signal_query</link>().</para><informaltable pgwide="1" frame="none" role="params"><tgroup cols="2"><colspec colwidth="2*"><colspec colwidth="8*"><tbody><row><entry align="right"><parameter>itype</parameter>&nbsp;:</entry>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -