mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-20 10:20:09 +00:00
bb8a563730
2000-01-21 Federico Mena Quintero <federico@helixcode.com> * gdk-pixbuf/gdk-pixbuf.c (gdk_pixbuf_ref): Return the same pixbuf as the input parameter. * gdk-pixbuf/gdk-pixbuf-animation.c (gdk_pixbuf_animation_ref): Return the same animation as the input parameter.
45 lines
1.0 KiB
Plaintext
45 lines
1.0 KiB
Plaintext
<!-- ##### SECTION Title ##### -->
|
|
Reference Counting
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
Functions to perform reference counting on a #GdkPixbuf.
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
<para>
|
|
#GdkPixbuf structures are reference counted. This means that
|
|
an application can share a single pixbuf among many parts of the
|
|
code. When a piece of the program needs to keep a pointer to a
|
|
pixbuf, it should add a reference to it. When it no longer needs
|
|
the pixbuf, it should subtract a reference. The pixbuf will be
|
|
destroyed when its reference count drops to zero. Newly-created
|
|
#GdkPixbuf structures start with a reference count of one.
|
|
</para>
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
<para>
|
|
#GdkPixbuf, #ArtPixBuf
|
|
</para>
|
|
|
|
<!-- ##### FUNCTION gdk_pixbuf_ref ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@pixbuf:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixbuf_unref ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@pixbuf: <!--
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2" "")
|
|
End:
|
|
-->
|
|
|
|
|