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

📄 gtkobject.sgml

📁 This GTK+ version 2.12.3. GTK+ is a multi-platform toolkit for creating graphical user interfaces.
💻 SGML
📖 第 1 页 / 共 2 页
字号:
The memory for the object itself won't be deleted untilits reference count actually drops to 0; gtk_object_destroy() merely asks reference holders to release their references, it does not free the object.</para>@object: the object to destroy.<!-- ##### FUNCTION gtk_object_get ##### --><para>Gets properties of an object. </para>@object: a #GtkObject.@first_property_name: name of first property to get the value for.@Varargs: %NULL-terminated list of name-return location pairs.@Deprecated: Use g_object_get() instead.<!-- ##### FUNCTION gtk_object_set ##### --><para>Sets properties on an object. </para><para><informalexample><programlisting>void set_box_properties (GtkBox* box){  gtk_object_set (GTK_OBJECT (box), "homogeneous", TRUE,                                    "spacing", 8,				    NULL);}</programlisting></informalexample></para>@object: a #GtkObject.@first_property_name: name of the first property to set@Varargs: the value of the first argument, followed optionallyby more name/value pairs, followed by %NULL.@Deprecated: Use g_object_set() instead.<!-- ##### FUNCTION gtk_object_set_data ##### --><para>Each object carries around a table of associations fromstrings to pointers.  This function lets you set an association.</para><para>If the object already had an association with that name,the old association will be destroyed.</para>@object: object containing the associations.@key: name of the key.@data: data to associate with that key.@Deprecated: Use g_object_set_data() instead.<!-- ##### FUNCTION gtk_object_set_data_full ##### --><para>Like gtk_object_set_data() except it adds notificationfor when the association is destroyed, either bygtk_object_remove_data() or when the object is destroyed.</para>@object: object containing the associations.@key: name of the key.@data: data to associate with that key.@destroy: function to call when the association is destroyed.@Deprecated: Use g_object_set_data_full() instead.<!-- ##### FUNCTION gtk_object_remove_data ##### --><para>Removes a specified datum from the object's data associations (the object_data).Subsequent calls to gtk_object_get_data() will return %NULL.</para><para>If you specified a destroy handler with gtk_object_set_data_full(),it will be invoked.</para>@object: the object maintaining the association.@key: name of the key for that association.@Deprecated: Use g_object_set_data() to set the object data to %NULL instead.<!-- ##### FUNCTION gtk_object_get_data ##### --><para>Get a named field from the object's table of associations (the object_data).</para>@object: the object maintaining the associations.@key: name of the key for that association.@Returns: the data if found, or %NULL if no such data exists.@Deprecated: Use g_object_get_data() instead.<!-- ##### FUNCTION gtk_object_remove_no_notify ##### --><para>Remove a specified datum from the object's data associations (the object_data),without invoking the association's destroy handler.</para><para>Just like gtk_object_remove_data() except that any destroy handlerwill be ignored.Therefore this only affects data set using gtk_object_set_data_full().</para>@object: the object maintaining the association.@key: name of the key for that association.@Deprecated: Use g_object_steal_data() instead.<!-- ##### FUNCTION gtk_object_set_user_data ##### --><para>For convenience, every object offers a generic user datapointer.  This function sets it.</para>@object: the object whose user data should be set.@data: the new value for the user data.@Deprecated: Use g_object_set_data() instead.<!-- ##### FUNCTION gtk_object_get_user_data ##### --><para>Get the object's user data pointer.</para><para>This is intended to be a pointer for your convenience inwriting applications.</para>@object: the object.@Returns: the user data field for object.@Deprecated: Use g_object_get_data() instead.<!-- ##### FUNCTION gtk_object_add_arg_type ##### --><para>Deprecated in favor of the #GObject property system including #GParamSpec.Add a new type of argument to an object class.Usually this is called when registering a new type of object.</para>@arg_name: fully qualify object name, for example GtkObject::user_data.@arg_type: type of the argument.@arg_flags: bitwise-OR of the #GtkArgFlags enum.  (Whether the argument issettable or gettable, whether it is set when the object is constructed.)@arg_id: an internal number, passed in from here to the "set_arg" and"get_arg" handlers of the object.<!-- ##### FUNCTION gtk_object_set_data_by_id ##### --><para>Just like gtk_object_set_data() except that it takesa #GQuark instead of a string, so it is slightly faster.</para><para>Use gtk_object_data_try_key() and gtk_object_data_force_id()to get an id from a string.</para>@object: object containing the associations.@data_id: quark of the key.@data: data to associate with that key.@Deprecated: Use g_object_set_qdata() instead.<!-- ##### FUNCTION gtk_object_set_data_by_id_full ##### --><para>Just like gtk_object_set_data_full() except that it takesa #GQuark instead of a string, so it is slightly faster.</para><para>Use gtk_object_data_try_key() and gtk_object_data_force_id()to get an id from a string.</para>@object: object containing the associations.@data_id: quark of the key.@data: data to associate with that key.@destroy: function to call when the association is destroyed.@Deprecated: Use g_object_set_qdata_full() instead.<!-- ##### FUNCTION gtk_object_get_data_by_id ##### --><para>Just like gtk_object_get_data() except that it takesa #GQuark instead of a string, so it is slightly faster.</para><para>Use gtk_object_data_try_key() and gtk_object_data_force_id()to get an id from a string.</para>@object: object containing the associations.@data_id: quark of the key.@Returns: the data if found, or %NULL if no such data exists.@Deprecated: Use g_object_get_qdata() instead.<!-- ##### FUNCTION gtk_object_remove_data_by_id ##### --><para>Just like gtk_object_remove_data() except that it takesa #GQuark instead of a string, so it is slightly faster.</para><para>Remove a specified datum from the object's data associations.Subsequent calls to gtk_object_get_data() will return %NULL.</para><para>Use gtk_object_data_try_key() and gtk_object_data_force_id()to get an id from a string.</para>@object: object containing the associations.@data_id: quark of the key.@Deprecated: Use g_object_set_qdata() with data of %NULL instead.<!-- ##### FUNCTION gtk_object_remove_no_notify_by_id ##### --><para>Just like gtk_object_remove_no_notify() except that it takesa #GQuark instead of a string, so it is slightly faster.</para><para>Use gtk_object_data_try_key() and gtk_object_data_force_id()to get an id from a string.</para>@object: object containing the associations.@key_id: quark of the key.@Deprecated: Use g_object_steal_qdata() instead.<!-- ##### MACRO gtk_object_data_try_key ##### --><para>Useless deprecated macro. Ignore it.</para><!-- ##### MACRO gtk_object_data_force_id ##### --><para>Useless deprecated macro. Ignore it. </para>

⌨️ 快捷键说明

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