From f2620633c107ca01ed085868701145f4e86a9f06 Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Tue, 19 Feb 2002 17:08:11 +0000 Subject: [PATCH] added GValue documentation. Tue Feb 19 17:45:43 2002 Tim Janik * gobject/tmpl/generic_values.sgml: added GValue documentation. --- docs/reference/ChangeLog | 4 +++ .../gobject/tmpl/generic_values.sgml | 34 ++++++++++++------- 2 files changed, 26 insertions(+), 12 deletions(-) diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index eae9dfd5..5e8310e8 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,7 @@ +Tue Feb 19 17:45:43 2002 Tim Janik + + * gobject/tmpl/generic_values.sgml: added GValue documentation. + Thu Feb 7 12:07:06 2002 Tim Janik * gobject/tmpl/generic_values.sgml: document value transformation. diff --git a/docs/reference/gobject/tmpl/generic_values.sgml b/docs/reference/gobject/tmpl/generic_values.sgml index 28222d23..1a466b38 100644 --- a/docs/reference/gobject/tmpl/generic_values.sgml +++ b/docs/reference/gobject/tmpl/generic_values.sgml @@ -91,23 +91,29 @@ Returns #TRUE if @value is a valid and initialized #GValue structure. -A mostly opaque structure used to hold a #GValue object. Mostly because -the data within the structure has protected scope: it is accessible only +An opaque structure used to hold different types of values. +The data within the structure has protected scope: it is accessible only to functions within a #GTypeValueTable structure, or implementations of -the g_value_*() API. +the g_value_*() API. That is, code portions which implement new fundamental +types. +#GValue users can not make any assumptions about how data is stored +within the 2 element #GValue.data[] union, and the g_type member should +only be accessed through the G_VALUE_TYPE() macro. - +Returns the type ID of the "GValue" type which is a boxed type, +used to pass around pointers to GValues. - +Returns the type ID of the "GValueArray" type which is a boxed type, +used to pass around pointers to GValueArrays. @@ -175,12 +181,13 @@ This is an internal function introduced mainly for C marshallers. - +Returns whether a #GValue of type @src_type can be copied into +a #GValue of type @dest_type. -@src_type: -@dest_type: -@Returns: +@src_type: source type to be copied. +@dest_type: destination type for copying. +@Returns: %TRUE if g_value_copy() is possible with @src_type and @dest_type. @@ -232,10 +239,13 @@ as rcfile value or object property serialization). - +Return a newly allocated string, which describes the contents of a #GValue. +The main purpose of this function is to describe #GValue contents for debugging +output, the way in which the contents are described may change between different +GLib versions. -@value: -@Returns: +@value: #GValue which contents are to be described. +@Returns: Newly allocated string. -- 2.34.1