mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-02 20:16:52 +02:00
Additions.
Mon Oct 20 01:12:46 2003 Matthias Clasen <maclas@gmx.de> * gobject/tmpl/gtype.sgml: * gobject/tmpl/param_value_types.sgml: * gobject/tmpl/value_arrays.sgml: Additions. * gobject/tmpl/gboxed.sgml: * gobject/gobject-sections.txt: Remove prematurely added GStrv documentation.
This commit is contained in:
parent
702fc02f8f
commit
ad23d7bb7f
@ -1,3 +1,13 @@
|
|||||||
|
Mon Oct 20 01:12:46 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gobject/tmpl/gtype.sgml:
|
||||||
|
* gobject/tmpl/param_value_types.sgml:
|
||||||
|
* gobject/tmpl/value_arrays.sgml: Additions.
|
||||||
|
|
||||||
|
* gobject/tmpl/gboxed.sgml:
|
||||||
|
* gobject/gobject-sections.txt: Remove prematurely added
|
||||||
|
GStrv documentation.
|
||||||
|
|
||||||
Sun Oct 19 22:18:28 2003 Matthias Clasen <maclas@gmx.de>
|
Sun Oct 19 22:18:28 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gobject/Makefile.am (INCLUDES): Add $(top_builddir)/glib
|
* gobject/Makefile.am (INCLUDES): Add $(top_builddir)/glib
|
||||||
|
@ -287,8 +287,6 @@ g_pointer_type_register_static
|
|||||||
|
|
||||||
<SUBSECTION>
|
<SUBSECTION>
|
||||||
G_TYPE_GSTRING
|
G_TYPE_GSTRING
|
||||||
G_TYPE_STRV
|
|
||||||
GStrv
|
|
||||||
|
|
||||||
<SUBSECTION Standard>
|
<SUBSECTION Standard>
|
||||||
G_TYPE_IS_BOXED
|
G_TYPE_IS_BOXED
|
||||||
|
@ -82,40 +82,3 @@ The #GType for #GString.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### MACRO G_TYPE_STRV ##### -->
|
|
||||||
<para>
|
|
||||||
The #GType for a boxed type holding a %NULL-terminated array of strings.
|
|
||||||
</para>
|
|
||||||
<para>
|
|
||||||
The code fragments in the following example show the use of a property of
|
|
||||||
type #G_TYPE_STRV with g_object_class_install_property(), g_object_set()
|
|
||||||
and g_object_get().
|
|
||||||
</para>
|
|
||||||
<informalexample><programlisting>
|
|
||||||
g_object_class_install_property (object_class,
|
|
||||||
PROP_AUTHORS,
|
|
||||||
g_param_spec_boxed ("authors",
|
|
||||||
_("Authors"),
|
|
||||||
_("List of authors"),
|
|
||||||
G_TYPE_STRV,
|
|
||||||
G_PARAM_READWRITE));
|
|
||||||
|
|
||||||
|
|
||||||
gchar *authors[] = { "Owen", "Tim", NULL };
|
|
||||||
g_object_set (obj, "authors", authors, NULL);
|
|
||||||
|
|
||||||
|
|
||||||
gchar *writers[];
|
|
||||||
g_object_get (obj, "authors", &writers, NULL);
|
|
||||||
/* do something with writers */
|
|
||||||
g_strfreev (writers);
|
|
||||||
</programlisting></informalexample>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### TYPEDEF GStrv ##### -->
|
|
||||||
<para>
|
|
||||||
|
|
||||||
</para>
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -426,7 +426,10 @@ to serve as a container for values of a type.
|
|||||||
|
|
||||||
<!-- ##### MACRO G_TYPE_FROM_INSTANCE ##### -->
|
<!-- ##### MACRO G_TYPE_FROM_INSTANCE ##### -->
|
||||||
<para>
|
<para>
|
||||||
Returns the type identifier from a given @instance structure.
|
Returns the type identifier from a given @instance structure.
|
||||||
|
<para>
|
||||||
|
</para>
|
||||||
|
This macro should only be used in type implementations.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@instance: Location of a valid #GTypeInstance structure.
|
@instance: Location of a valid #GTypeInstance structure.
|
||||||
@ -435,6 +438,9 @@ Returns the type identifier from a given @instance structure.
|
|||||||
<!-- ##### MACRO G_TYPE_FROM_CLASS ##### -->
|
<!-- ##### MACRO G_TYPE_FROM_CLASS ##### -->
|
||||||
<para>
|
<para>
|
||||||
Returns the type identifier from a given @class structure.
|
Returns the type identifier from a given @class structure.
|
||||||
|
<para>
|
||||||
|
</para>
|
||||||
|
This macro should only be used in type implementations.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@g_class: Location of a valid #GTypeClass structure.
|
@g_class: Location of a valid #GTypeClass structure.
|
||||||
@ -443,6 +449,9 @@ Returns the type identifier from a given @class structure.
|
|||||||
<!-- ##### MACRO G_TYPE_FROM_INTERFACE ##### -->
|
<!-- ##### MACRO G_TYPE_FROM_INTERFACE ##### -->
|
||||||
<para>
|
<para>
|
||||||
Returns the type identifier from a given @interface structure.
|
Returns the type identifier from a given @interface structure.
|
||||||
|
<para>
|
||||||
|
</para>
|
||||||
|
This macro should only be used in type implementations.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@g_iface: Location of a valid #GTypeInterface structure.
|
@g_iface: Location of a valid #GTypeInterface structure.
|
||||||
@ -452,6 +461,9 @@ Returns the type identifier from a given @interface structure.
|
|||||||
<para>
|
<para>
|
||||||
Returns the class structure of a given @instance, casted
|
Returns the class structure of a given @instance, casted
|
||||||
to a specified anchestor type @g_type of the instance.
|
to a specified anchestor type @g_type of the instance.
|
||||||
|
<para>
|
||||||
|
</para>
|
||||||
|
This macro should only be used in type implementations.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@instance: Location of the #GTypeInstance structure.
|
@instance: Location of the #GTypeInstance structure.
|
||||||
@ -462,6 +474,9 @@ to a specified anchestor type @g_type of the instance.
|
|||||||
<!-- ##### MACRO G_TYPE_INSTANCE_GET_INTERFACE ##### -->
|
<!-- ##### MACRO G_TYPE_INSTANCE_GET_INTERFACE ##### -->
|
||||||
<para>
|
<para>
|
||||||
Returns the interface structure for interface @g_type of a given @instance.
|
Returns the interface structure for interface @g_type of a given @instance.
|
||||||
|
<para>
|
||||||
|
</para>
|
||||||
|
This macro should only be used in type implementations.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@instance: Location of the #GTypeInstance structure.
|
@instance: Location of the #GTypeInstance structure.
|
||||||
@ -475,6 +490,9 @@ Gets the private structure for a particular type.
|
|||||||
The private structure must have been registered in the
|
The private structure must have been registered in the
|
||||||
class_init function with g_type_class_add_private().
|
class_init function with g_type_class_add_private().
|
||||||
</para>
|
</para>
|
||||||
|
<para>
|
||||||
|
This macro should only be used in type implementations.
|
||||||
|
</para>
|
||||||
|
|
||||||
@instance: the instance of a type deriving from @private_type.
|
@instance: the instance of a type deriving from @private_type.
|
||||||
@g_type: the type identifying which private data to retrieve.
|
@g_type: the type identifying which private data to retrieve.
|
||||||
@ -483,65 +501,95 @@ class_init function with g_type_class_add_private().
|
|||||||
|
|
||||||
<!-- ##### MACRO G_TYPE_CHECK_INSTANCE ##### -->
|
<!-- ##### MACRO G_TYPE_CHECK_INSTANCE ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
Returns %TRUE if @instance is a valid #GTypeInstance structure,
|
||||||
|
otherwise emits a warning and returns %FALSE.
|
||||||
|
<para>
|
||||||
|
</para>
|
||||||
|
This macro should only be used in type implementations.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@instance:
|
@instance: Location of a #GTypeInstance structure.
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### MACRO G_TYPE_CHECK_INSTANCE_CAST ##### -->
|
<!-- ##### MACRO G_TYPE_CHECK_INSTANCE_CAST ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
Checks that @instance is an instance of the type identified by @g_type
|
||||||
|
and emits a warning if this is not the case. Returns @instance casted
|
||||||
|
to a pointer to @c_type.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
This macro should only be used in type implementations.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@instance:
|
@instance: Location of a #GTypeInstance structure.
|
||||||
@g_type:
|
@g_type: The type to be returned.
|
||||||
@c_type:
|
@c_type: The corresponding C type of @g_type.
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### MACRO G_TYPE_CHECK_INSTANCE_TYPE ##### -->
|
<!-- ##### MACRO G_TYPE_CHECK_INSTANCE_TYPE ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
Returns %TRUE if @instance is an instance of the type identified by @g_type.
|
||||||
|
Otherwise emits a warning and returns %FALSE.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
This macro should only be used in type implementations.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@instance:
|
@instance: Location of a #GTypeInstance structure.
|
||||||
@g_type:
|
@g_type: The type to be checked
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### MACRO G_TYPE_CHECK_CLASS_CAST ##### -->
|
<!-- ##### MACRO G_TYPE_CHECK_CLASS_CAST ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
Checks that @g_class is a class structure of the type identified by @g_type
|
||||||
|
and emits a warning if this is not the case. Returns @g_class casted
|
||||||
|
to a pointer to @c_type.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
This macro should only be used in type implementations.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@g_class:
|
@g_class: Location of a #GTypeClass structure.
|
||||||
@g_type:
|
@g_type: The type to be returned.
|
||||||
@c_type:
|
@c_type: The corresponding C type of class structure of @g_type.
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### MACRO G_TYPE_CHECK_CLASS_TYPE ##### -->
|
<!-- ##### MACRO G_TYPE_CHECK_CLASS_TYPE ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
Returns %TRUE if @g_class is a class structure of the type identified by
|
||||||
|
@g_type. Otherwise emits a warning and returns %FALSE.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
This macro should only be used in type implementations.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@g_class:
|
@g_class: Location of a #GTypeClass structure.
|
||||||
@g_type:
|
@g_type: The type to be checked.
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### MACRO G_TYPE_CHECK_VALUE ##### -->
|
<!-- ##### MACRO G_TYPE_CHECK_VALUE ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
Returns %TRUE if @value has been initialized to hold values
|
||||||
|
of a value type.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
This macro should only be used in type implementations.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@value:
|
@value: a #GValue
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### MACRO G_TYPE_CHECK_VALUE_TYPE ##### -->
|
<!-- ##### MACRO G_TYPE_CHECK_VALUE_TYPE ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
Returns %TRUE if @value has been initialized to hold values
|
||||||
|
of type @g_type.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
This macro should only be used in type implementations.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@value:
|
@value: a #GValue
|
||||||
@g_type:
|
@g_type: The type to be checked.
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### MACRO G_TYPE_FLAG_RESERVED_ID_BIT ##### -->
|
<!-- ##### MACRO G_TYPE_FLAG_RESERVED_ID_BIT ##### -->
|
||||||
@ -550,6 +598,7 @@ A bit in the type number that's supposed to be left untouched.
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_type_init ##### -->
|
<!-- ##### FUNCTION g_type_init ##### -->
|
||||||
<para>
|
<para>
|
||||||
Prior to any use of the type system, g_type_init() has to be called to initialize
|
Prior to any use of the type system, g_type_init() has to be called to initialize
|
||||||
@ -1327,7 +1376,7 @@ to avoid leaks.
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
@cache_data: data that was given when adding @cache_func
|
@cache_data: data that was given when adding @cache_func
|
||||||
@cache_func: a #GTypeClassCacheFunc
|
@cache_func: a #GTypeClassCacheFunc
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_type_class_unref_uncached ##### -->
|
<!-- ##### FUNCTION g_type_class_unref_uncached ##### -->
|
||||||
@ -1541,6 +1590,7 @@ The fundamental type for #GObject.
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### MACRO G_TYPE_RESERVED_GLIB_FIRST ##### -->
|
<!-- ##### MACRO G_TYPE_RESERVED_GLIB_FIRST ##### -->
|
||||||
<para>
|
<para>
|
||||||
First fundamental type number to create a new fundamental type id with
|
First fundamental type number to create a new fundamental type id with
|
||||||
|
@ -1062,7 +1062,7 @@ properties.
|
|||||||
|
|
||||||
<!-- ##### TYPEDEF gchararray ##### -->
|
<!-- ##### TYPEDEF gchararray ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
A C representable type name for #G_TYPE_STRING.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@ in order for it to be used as a boxed type through %G_TYPE_VALUE_ARRAY.
|
|||||||
|
|
||||||
<!-- ##### STRUCT GValueArray ##### -->
|
<!-- ##### STRUCT GValueArray ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
A #GValueArray contains an array of #GValue elements.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@n_values: number of values contained in the array
|
@n_values: number of values contained in the array
|
||||||
|
Loading…
x
Reference in New Issue
Block a user