ModulePreparedNotifyFunc
void
GdkPixbuf *pixbuf, gpointer user_data
ModuleUpdatedNotifyFunc
void
GdkPixbuf *pixbuf,
guint x, guint y,
guint width, guint height,
gpointer user_data
ModuleFrameDoneNotifyFunc
void
GdkPixbufFrame *frame,
gpointer user_data
ModuleAnimationDoneNotifyFunc
void
GdkPixbuf *pixbuf,
gpointer user_data
GdkPixbufModule
GdkPixbufModule
struct GdkPixbufModule {
char *module_name;
gboolean (* format_check) (guchar *buffer, int size);
GModule *module;
GdkPixbuf *(* load) (FILE *f);
GdkPixbuf *(* load_xpm_data) (const char **data);
/* Incremental loading */
gpointer (* begin_load) (ModulePreparedNotifyFunc prepare_func,
ModuleUpdatedNotifyFunc update_func,
ModuleFrameDoneNotifyFunc frame_done_func,
ModuleAnimationDoneNotifyFunc anim_done_func,
gpointer user_data);
void (* stop_load) (gpointer context);
gboolean (* load_increment) (gpointer context, const guchar *buf, guint size);
/* Animation loading */
GdkPixbufAnimation *(* load_animation) (FILE *f);
};
gdk_pixbuf_get_module
GdkPixbufModule *
guchar *buffer, guint size
gdk_pixbuf_load_module
void
GdkPixbufModule *image_module
GDK_TYPE_PIXBUF_LOADER
#define GDK_TYPE_PIXBUF_LOADER (gdk_pixbuf_loader_get_type ())
GDK_PIXBUF_LOADER
#define GDK_PIXBUF_LOADER(obj) (GTK_CHECK_CAST ((obj), GDK_TYPE_PIXBUF_LOADER, GdkPixbufLoader))
GDK_PIXBUF_LOADER_CLASS
#define GDK_PIXBUF_LOADER_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GDK_TYPE_PIXBUF_LOADER, GdkPixbufLoaderClass))
GDK_IS_PIXBUF_LOADER
#define GDK_IS_PIXBUF_LOADER(obj) (GTK_CHECK_TYPE ((obj), GDK_TYPE_PIXBUF_LOADER))
GDK_IS_PIXBUF_LOADER_CLASS
#define GDK_IS_PIXBUF_LOADER_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GDK_TYPE_PIXBUF_LOADER))
GdkPixbufLoader
GdkPixbufLoader
struct GdkPixbufLoader
{
GtkObject object;
/* < Private > */
gpointer private;
};
GdkPixbufLoaderClass
gdk_pixbuf_loader_get_type
GtkType
void
gdk_pixbuf_loader_new
GdkPixbufLoader *
void
gdk_pixbuf_loader_write
gboolean
GdkPixbufLoader *loader,const guchar *buf,size_t count
gdk_pixbuf_loader_get_pixbuf
GdkPixbuf *
GdkPixbufLoader *loader
gdk_pixbuf_loader_get_animation
GdkPixbufAnimation *
GdkPixbufLoader *loader
gdk_pixbuf_loader_close
void
GdkPixbufLoader *loader
GdkColorspace
typedef enum {
GDK_COLORSPACE_RGB
} GdkColorspace;
GdkPixbuf
GdkPixbufFrame
GdkPixbufAnimation
GdkPixbufDestroyNotify
void
guchar *pixels, gpointer data
GdkPixbufLastUnref
void
GdkPixbuf *pixbuf, gpointer data
gdk_pixbuf_ref
GdkPixbuf *
GdkPixbuf *pixbuf
gdk_pixbuf_unref
void
GdkPixbuf *pixbuf
gdk_pixbuf_set_last_unref_handler
void
GdkPixbuf *pixbuf,GdkPixbufLastUnref last_unref_fn,gpointer last_unref_fn_data
gdk_pixbuf_finalize
void
GdkPixbuf *pixbuf
gdk_pixbuf_get_colorspace
GdkColorspace
const GdkPixbuf *pixbuf
gdk_pixbuf_get_n_channels
int
const GdkPixbuf *pixbuf
gdk_pixbuf_get_has_alpha
gboolean
const GdkPixbuf *pixbuf
gdk_pixbuf_get_bits_per_sample
int
const GdkPixbuf *pixbuf
gdk_pixbuf_get_pixels
guchar *
const GdkPixbuf *pixbuf
gdk_pixbuf_get_width
int
const GdkPixbuf *pixbuf
gdk_pixbuf_get_height
int
const GdkPixbuf *pixbuf
gdk_pixbuf_get_rowstride
int
const GdkPixbuf *pixbuf
gdk_pixbuf_new
GdkPixbuf *
GdkColorspace colorspace, gboolean has_alpha, int bits_per_sample,int width, int height
gdk_pixbuf_copy
GdkPixbuf *
const GdkPixbuf *pixbuf
gdk_pixbuf_new_from_file
GdkPixbuf *
const char *filename
gdk_pixbuf_new_from_data
GdkPixbuf *
const guchar *data,GdkColorspace colorspace,gboolean has_alpha,int bits_per_sample,int width, int height,int rowstride,GdkPixbufDestroyNotify destroy_fn,gpointer destroy_fn_data
gdk_pixbuf_new_from_xpm_data
GdkPixbuf *
const char **data
gdk_pixbuf_add_alpha
GdkPixbuf *
const GdkPixbuf *pixbuf, gboolean substitute_color,guchar r, guchar g, guchar b
gdk_pixbuf_copy_area
void
const GdkPixbuf *src_pixbuf,int src_x, int src_y,int width, int height,GdkPixbuf *dest_pixbuf,int dest_x, int dest_y
GdkPixbufAlphaMode
typedef enum {
GDK_PIXBUF_ALPHA_BILEVEL,
GDK_PIXBUF_ALPHA_FULL
} GdkPixbufAlphaMode;
gdk_pixbuf_render_threshold_alpha
void
GdkPixbuf *pixbuf, GdkBitmap *bitmap,int src_x, int src_y,int dest_x, int dest_y,int width, int height,int alpha_threshold
gdk_pixbuf_render_to_drawable
void
GdkPixbuf *pixbuf,GdkDrawable *drawable, GdkGC *gc,int src_x, int src_y,int dest_x, int dest_y,int width, int height,GdkRgbDither dither,int x_dither, int y_dither
gdk_pixbuf_render_to_drawable_alpha
void
GdkPixbuf *pixbuf, GdkDrawable *drawable,int src_x, int src_y,int dest_x, int dest_y,int width, int height,GdkPixbufAlphaMode alpha_mode,int alpha_threshold,GdkRgbDither dither,int x_dither, int y_dither
gdk_pixbuf_render_pixmap_and_mask
void
GdkPixbuf *pixbuf,GdkPixmap **pixmap_return, GdkBitmap **mask_return,int alpha_threshold
gdk_pixbuf_get_from_drawable
GdkPixbuf *
GdkPixbuf *dest,GdkDrawable *src, GdkColormap *cmap,int src_x, int src_y,int dest_x, int dest_y,int width, int height
GdkInterpType
typedef enum {
GDK_INTERP_NEAREST,
GDK_INTERP_TILES,
GDK_INTERP_BILINEAR,
GDK_INTERP_HYPER
} GdkInterpType;
gdk_pixbuf_scale
void
const GdkPixbuf *src,GdkPixbuf *dest,int dest_x,int dest_y,int dest_width,int dest_height,double offset_x,double offset_y,double scale_x,double scale_y,GdkInterpType interp_type
gdk_pixbuf_composite
void
const GdkPixbuf *src,GdkPixbuf *dest,int dest_x,int dest_y,int dest_width,int dest_height,double offset_x,double offset_y,double scale_x,double scale_y,GdkInterpType interp_type,int overall_alpha
gdk_pixbuf_composite_color
void
const GdkPixbuf *src,GdkPixbuf *dest,int dest_x,int dest_y,int dest_width,int dest_height,double offset_x,double offset_y,double scale_x,double scale_y,GdkInterpType interp_type,int overall_alpha,int check_x,int check_y,int check_size,guint32 color1,guint32 color2
gdk_pixbuf_scale_simple
GdkPixbuf *
const GdkPixbuf *src,int dest_width,int dest_height,GdkInterpType interp_type
gdk_pixbuf_composite_color_simple
GdkPixbuf *
const GdkPixbuf *src,int dest_width,int dest_height,GdkInterpType interp_type,int overall_alpha,int check_size,guint32 color1,guint32 color2
GdkPixbufFrameAction
typedef enum {
GDK_PIXBUF_FRAME_RETAIN,
GDK_PIXBUF_FRAME_DISPOSE,
GDK_PIXBUF_FRAME_REVERT
} GdkPixbufFrameAction;
gdk_pixbuf_animation_new_from_file
GdkPixbufAnimation *
const char *filename
gdk_pixbuf_animation_ref
GdkPixbufAnimation *
GdkPixbufAnimation *animation
gdk_pixbuf_animation_unref
void
GdkPixbufAnimation *animation
gdk_pixbuf_animation_get_width
int
GdkPixbufAnimation *animation
gdk_pixbuf_animation_get_height
int
GdkPixbufAnimation *animation
gdk_pixbuf_animation_get_frames
GList *
GdkPixbufAnimation *animation
gdk_pixbuf_animation_get_num_frames
int
GdkPixbufAnimation *animation
gdk_pixbuf_frame_get_pixbuf
GdkPixbuf *
GdkPixbufFrame *frame
gdk_pixbuf_frame_get_x_offset
int
GdkPixbufFrame *frame
gdk_pixbuf_frame_get_y_offset
int
GdkPixbufFrame *frame
gdk_pixbuf_frame_get_delay_time
int
GdkPixbufFrame *frame
gdk_pixbuf_frame_get_action
GdkPixbufFrameAction
GdkPixbufFrame *frame
gdk_pixbuf_preinit
void
gpointer app, gpointer modinfo
gdk_pixbuf_postinit
void
gpointer app, gpointer modinfo
GNOME_TYPE_CANVAS_PIXBUF
#define GNOME_TYPE_CANVAS_PIXBUF (gnome_canvas_pixbuf_get_type ())
GNOME_CANVAS_PIXBUF
#define GNOME_CANVAS_PIXBUF(obj) (GTK_CHECK_CAST ((obj), \
GNOME_TYPE_CANVAS_PIXBUF, GnomeCanvasPixbuf))
GNOME_CANVAS_PIXBUF_CLASS
#define GNOME_CANVAS_PIXBUF_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), \
GNOME_TYPE_CANVAS_PIXBUF, GnomeCanvasPixbufClass))
GNOME_IS_CANVAS_PIXBUF
#define GNOME_IS_CANVAS_PIXBUF(obj) (GTK_CHECK_TYPE ((obj), GNOME_TYPE_CANVAS_PIXBUF))
GNOME_IS_CANVAS_PIXBUF_CLASS
#define GNOME_IS_CANVAS_PIXBUF_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), \
GNOME_TYPE_CANVAS_PIXBUF))
GnomeCanvasPixbuf
GnomeCanvasPixbufClass
GnomeCanvasPixbuf
struct GnomeCanvasPixbuf {
GnomeCanvasItem item;
/* Private data */
gpointer priv;
};
gnome_canvas_pixbuf_get_type
GtkType
void
GDK_PIXBUF_MAJOR
#define GDK_PIXBUF_MAJOR (0)
GDK_PIXBUF_MINOR
#define GDK_PIXBUF_MINOR (7)
GDK_PIXBUF_MICRO
#define GDK_PIXBUF_MICRO (0)
GDK_PIXBUF_VERSION
#define GDK_PIXBUF_VERSION "0.7.0"
gdk_pixbuf_version
extern const char *gdk_pixbuf_version;
GdkPixbuf
struct GdkPixbuf {
/* Reference count */
int ref_count;
/* Color space */
GdkColorspace colorspace;
/* Number of channels, alpha included */
int n_channels;
/* Bits per channel */
int bits_per_sample;
/* Size */
int width, height;
/* Offset between rows */
int rowstride;
/* The pixel array */
guchar *pixels;
/* Destroy notification function; it is supposed to free the pixel array */
GdkPixbufDestroyNotify destroy_fn;
/* User data for the destroy notification function */
gpointer destroy_fn_data;
/* Last unref handler, determines whether the pixbuf should be finalized */
GdkPixbufLastUnref last_unref_fn;
/* User data for the last unref handler */
gpointer last_unref_fn_data;
/* Do we have an alpha channel? */
guint has_alpha : 1;
};
GdkPixbufFrame
struct GdkPixbufFrame {
/* The pixbuf with this frame's image data */
GdkPixbuf *pixbuf;
/* Offsets for overlaying onto the animation's area */
int x_offset;
int y_offset;
/* Frame duration in ms */
int delay_time;
/* Overlay mode */
GdkPixbufFrameAction action;
};
GdkPixbufAnimation
struct GdkPixbufAnimation {
/* Reference count */
int ref_count;
/* Number of frames */
int n_frames;
/* List of GdkPixbufFrame structures */
GList *frames;
/* bounding box size */
int width, height;
};