summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2002-12-08 00:18:13 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2002-12-08 00:18:13 +0000
commit29969a908198ed1523141c2b52dd14e1b2b32ef6 (patch)
treef896d5b6d8d3d3aea53bd661bad6353c6209b7be
parentbbfec646e15a64a2bd03227b1be05519c20cc2ab (diff)
downloadgdk-pixbuf-29969a908198ed1523141c2b52dd14e1b2b32ef6.tar.gz
Add docs.
-rw-r--r--docs/reference/ChangeLog4
-rw-r--r--docs/reference/gdk-pixbuf/tmpl/module_interface.sgml49
-rw-r--r--gdk-pixbuf/ChangeLog5
-rw-r--r--gdk-pixbuf/gdk-pixbuf-animation.h4
-rw-r--r--gdk-pixbuf/gdk-pixbuf-io.h1
5 files changed, 41 insertions, 22 deletions
diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog
index 41de9d743..3ff761eb1 100644
--- a/docs/reference/ChangeLog
+++ b/docs/reference/ChangeLog
@@ -1,3 +1,7 @@
+2002-12-08 Matthias Clasen <maclas@gmx.de>
+
+ * gdk-pixbuf/tmpl/module_interface.sgml: Add docs.
+
2002-12-06 Matthias Clasen <maclas@gmx.de>
* gdk/tmpl/x_interaction.sgml:
diff --git a/docs/reference/gdk-pixbuf/tmpl/module_interface.sgml b/docs/reference/gdk-pixbuf/tmpl/module_interface.sgml
index c1404c6f4..5eb3dc627 100644
--- a/docs/reference/gdk-pixbuf/tmpl/module_interface.sgml
+++ b/docs/reference/gdk-pixbuf/tmpl/module_interface.sgml
@@ -132,25 +132,27 @@ They are not covered by the same stability guarantees as the regular
<!-- ##### STRUCT GdkPixbufFormat ##### -->
<para>
A #GdkPixbufFormat contains information about the image format accepted by a
-module. Only modules should access the fields directly.
+module. Only modules should access the fields directly, applications should
+use the <function>gdk_pixbuf_format_*</function> functions.
</para>
-@name: the name of the image format
-@signature: the signature of the module
-@domain: the message domain for the @description
-@description: a description of the image format
+@name: the name of the image format.
+@signature: the signature of the module.
+@domain: the message domain for the @description.
+@description: a description of the image format.
@mime_types: a %NULL-terminated array of MIME types for the image format.
@extensions: a %NULL-terminated array of typical filename extensions for the
image format.
-@flags:
+@flags: a combination of #GdkPixbufFormatFlags.
@Since: 2.2
<!-- ##### ENUM GdkPixbufFormatFlags ##### -->
<para>
-
+Flags which allow a module to specify further details about the supported
+operations.
</para>
-@GDK_PIXBUF_FORMAT_WRITABLE:
+@GDK_PIXBUF_FORMAT_WRITABLE: the module can write out images in the format.
@Since: 2.2
<!-- ##### STRUCT GdkPixbufModulePattern ##### -->
@@ -174,7 +176,6 @@ The signature of a module is stored as an array of
@relevance: relevance of this pattern
@Since: 2.2
-
<!-- ##### USER_FUNCTION GdkPixbufModuleFillVtableFunc ##### -->
<para>
Defines the type of the function used to set the vtable of a
@@ -185,7 +186,6 @@ Defines the type of the function used to set the vtable of a
@Since: 2.2
-
<!-- ##### USER_FUNCTION GdkPixbufModuleFillInfoFunc ##### -->
<para>
Defines the type of the function used to fill a
@@ -196,7 +196,6 @@ Defines the type of the function used to fill a
@Since: 2.2
-
<!-- ##### USER_FUNCTION GdkPixbufModuleSizeFunc ##### -->
<para>
Defines the type of the function that gets called once the size
@@ -216,7 +215,6 @@ then perform the required scaling on the completely loaded image.
@Since: 2.2
-
<!-- ##### USER_FUNCTION GdkPixbufModulePreparedFunc ##### -->
<para>
Defines the type of the function that gets called once the initial
@@ -234,7 +232,6 @@ signal.
@Since: 2.2
-
<!-- ##### USER_FUNCTION GdkPixbufModuleUpdatedFunc ##### -->
<para>
Defines the type of the function that gets called every time a region
@@ -255,7 +252,6 @@ signal.
@Since: 2.2
-
<!-- ##### STRUCT GdkPixbufModule ##### -->
<para>
A #GdkPixbufModule contains the necessary functions to load and save
@@ -280,22 +276,31 @@ is loaded and must set the function pointers of the #GdkPixbufModule.
@load_increment: continues an incremental load.
@load_animation: loads an animation from a file.
@save: saves a #GdkPixbuf to a file.
-@_reserved1:
-@_reserved2:
-@_reserved3:
-@_reserved4:
-@_reserved5:
-@_reserved6:
<!-- ##### STRUCT GdkPixbufAnimationClass ##### -->
<para>
-
+Modules supporting animations must derive a type from
+#GdkPixbufAnimation, providing suitable implementations of the
+virtual functions.
</para>
+@is_static_image: returns whether the given animation is just a static image.
+@get_static_image: returns a static image representing the given animation.
+@get_size: fills @width and @height with the frame size of the animation.
+@get_iter: returns an iterator for the given animation.
<!-- ##### STRUCT GdkPixbufAnimationIterClass ##### -->
<para>
-
+Modules supporting animations must derive a type from
+#GdkPixbufAnimationIter, providing suitable implementations of the
+virtual functions.
</para>
+@get_delay_time: returns the time in milliseconds that the current frame
+ should be shown.
+@get_pixbuf: returns the current frame.
+@on_currently_loading_frame: returns whether the current frame of @iter is
+being loaded.
+@advance: advances the iterator to @current_time, possibly changing the
+current frame.
diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog
index 5b5789519..5120a9ef2 100644
--- a/gdk-pixbuf/ChangeLog
+++ b/gdk-pixbuf/ChangeLog
@@ -1,3 +1,8 @@
+2002-12-08 Matthias Clasen <maclas@gmx.de>
+
+ * gdk-pixbuf-animation.h:
+ * gdk-pixbuf-io.h: Add /*< public|private >*/ markers.
+
Sat Dec 7 10:14:05 2002 Owen Taylor <otaylor@redhat.com>
* Makefile.am (gdk-pixbuf.loaders): Make gdk-pixbuf.loaders
diff --git a/gdk-pixbuf/gdk-pixbuf-animation.h b/gdk-pixbuf/gdk-pixbuf-animation.h
index d8091e2c8..d5f0bd14b 100644
--- a/gdk-pixbuf/gdk-pixbuf-animation.h
+++ b/gdk-pixbuf/gdk-pixbuf-animation.h
@@ -50,6 +50,8 @@ struct _GdkPixbufAnimation {
struct _GdkPixbufAnimationClass {
GObjectClass parent_class;
+ /*< public >*/
+
gboolean (*is_static_image) (GdkPixbufAnimation *anim);
GdkPixbuf* (*get_static_image) (GdkPixbufAnimation *anim);
@@ -79,6 +81,8 @@ struct _GdkPixbufAnimationIter {
struct _GdkPixbufAnimationIterClass {
GObjectClass parent_class;
+ /*< public >*/
+
int (*get_delay_time) (GdkPixbufAnimationIter *iter);
GdkPixbuf* (*get_pixbuf) (GdkPixbufAnimationIter *iter);
diff --git a/gdk-pixbuf/gdk-pixbuf-io.h b/gdk-pixbuf/gdk-pixbuf-io.h
index f5a17c073..d62669af2 100644
--- a/gdk-pixbuf/gdk-pixbuf-io.h
+++ b/gdk-pixbuf/gdk-pixbuf-io.h
@@ -95,6 +95,7 @@ struct _GdkPixbufModule {
gchar **param_values,
GError **error);
+ /*< private >*/
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);