forked from AuroraMiddleware/gtk
37ac7d593e
Your eyes are bloodshot. Your mouth starts to foam. Your hands are shaking. You know your need your fix. NEED MORE ABSTRACTION! 2000-04-12 Federico Mena Quintero <federico@helixcode.com> This comes from an excellent idea by Tim Janik (timj@gtk.org) to hook to the last unref operation. * gdk-pixbuf/gdk-pixbuf.c (gdk_pixbuf_set_last_unref_handler): New function to set the last unref handler for a pixbuf. (gdk_pixbuf_finalize): New function to actually finalize a pixbuf. It calls the pixbuf's destroy notification function and frees the GdkPixbuf structure itself. (gdk_pixbuf_unref): Use the last unref function of the pixbuf if available. * gdk-pixbuf/gdk-pixbuf-private.h (struct _GdkPixbuf): New fields for the last unref handler and its user data. * gdk-pixbuf/gdk-pixbuf-data.c (gdk_pixbuf_new_from_data): Use g_new0() to allocate the pixbuf. * gdk-pixbuf/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): Fixed the call to gtk_signal_new() for the "frame_done" signal; it was not specifying the `frame' argument. * gdk-pixbuf/gdk-pixbuf-animation.c (gdk_pixbuf_animation_get_width): Fixed docstring. (gdk_pixbuf_animation_get_height): Likewise. (gdk_pixbuf_animation_get_num_frames): Likewise. (gdk_pixbuf_animation_get_frames): Likewise. * doc/gdk-pixbuf-sections.txt: Updated with the new functions and types. * doc/tmpl/gdk-pixbuf.sgml: Added the description for GdkColorspace. * doc/tmpl/scaling.sgml: Added the description for GdkInterpType. * doc/tmpl/refcounting.sgml: Updated with the information about the last unref handler. * doc/tmpl/*.sgml: Markup tweaks. * gdk-pixbuf/Makefile.am (libgnomecanvaspixbuf_la_LDFLAGS): Sigh, update the libtool version number for libgnomecanvaspixbuf as well. (libpixbufloader_*_la_LDFLAGS): The loaders need to be versioned as well, or the old ones won't work with the new stuff. Also, renamed the modules as follows. * gdk-pixbuf/gdk-pixbuf-io.c (gdk_pixbuf_load_module): Now the modules are called "libpixbufloader-<format>.so" instead of "libpixbuf-<format>.so". They needed renaming so that the new loaders won't overwrite the old ones; even with the versioning stuff, the new .so symlink to the .so.1.0.0 would overwrite the old real .so file.
121 lines
2.4 KiB
Plaintext
121 lines
2.4 KiB
Plaintext
<INCLUDE>gdk-pixbuf/gdk-pixbuf.h</INCLUDE>
|
|
|
|
<SECTION>
|
|
<FILE>gdk-pixbuf</FILE>
|
|
GdkColorspace
|
|
GdkPixbuf
|
|
gdk_pixbuf_get_colorspace
|
|
gdk_pixbuf_get_n_channels
|
|
gdk_pixbuf_get_has_alpha
|
|
gdk_pixbuf_get_bits_per_sample
|
|
gdk_pixbuf_get_pixels
|
|
gdk_pixbuf_get_width
|
|
gdk_pixbuf_get_height
|
|
gdk_pixbuf_get_rowstride
|
|
</SECTION>
|
|
|
|
<SECTION>
|
|
<FILE>refcounting</FILE>
|
|
GdkPixbufDestroyNotify
|
|
GdkPixbufLastUnref
|
|
gdk_pixbuf_ref
|
|
gdk_pixbuf_unref
|
|
gdk_pixbuf_set_last_unref_handler
|
|
gdk_pixbuf_finalize
|
|
</SECTION>
|
|
|
|
<SECTION>
|
|
<FILE>file-loading</FILE>
|
|
gdk_pixbuf_new_from_file
|
|
</SECTION>
|
|
|
|
<SECTION>
|
|
<FILE>creating</FILE>
|
|
gdk_pixbuf_new
|
|
gdk_pixbuf_new_from_data
|
|
gdk_pixbuf_new_from_xpm_data
|
|
gdk_pixbuf_copy
|
|
</SECTION>
|
|
|
|
<SECTION>
|
|
<FILE>rendering</FILE>
|
|
GdkPixbufAlphaMode
|
|
gdk_pixbuf_render_to_drawable_alpha
|
|
gdk_pixbuf_render_to_drawable
|
|
gdk_pixbuf_render_threshold_alpha
|
|
gdk_pixbuf_render_pixmap_and_mask
|
|
</SECTION>
|
|
|
|
<SECTION>
|
|
<FILE>from-drawables</FILE>
|
|
gdk_pixbuf_get_from_drawable
|
|
</SECTION>
|
|
|
|
<SECTION>
|
|
<FILE>util</FILE>
|
|
gdk_pixbuf_add_alpha
|
|
gdk_pixbuf_copy_area
|
|
</SECTION>
|
|
|
|
<SECTION>
|
|
<FILE>animation</FILE>
|
|
GdkPixbufFrameAction
|
|
GdkPixbufFrame
|
|
GdkPixbufAnimation
|
|
gdk_pixbuf_animation_new_from_file
|
|
gdk_pixbuf_animation_ref
|
|
gdk_pixbuf_animation_unref
|
|
gdk_pixbuf_animation_get_frames
|
|
gdk_pixbuf_animation_get_width
|
|
gdk_pixbuf_animation_get_num_frames
|
|
gdk_pixbuf_animation_get_height
|
|
gdk_pixbuf_frame_get_pixbuf
|
|
gdk_pixbuf_frame_get_action
|
|
gdk_pixbuf_frame_get_y_offset
|
|
gdk_pixbuf_frame_get_delay_time
|
|
gdk_pixbuf_frame_get_x_offset
|
|
</SECTION>
|
|
|
|
<SECTION>
|
|
<FILE>scaling</FILE>
|
|
GdkInterpType
|
|
gdk_pixbuf_scale
|
|
gdk_pixbuf_composite
|
|
gdk_pixbuf_composite_color
|
|
gdk_pixbuf_scale_simple
|
|
gdk_pixbuf_composite_color_simple
|
|
</SECTION>
|
|
|
|
<SECTION>
|
|
<FILE>gdk-pixbuf-loader</FILE>
|
|
GDK_PIXBUF_LOADER
|
|
<TITLE>GdkPixbufLoader</TITLE>
|
|
gdk_pixbuf_loader_new
|
|
gdk_pixbuf_loader_write
|
|
gdk_pixbuf_loader_get_pixbuf
|
|
gdk_pixbuf_loader_get_animation
|
|
gdk_pixbuf_loader_close
|
|
<SUBSECTION Standard>
|
|
GDK_TYPE_PIXBUF_LOADER
|
|
GDK_IS_PIXBUF_LOADER
|
|
gdk_pixbuf_loader_get_type
|
|
GDK_PIXBUF_LOADER_CLASS
|
|
GDK_IS_PIXBUF_LOADER_CLASS
|
|
<SUBSECTION Private>
|
|
GdkPixbufLoader
|
|
</SECTION>
|
|
|
|
<SECTION>
|
|
<FILE>gnome-canvas-pixbuf</FILE>
|
|
GNOME_CANVAS_PIXBUF
|
|
<TITLE>GnomeCanvasPixbuf</TITLE>
|
|
<SUBSECTION Standard>
|
|
GNOME_TYPE_CANVAS_PIXBUF
|
|
GNOME_IS_CANVAS_PIXBUF
|
|
gnome_canvas_pixbuf_get_type
|
|
GNOME_CANVAS_PIXBUF_CLASS
|
|
GNOME_IS_CANVAS_PIXBUF_CLASS
|
|
<SUBSECTION Private>
|
|
GnomeCanvasPixbuf
|
|
</SECTION>
|