forked from AuroraMiddleware/gtk
Populated.
1999-11-10 Federico Mena Quintero <federico@redhat.com> * doc/tmpl/gdk-pixbuf-loader.sgml: Populated. * doc/gdk-pixbuf.signals: Put in the real names of signal arguments. * src/gdk-pixbuf-loader.c: Improved documentation comments.
This commit is contained in:
parent
23b50343c6
commit
cfb0266518
@ -1,22 +1,22 @@
|
|||||||
<SIGNAL>
|
<SIGNAL>
|
||||||
<NAME>GdkPixbufLoader::area-updated</NAME>
|
<NAME>GdkPixbufLoader::area-updated</NAME>
|
||||||
<RETURNS>void</RETURNS>
|
<RETURNS>void</RETURNS>
|
||||||
GdkPixbufLoader *gdkpixbufloader
|
GdkPixbufLoader *loader
|
||||||
gint arg1
|
gint x
|
||||||
gint arg2
|
gint y
|
||||||
gint arg3
|
gint width
|
||||||
gint arg4
|
gint height
|
||||||
</SIGNAL>
|
</SIGNAL>
|
||||||
|
|
||||||
<SIGNAL>
|
<SIGNAL>
|
||||||
<NAME>GdkPixbufLoader::area-prepared</NAME>
|
<NAME>GdkPixbufLoader::area-prepared</NAME>
|
||||||
<RETURNS>void</RETURNS>
|
<RETURNS>void</RETURNS>
|
||||||
GdkPixbufLoader *gdkpixbufloader
|
GdkPixbufLoader *loader
|
||||||
</SIGNAL>
|
</SIGNAL>
|
||||||
|
|
||||||
<SIGNAL>
|
<SIGNAL>
|
||||||
<NAME>GdkPixbufLoader::closed</NAME>
|
<NAME>GdkPixbufLoader::closed</NAME>
|
||||||
<RETURNS>void</RETURNS>
|
<RETURNS>void</RETURNS>
|
||||||
GdkPixbufLoader *gdkpixbufloader
|
GdkPixbufLoader *loader
|
||||||
</SIGNAL>
|
</SIGNAL>
|
||||||
|
|
||||||
|
@ -86,8 +86,7 @@ Creating a pixbuf from image data that is already in memory.
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
@data:
|
@data:
|
||||||
@Returns:
|
@Returns: <!--
|
||||||
<!--
|
|
||||||
Local variables:
|
Local variables:
|
||||||
mode: sgml
|
mode: sgml
|
||||||
sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2" "")
|
sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2" "")
|
||||||
|
@ -31,8 +31,7 @@ Loading a pixbuf from a file.
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
@filename:
|
@filename:
|
||||||
@Returns:
|
@Returns: <!--
|
||||||
<!--
|
|
||||||
Local variables:
|
Local variables:
|
||||||
mode: sgml
|
mode: sgml
|
||||||
sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2" "")
|
sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2" "")
|
||||||
|
@ -7,20 +7,23 @@ Application-driven image loading.
|
|||||||
<!-- ##### SECTION Long_Description ##### -->
|
<!-- ##### SECTION Long_Description ##### -->
|
||||||
<para>
|
<para>
|
||||||
#GdkPIxbufLoader provides a way for applications to drive the
|
#GdkPIxbufLoader provides a way for applications to drive the
|
||||||
process of loading an image.
|
process of loading an image. Applications can use this
|
||||||
|
functionality instead of gdk_pixbuf_new_from_file() when they need
|
||||||
|
to parse image data in small chunks, such as when reading it from
|
||||||
|
a network connection.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<!-- ##### SECTION See_Also ##### -->
|
<!-- ##### SECTION See_Also ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
gdk_pixbuf_new_from_file()
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<!-- ##### MACRO GDK_PIXBUF_LOADER ##### -->
|
<!-- ##### MACRO GDK_PIXBUF_LOADER ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
Casts a #GtkObject to a #GdkPixbufLoader.
|
||||||
|
</para>
|
||||||
|
|
||||||
</para>
|
@obj: A GTK+ object.
|
||||||
|
|
||||||
@obj:
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION gdk_pixbuf_loader_new ##### -->
|
<!-- ##### FUNCTION gdk_pixbuf_loader_new ##### -->
|
||||||
@ -60,29 +63,40 @@ Application-driven image loading.
|
|||||||
|
|
||||||
|
|
||||||
<!-- ##### SIGNAL GdkPixbufLoader::area-updated ##### -->
|
<!-- ##### SIGNAL GdkPixbufLoader::area-updated ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
This signal is emitted when a significant area of the image being
|
||||||
|
loaded has been updated. Normally it means that a complete
|
||||||
|
scanline has been read in, but it could be a different area as
|
||||||
|
well. Applications can use this signal to know when to repaint
|
||||||
|
areas of an image that is being loaded.
|
||||||
|
</para>
|
||||||
|
|
||||||
</para>
|
@loader: Loader which emitted the signal.
|
||||||
|
@x: X offset of upper-left corner of the updated area.
|
||||||
@gdkpixbufloader: the object which received the signal.
|
@y: Y offset of upper-left corner of the updated area.
|
||||||
@arg1:
|
@width: Width of updated area.
|
||||||
@arg2:
|
@height: Height of updated area.
|
||||||
@arg3:
|
|
||||||
@arg4:
|
|
||||||
|
|
||||||
<!-- ##### SIGNAL GdkPixbufLoader::area-prepared ##### -->
|
<!-- ##### SIGNAL GdkPixbufLoader::area-prepared ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
This signal is emitted when the pixbuf loader has been fed the
|
||||||
|
initial amount of data that is required to figure out the size and
|
||||||
|
format of the image that it will create. After this signal is
|
||||||
|
emitted, applications can call gdk_pixbuf_loader_get_pixbuf() to
|
||||||
|
fetch the partially-loaded pixbuf.
|
||||||
|
</para>
|
||||||
|
|
||||||
</para>
|
@loader: Loader which emitted the signal.
|
||||||
|
|
||||||
@gdkpixbufloader: the object which received the signal.
|
|
||||||
|
|
||||||
<!-- ##### SIGNAL GdkPixbufLoader::closed ##### -->
|
<!-- ##### SIGNAL GdkPixbufLoader::closed ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
This signal is emitted when gdk_pixbuf_loader_close() is called.
|
||||||
|
It can be used by different parts of an application to receive
|
||||||
|
notification when an image loader is closed by the code that
|
||||||
|
drives it.
|
||||||
|
</para>
|
||||||
|
|
||||||
</para>
|
@loader: Loader which emitted the signal.
|
||||||
|
|
||||||
@gdkpixbufloader: the object which received the signal.
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Local variables:
|
Local variables:
|
||||||
@ -90,3 +104,4 @@ mode: sgml
|
|||||||
sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2" "")
|
sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2" "")
|
||||||
End:
|
End:
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
@ -98,8 +98,7 @@ the image data.
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
@pixbuf:
|
@pixbuf:
|
||||||
@Returns:
|
@Returns: <!--
|
||||||
<!--
|
|
||||||
Local variables:
|
Local variables:
|
||||||
mode: sgml
|
mode: sgml
|
||||||
sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2" "")
|
sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2" "")
|
||||||
|
@ -160,6 +160,20 @@ Canvas item to display #GdkPixbuf images.
|
|||||||
this yourself if you intend to keep the pixbuf structure around.
|
this yourself if you intend to keep the pixbuf structure around.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
<!-- ##### ARG GnomeCanvasPixbuf:width ##### -->
|
||||||
|
<para>
|
||||||
|
Indicates the width the pixbuf will be scaled to. This argument
|
||||||
|
will only be used if the <link
|
||||||
|
linkend="GnomeCanvasPixbuf--width-set">width_set</link> argument
|
||||||
|
is %TRUE. If the <link
|
||||||
|
linkend="GnomeCanvasPixbuf--width-pixels">width_pixels</link>
|
||||||
|
argument is %FALSE, the width will be taken to be in canvas units,
|
||||||
|
and thus will be scaled along with the canvas item's affine
|
||||||
|
transformation. If width_pixels is %TRUE, the width will be taken
|
||||||
|
to be in pixels, and will visually remain a constant size even if
|
||||||
|
the item's affine transformation changes.
|
||||||
|
</para>
|
||||||
|
|
||||||
<!-- ##### ARG GnomeCanvasPixbuf:width_set ##### -->
|
<!-- ##### ARG GnomeCanvasPixbuf:width_set ##### -->
|
||||||
<para>
|
<para>
|
||||||
Determines whether the <link
|
Determines whether the <link
|
||||||
@ -179,18 +193,13 @@ Canvas item to display #GdkPixbuf images.
|
|||||||
transformations. The default is %FALSE.
|
transformations. The default is %FALSE.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<!-- ##### ARG GnomeCanvasPixbuf:width ##### -->
|
<!-- ##### ARG GnomeCanvasPixbuf:height ##### -->
|
||||||
<para>
|
<para>
|
||||||
Indicates the width the pixbuf will be scaled to. This argument
|
Indicates the height the pixbuf will be scaled to. This argument
|
||||||
will only be used if the <link
|
will only be used if the <link
|
||||||
linkend="GnomeCanvasPixbuf--width-set">width_set</link> argument
|
linkend="GnomeCanvasPixbuf--height-set">height_set</link> argument
|
||||||
is %TRUE. If the <link
|
is %TRUE. Works in the same way as the <link
|
||||||
linkend="GnomeCanvasPixbuf--width-pixels">width_pixels</link>
|
linkend="GnomeCanvasPixbuf--width">width</link> argument.
|
||||||
argument is %FALSE, the width will be taken to be in canvas units,
|
|
||||||
and thus will be scaled along with the canvas item's affine
|
|
||||||
transformation. If width_pixels is %TRUE, the width will be taken
|
|
||||||
to be in pixels, and will visually remain a constant size even if
|
|
||||||
the item's affine transformation changes.
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<!-- ##### ARG GnomeCanvasPixbuf:height_set ##### -->
|
<!-- ##### ARG GnomeCanvasPixbuf:height_set ##### -->
|
||||||
@ -210,13 +219,13 @@ Canvas item to display #GdkPixbuf images.
|
|||||||
argument. The default is %FALSE.
|
argument. The default is %FALSE.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<!-- ##### ARG GnomeCanvasPixbuf:height ##### -->
|
<!-- ##### ARG GnomeCanvasPixbuf:x ##### -->
|
||||||
<para>
|
<para>
|
||||||
Indicates the height the pixbuf will be scaled to. This argument
|
Indicates the horizontal translation offset of the pixbuf item's
|
||||||
will only be used if the <link
|
image. This argument will only be used if the <link
|
||||||
linkend="GnomeCanvasPixbuf--height-set">height_set</link> argument
|
linkend="GnomeCanvasPixbuf--x-set">x_set</link> argument is %TRUE.
|
||||||
is %TRUE. Works in the same way as the <link
|
This offset may not actually appear horizontal, since it will be
|
||||||
linkend="GnomeCanvasPixbuf--width">width</link> argument.
|
affected by the item's affine transformation.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<!-- ##### ARG GnomeCanvasPixbuf:x_set ##### -->
|
<!-- ##### ARG GnomeCanvasPixbuf:x_set ##### -->
|
||||||
@ -237,15 +246,21 @@ Canvas item to display #GdkPixbuf images.
|
|||||||
will change along with the item's affine transformation.
|
will change along with the item's affine transformation.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<!-- ##### ARG GnomeCanvasPixbuf:x ##### -->
|
<!-- ##### ARG GnomeCanvasPixbuf:y ##### -->
|
||||||
<para>
|
<para>
|
||||||
Indicates the horizontal translation offset of the pixbuf item's
|
Indicates the vertical translation offset of the pixbuf item's
|
||||||
image. This argument will only be used if the <link
|
image. Works in the same way as the <link
|
||||||
linkend="GnomeCanvasPixbuf--x-set">x_set</link> argument is %TRUE.
|
linkend="GnomeCanvasPixbuf--x">x</link> argument.
|
||||||
This offset may not actually appear horizontal, since it will be
|
|
||||||
affected by the item's affine transformation.
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Local variables:
|
||||||
|
mode: sgml
|
||||||
|
sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2" "")
|
||||||
|
End:
|
||||||
|
-->
|
||||||
|
|
||||||
<!-- ##### ARG GnomeCanvasPixbuf:y_set ##### -->
|
<!-- ##### ARG GnomeCanvasPixbuf:y_set ##### -->
|
||||||
<para>
|
<para>
|
||||||
Determines whether the <link
|
Determines whether the <link
|
||||||
@ -263,18 +278,3 @@ Canvas item to display #GdkPixbuf images.
|
|||||||
The default is %FALSE.
|
The default is %FALSE.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<!-- ##### ARG GnomeCanvasPixbuf:y ##### -->
|
|
||||||
<para>
|
|
||||||
Indicates the vertical translation offset of the pixbuf item's
|
|
||||||
image. Works in the same way as the <link
|
|
||||||
linkend="GnomeCanvasPixbuf--x">x</link> argument.
|
|
||||||
</para>
|
|
||||||
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Local variables:
|
|
||||||
mode: sgml
|
|
||||||
sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2" "")
|
|
||||||
End:
|
|
||||||
-->
|
|
||||||
|
|
||||||
|
@ -33,8 +33,7 @@ Functions to perform reference counting on a #GdkPixbuf.
|
|||||||
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@pixbuf:
|
@pixbuf: <!--
|
||||||
<!--
|
|
||||||
Local variables:
|
Local variables:
|
||||||
mode: sgml
|
mode: sgml
|
||||||
sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2" "")
|
sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2" "")
|
||||||
|
@ -96,8 +96,7 @@ In the future it will do full alpha compositing.
|
|||||||
@dest_y:
|
@dest_y:
|
||||||
@width:
|
@width:
|
||||||
@height:
|
@height:
|
||||||
@alpha_threshold:
|
@alpha_threshold: <!--
|
||||||
<!--
|
|
||||||
Local variables:
|
Local variables:
|
||||||
mode: sgml
|
mode: sgml
|
||||||
sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2" "")
|
sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2" "")
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
1999-11-10 Federico Mena Quintero <federico@redhat.com>
|
||||||
|
|
||||||
|
* doc/tmpl/gdk-pixbuf-loader.sgml: Populated.
|
||||||
|
|
||||||
|
* doc/gdk-pixbuf.signals: Put in the real names of signal
|
||||||
|
arguments.
|
||||||
|
|
||||||
|
* src/gdk-pixbuf-loader.c: Improved documentation comments.
|
||||||
|
|
||||||
1999-11-10 Jonathan Blandford <jrb@redhat.com>
|
1999-11-10 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
* src/gdk-pixbuf-loader.c (gdk_pixbuf_loader_close): emit the
|
* src/gdk-pixbuf-loader.c (gdk_pixbuf_loader_close): emit the
|
||||||
|
@ -295,7 +295,7 @@ gdk_pixbuf_new_from_file (const char *filename)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* gdk_pixbuf_new_from_xpm_data:
|
* gdk_pixbuf_new_from_xpm_data:
|
||||||
* @data:
|
* @data: Pointer to inline XPM data.
|
||||||
*
|
*
|
||||||
* Creates a new pixbuf by parsing XPM data in memory. This data is commonly
|
* Creates a new pixbuf by parsing XPM data in memory. This data is commonly
|
||||||
* the result of including an XPM file into a program's C source.
|
* the result of including an XPM file into a program's C source.
|
||||||
|
@ -307,15 +307,16 @@ gdk_pixbuf_loader_eat_header_write (GdkPixbufLoader *loader, const gchar *buf, s
|
|||||||
/**
|
/**
|
||||||
* gdk_pixbuf_loader_write:
|
* gdk_pixbuf_loader_write:
|
||||||
* @loader: A pixbuf loader.
|
* @loader: A pixbuf loader.
|
||||||
* @buf: The image data.
|
* @buf: Pointer to image data.
|
||||||
* @count: The length of @buf in bytes.
|
* @count: Length of the @buf buffer in bytes.
|
||||||
*
|
*
|
||||||
* This will load the next @size bytes of the image. It will return TRUE if the
|
* This will cause a pixbuf loader to parse the next @count bytes of an image.
|
||||||
* data was loaded successfully, and FALSE if an error occurred. In this case,
|
* It will return TRUE if the data was loaded successfully, and FALSE if an
|
||||||
* the loader will be closed, and will not accept further writes.
|
* error occurred. In the latter case, the loader will be closed, and will not
|
||||||
|
* accept further writes.
|
||||||
*
|
*
|
||||||
* Return value: Returns TRUE if the write was successful -- FALSE if the loader
|
* Return value: #TRUE if the write was successful, or #FALSE if the loader
|
||||||
* cannot parse the buf.
|
* cannot parse the buffer.
|
||||||
**/
|
**/
|
||||||
gboolean
|
gboolean
|
||||||
gdk_pixbuf_loader_write (GdkPixbufLoader *loader, const gchar *buf, size_t count)
|
gdk_pixbuf_loader_write (GdkPixbufLoader *loader, const gchar *buf, size_t count)
|
||||||
@ -354,14 +355,16 @@ gdk_pixbuf_loader_write (GdkPixbufLoader *loader, const gchar *buf, size_t count
|
|||||||
* gdk_pixbuf_loader_get_pixbuf:
|
* gdk_pixbuf_loader_get_pixbuf:
|
||||||
* @loader: A pixbuf loader.
|
* @loader: A pixbuf loader.
|
||||||
*
|
*
|
||||||
* Gets the GdkPixbuf that the loader is currently loading. If the loader
|
* Queries the GdkPixbuf that a pixbuf loader is currently creating. In general
|
||||||
* hasn't been enough data via gdk_pixbuf_loader_write, then NULL is returned.
|
* it only makes sense to call this function afer the "area_prepared" signal has
|
||||||
* Any application using this function should check for this value when it is
|
* been emitted by the loader; this means that enough data has been read to know
|
||||||
* used. The pixbuf returned will be the same in all future calls to the
|
* the size of the image that will be allocated. If the loader has not received
|
||||||
* loader, so simply calling a gdk_pixbuf_ref() should be sufficient to continue
|
* enough data via gdk_pixbuf_loader_write(), then this function returns NULL.
|
||||||
* using it.
|
* The returned pixbuf will be the same in all future calls to the loader, so
|
||||||
|
* simply calling gdk_pixbuf_ref() should be sufficient to continue using it.
|
||||||
*
|
*
|
||||||
* Return value: The GdkPixbuf that the loader is loading.
|
* Return value: The GdkPixbuf that the loader is creating, or NULL if not
|
||||||
|
* enough data has been read to determine how to create the image buffer.
|
||||||
**/
|
**/
|
||||||
GdkPixbuf *
|
GdkPixbuf *
|
||||||
gdk_pixbuf_loader_get_pixbuf (GdkPixbufLoader *loader)
|
gdk_pixbuf_loader_get_pixbuf (GdkPixbufLoader *loader)
|
||||||
@ -380,7 +383,8 @@ gdk_pixbuf_loader_get_pixbuf (GdkPixbufLoader *loader)
|
|||||||
* gdk_pixbuf_loader_close:
|
* gdk_pixbuf_loader_close:
|
||||||
* @loader: A pixbuf loader.
|
* @loader: A pixbuf loader.
|
||||||
*
|
*
|
||||||
* Tells the loader to stop accepting writes.
|
* Informs a pixbuf loader that no further writes with gdk_pixbuf_load_write()
|
||||||
|
* will occur, so that it can free its internal loading structures.
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
gdk_pixbuf_loader_close (GdkPixbufLoader *loader)
|
gdk_pixbuf_loader_close (GdkPixbufLoader *loader)
|
||||||
|
@ -307,15 +307,16 @@ gdk_pixbuf_loader_eat_header_write (GdkPixbufLoader *loader, const gchar *buf, s
|
|||||||
/**
|
/**
|
||||||
* gdk_pixbuf_loader_write:
|
* gdk_pixbuf_loader_write:
|
||||||
* @loader: A pixbuf loader.
|
* @loader: A pixbuf loader.
|
||||||
* @buf: The image data.
|
* @buf: Pointer to image data.
|
||||||
* @count: The length of @buf in bytes.
|
* @count: Length of the @buf buffer in bytes.
|
||||||
*
|
*
|
||||||
* This will load the next @size bytes of the image. It will return TRUE if the
|
* This will cause a pixbuf loader to parse the next @count bytes of an image.
|
||||||
* data was loaded successfully, and FALSE if an error occurred. In this case,
|
* It will return TRUE if the data was loaded successfully, and FALSE if an
|
||||||
* the loader will be closed, and will not accept further writes.
|
* error occurred. In the latter case, the loader will be closed, and will not
|
||||||
|
* accept further writes.
|
||||||
*
|
*
|
||||||
* Return value: Returns TRUE if the write was successful -- FALSE if the loader
|
* Return value: #TRUE if the write was successful, or #FALSE if the loader
|
||||||
* cannot parse the buf.
|
* cannot parse the buffer.
|
||||||
**/
|
**/
|
||||||
gboolean
|
gboolean
|
||||||
gdk_pixbuf_loader_write (GdkPixbufLoader *loader, const gchar *buf, size_t count)
|
gdk_pixbuf_loader_write (GdkPixbufLoader *loader, const gchar *buf, size_t count)
|
||||||
@ -354,14 +355,16 @@ gdk_pixbuf_loader_write (GdkPixbufLoader *loader, const gchar *buf, size_t count
|
|||||||
* gdk_pixbuf_loader_get_pixbuf:
|
* gdk_pixbuf_loader_get_pixbuf:
|
||||||
* @loader: A pixbuf loader.
|
* @loader: A pixbuf loader.
|
||||||
*
|
*
|
||||||
* Gets the GdkPixbuf that the loader is currently loading. If the loader
|
* Queries the GdkPixbuf that a pixbuf loader is currently creating. In general
|
||||||
* hasn't been enough data via gdk_pixbuf_loader_write, then NULL is returned.
|
* it only makes sense to call this function afer the "area_prepared" signal has
|
||||||
* Any application using this function should check for this value when it is
|
* been emitted by the loader; this means that enough data has been read to know
|
||||||
* used. The pixbuf returned will be the same in all future calls to the
|
* the size of the image that will be allocated. If the loader has not received
|
||||||
* loader, so simply calling a gdk_pixbuf_ref() should be sufficient to continue
|
* enough data via gdk_pixbuf_loader_write(), then this function returns NULL.
|
||||||
* using it.
|
* The returned pixbuf will be the same in all future calls to the loader, so
|
||||||
|
* simply calling gdk_pixbuf_ref() should be sufficient to continue using it.
|
||||||
*
|
*
|
||||||
* Return value: The GdkPixbuf that the loader is loading.
|
* Return value: The GdkPixbuf that the loader is creating, or NULL if not
|
||||||
|
* enough data has been read to determine how to create the image buffer.
|
||||||
**/
|
**/
|
||||||
GdkPixbuf *
|
GdkPixbuf *
|
||||||
gdk_pixbuf_loader_get_pixbuf (GdkPixbufLoader *loader)
|
gdk_pixbuf_loader_get_pixbuf (GdkPixbufLoader *loader)
|
||||||
@ -380,7 +383,8 @@ gdk_pixbuf_loader_get_pixbuf (GdkPixbufLoader *loader)
|
|||||||
* gdk_pixbuf_loader_close:
|
* gdk_pixbuf_loader_close:
|
||||||
* @loader: A pixbuf loader.
|
* @loader: A pixbuf loader.
|
||||||
*
|
*
|
||||||
* Tells the loader to stop accepting writes.
|
* Informs a pixbuf loader that no further writes with gdk_pixbuf_load_write()
|
||||||
|
* will occur, so that it can free its internal loading structures.
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
gdk_pixbuf_loader_close (GdkPixbufLoader *loader)
|
gdk_pixbuf_loader_close (GdkPixbufLoader *loader)
|
||||||
|
Loading…
Reference in New Issue
Block a user