📄 gparamspec.sgml
字号:
<row><entry align="right"><parameter>pspec</parameter> :</entry><entry></entry></row><row><entry align="right"><parameter>quark</parameter> :</entry><entry></entry></row><row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry></entry></row></tbody></tgroup></informaltable></refsect2><refsect2><title><anchor id="g-param-spec-set-qdata">g_param_spec_set_qdata ()</title><programlisting>void g_param_spec_set_qdata (<link linkend="GParamSpec">GParamSpec</link> *pspec, <link linkend="GQuark">GQuark</link> quark, <link linkend="gpointer">gpointer</link> data);</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>pspec</parameter> :</entry><entry></entry></row><row><entry align="right"><parameter>quark</parameter> :</entry><entry></entry></row><row><entry align="right"><parameter>data</parameter> :</entry><entry></entry></row></tbody></tgroup></informaltable></refsect2><refsect2><title><anchor id="g-param-spec-set-qdata-full">g_param_spec_set_qdata_full ()</title><programlisting>void g_param_spec_set_qdata_full (<link linkend="GParamSpec">GParamSpec</link> *pspec, <link linkend="GQuark">GQuark</link> quark, <link linkend="gpointer">gpointer</link> data, <link linkend="GDestroyNotify">GDestroyNotify</link> destroy);</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>pspec</parameter> :</entry><entry></entry></row><row><entry align="right"><parameter>quark</parameter> :</entry><entry></entry></row><row><entry align="right"><parameter>data</parameter> :</entry><entry></entry></row><row><entry align="right"><parameter>destroy</parameter> :</entry><entry></entry></row></tbody></tgroup></informaltable></refsect2><refsect2><title><anchor id="g-param-spec-steal-qdata">g_param_spec_steal_qdata ()</title><programlisting><link linkend="gpointer">gpointer</link> g_param_spec_steal_qdata (<link linkend="GParamSpec">GParamSpec</link> *pspec, <link linkend="GQuark">GQuark</link> quark);</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>pspec</parameter> :</entry><entry></entry></row><row><entry align="right"><parameter>quark</parameter> :</entry><entry></entry></row><row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry></entry></row></tbody></tgroup></informaltable></refsect2><refsect2><title><anchor id="g-param-spec-internal">g_param_spec_internal ()</title><programlisting><link linkend="gpointer">gpointer</link> g_param_spec_internal (<link linkend="GType">GType</link> param_type, const <link linkend="gchar">gchar</link> *name, const <link linkend="gchar">gchar</link> *nick, const <link linkend="gchar">gchar</link> *blurb, <link linkend="GParamFlags">GParamFlags</link> flags);</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>param_type</parameter> :</entry><entry></entry></row><row><entry align="right"><parameter>name</parameter> :</entry><entry></entry></row><row><entry align="right"><parameter>nick</parameter> :</entry><entry></entry></row><row><entry align="right"><parameter>blurb</parameter> :</entry><entry></entry></row><row><entry align="right"><parameter>flags</parameter> :</entry><entry></entry></row><row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry></entry></row></tbody></tgroup></informaltable></refsect2><refsect2><title><anchor id="GParamSpecTypeInfo">struct GParamSpecTypeInfo</title><programlisting>struct GParamSpecTypeInfo{ /* type system portion */ guint16 instance_size; /* obligatory */ guint16 n_preallocs; /* optional */ void (*instance_init) (GParamSpec *pspec); /* optional */ /* class portion */ GType value_type; /* obligatory */ void (*finalize) (GParamSpec *pspec); /* optional */ void (*value_set_default) (GParamSpec *pspec, /* recommended */ GValue *value); gboolean (*value_validate) (GParamSpec *pspec, /* optional */ GValue *value); gint (*values_cmp) (GParamSpec *pspec, /* recommended */ const GValue *value1, const GValue *value2);};</programlisting><para></para></refsect2><refsect2><title><anchor id="g-param-type-register-static">g_param_type_register_static ()</title><programlisting><link linkend="GType">GType</link> g_param_type_register_static (const <link linkend="gchar">gchar</link> *name, const <link linkend="GParamSpecTypeInfo">GParamSpecTypeInfo</link> *pspec_info);</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> :</entry><entry></entry></row><row><entry align="right"><parameter>pspec_info</parameter> :</entry><entry></entry></row><row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry></entry></row></tbody></tgroup></informaltable></refsect2><refsect2><title><anchor id="GParamSpecPool">struct GParamSpecPool</title><programlisting>struct GParamSpecPool;</programlisting><para></para></refsect2><refsect2><title><anchor id="g-param-spec-pool-new">g_param_spec_pool_new ()</title><programlisting><link linkend="GParamSpecPool">GParamSpecPool</link>* g_param_spec_pool_new (<link linkend="gboolean">gboolean</link> type_prefixing);</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>type_prefixing</parameter> :</entry><entry></entry></row><row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry></entry></row></tbody></tgroup></informaltable></refsect2><refsect2><title><anchor id="g-param-spec-pool-insert">g_param_spec_pool_insert ()</title><programlisting>void g_param_spec_pool_insert (<link linkend="GParamSpecPool">GParamSpecPool</link> *pool, <link linkend="GParamSpec">GParamSpec</link> *pspec, <link linkend="GType">GType</link> owner_type);</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>pool</parameter> :</entry><entry></entry></row><row><entry align="right"><parameter>pspec</parameter> :</entry><entry></entry></row><row><entry align="right"><parameter>owner_type</parameter> :</entry><entry></entry></row></tbody></tgroup></informaltable></refsect2><refsect2><title><anchor id="g-param-spec-pool-remove">g_param_spec_pool_remove ()</title><programlisting>void g_param_spec_pool_remove (<link linkend="GParamSpecPool">GParamSpecPool</link> *pool, <link linkend="GParamSpec">GParamSpec</link> *pspec);</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>pool</parameter> :</entry><entry></entry></row><row><entry align="right"><parameter>pspec</parameter> :</entry><entry></entry></row></tbody></tgroup></informaltable></refsect2><refsect2><title><anchor id="g-param-spec-pool-lookup">g_param_spec_pool_lookup ()</title><programlisting><link linkend="GParamSpec">GParamSpec</link>* g_param_spec_pool_lookup (<link linkend="GParamSpecPool">GParamSpecPool</link> *pool, const <link linkend="gchar">gchar</link> *param_name, <link linkend="GType">GType</link> owner_type, <link linkend="gboolean">gboolean</link> walk_ancestors);</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>pool</parameter> :</entry><entry></entry></row><row><entry align="right"><parameter>param_name</parameter> :</entry><entry></entry></row><row><entry align="right"><parameter>owner_type</parameter> :</entry><entry></entry></row><row><entry align="right"><parameter>walk_ancestors</parameter> :</entry><entry></entry></row><row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry></entry></row></tbody></tgroup></informaltable></refsect2><refsect2><title><anchor id="g-param-spec-pool-list">g_param_spec_pool_list ()</title><programlisting><link linkend="GParamSpec">GParamSpec</link>** g_param_spec_pool_list (<link linkend="GParamSpecPool">GParamSpecPool</link> *pool, <link linkend="GType">GType</link> owner_type, <link linkend="guint">guint</link> *n_pspecs_p);</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>pool</parameter> :</entry><entry></entry></row><row><entry align="right"><parameter>owner_type</parameter> :</entry><entry></entry></row><row><entry align="right"><parameter>n_pspecs_p</parameter> :</entry><entry></entry></row><row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry></entry></row></tbody></tgroup></informaltable></refsect2><refsect2><title><anchor id="g-param-spec-pool-list-owned">g_param_spec_pool_list_owned ()</title><programlisting><link linkend="GList">GList</link>* g_param_spec_pool_list_owned (<link linkend="GParamSpecPool">GParamSpecPool</link> *pool, <link linkend="GType">GType</link> owner_type);</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>pool</parameter> :</entry><entry></entry></row><row><entry align="right"><parameter>owner_type</parameter> :</entry><entry></entry></row><row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry></entry></row></tbody></tgroup></informaltable></refsect2></refsect1><refsect1><title>See Also</title><para><link linkend="g-object-class-install-property">g_object_class_install_property</link>(), <link linkend="g-object-set">g_object_set</link>(), <link linkend="g-object-get">g_object_get</link>(),<link linkend="g-object-set-property">g_object_set_property</link>(), <link linkend="g-object-get-property">g_object_get_property</link>(), <link linkend="g-value-register-transform-func">g_value_register_transform_func</link>()</para></refsect1></refentry>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -