Add long descriptions.

2005-05-09  Matthias Clasen  <mclasen@redhat.com>

	* gobject/tmpl/value_collection.sgml:
	* gobject/tmpl/gboxed.sgml:
	* gobject/tmpl/enumerations_flags.sgml:
	* gobject/tmpl/objects.sgml: Add long descriptions.
This commit is contained in:
Matthias Clasen 2005-05-09 05:25:21 +00:00 committed by Matthias Clasen
parent e9cc05b828
commit bc9e9efbaf
6 changed files with 44 additions and 13 deletions

View File

@ -1,3 +1,10 @@
2005-05-09 Matthias Clasen <mclasen@redhat.com>
* gobject/tmpl/value_collection.sgml:
* gobject/tmpl/gboxed.sgml:
* gobject/tmpl/enumerations_flags.sgml:
* gobject/tmpl/objects.sgml: Add long descriptions.
2005-05-05 Owen Taylor <otaylor@redhat.com> 2005-05-05 Owen Taylor <otaylor@redhat.com>
* glib/Makefile.am glib/glib-sections.txt gobject/gobject-sections.txt: * glib/Makefile.am glib/glib-sections.txt gobject/gobject-sections.txt:

View File

@ -6,11 +6,24 @@ Enumeration and flags types
<!-- ##### SECTION Long_Description ##### --> <!-- ##### SECTION Long_Description ##### -->
<para> <para>
The GLib type system provides fundamental types for enumeration and flags types. (Flags types
are like enumerations, but allow their values to be combined by bitwise or). A registered
enumeration or flags type associates a name and a nickname with each allowed value, and
the methods g_enum_get_value_by_name(), g_enum_get_value_by_nick(), g_flags_get_value_by_name()
and g_flags_get_value_by_nick() can look up values by their name or nickname.
When an enumeration or flags type is registered with the GLib type system, it can
be used as value type for object properties, using g_param_spec_enum() or
g_param_spec_flags().
</para>
<para>
GObject ships with a utility called <link linkend="glib-mkenums">glib-mkenums</link> that can
construct suitable type registration functions from C enumeration definitions.
</para> </para>
<!-- ##### SECTION See_Also ##### --> <!-- ##### SECTION See_Also ##### -->
<para> <para>
#GParamSpecEnum, #GParamSpecFlags, g_param_spec_enum(), g_param_spec_flags(),
<link linkend="glib-mkenums">glib-mkenums</link>
</para> </para>
<!-- ##### SECTION Stability_Level ##### --> <!-- ##### SECTION Stability_Level ##### -->
@ -213,9 +226,8 @@ with that nickname
Registers a new static enumeration type with the name @name. Registers a new static enumeration type with the name @name.
</para> </para>
<para> <para>
It is normally more convenient to let It is normally more convenient to let <link linkend="glib-mkenums">glib-mkenums</link>
<link linkend="glib-mkenums">glib-mkenums</link> generate a generate a my_enum_get_type() function from a usual C enumeration definition
my_enum_get_type() function from a usual C enumeration definition
than to write one yourself using g_enum_register_static(). than to write one yourself using g_enum_register_static().
</para> </para>
@ -231,9 +243,8 @@ than to write one yourself using g_enum_register_static().
Registers a new static flags type with the name @name. Registers a new static flags type with the name @name.
</para> </para>
<para> <para>
It is normally more convenient to let It is normally more convenient to let <link linkend="glib-mkenums">glib-mkenums</link>
<link linkend="glib-mkenums">glib-mkenums</link> generate a generate a my_flags_get_type() function from a usual C enumeration definition
my_flags_get_type() function from a usual C enumeration definition
than to write one yourself using g_flags_register_static(). than to write one yourself using g_flags_register_static().
</para> </para>

View File

@ -6,7 +6,14 @@ A mechanism to wrap opaque C structures registered by the type system
<!-- ##### SECTION Long_Description ##### --> <!-- ##### SECTION Long_Description ##### -->
<para> <para>
GBoxed is a generic wrapper mechanism for arbitrary C structures. The only
thing the type system needs to know about the structures is how to copy and
free them, beyond that they are treated as opaque chunks of memory.
</para>
<para>
Boxed types are useful for simple value-holder structures like rectangles or
points. They can also be used for wrapping structures defined in non-GObject
based libraries.
</para> </para>
<!-- ##### SECTION See_Also ##### --> <!-- ##### SECTION See_Also ##### -->

View File

@ -6,12 +6,15 @@ The base object type
<!-- ##### SECTION Long_Description ##### --> <!-- ##### SECTION Long_Description ##### -->
<para> <para>
GObject is the fundamental type providing the common attributes and methods for all object
types in GTK+, Pango and other libraries based on GObject. The GObject class provides methods
for object construction and destruction, property access methods, and signal support.
Signals are described in detail in <xref linkend="gobject-Signals"/>.
</para> </para>
<!-- ##### SECTION See_Also ##### --> <!-- ##### SECTION See_Also ##### -->
<para> <para>
#GParamSpecObject, g_param_spec_object()
</para> </para>
<!-- ##### SECTION Stability_Level ##### --> <!-- ##### SECTION Stability_Level ##### -->

View File

@ -6,12 +6,15 @@ Converting varargs to generic values
<!-- ##### SECTION Long_Description ##### --> <!-- ##### SECTION Long_Description ##### -->
<para> <para>
The macros in this section provide the varargs parsing support needed
in variadic GObject functions such as g_object_new() or g_object_set().
They currently support the collection of integral types, floating point
types and pointers.
</para> </para>
<!-- ##### SECTION See_Also ##### --> <!-- ##### SECTION See_Also ##### -->
<para> <para>
#GValueTable
</para> </para>
<!-- ##### SECTION Stability_Level ##### --> <!-- ##### SECTION Stability_Level ##### -->

View File

@ -17,7 +17,7 @@
<listitem><para>Generic per-object properties with set/get function pairs</para></listitem> <listitem><para>Generic per-object properties with set/get function pairs</para></listitem>
<listitem><para>Easy use of signals</para></listitem> <listitem><para>Easy use of signals</para></listitem>
</itemizedlist> </itemizedlist>
All the GTK+ objects and all of the objects in Gnome libraries which use the glib type All the GTK+ objects and all of the objects in Gnome libraries which use the GLib type
system inherit from <type><link linkend="GObject">GObject</link></type> which is why it is important to understand system inherit from <type><link linkend="GObject">GObject</link></type> which is why it is important to understand
the details of how it works. the details of how it works.
</para> </para>