| 1 | /* FIXME bugzilla.eazel.com 5813: |
|---|
| 2 | * As soon as gtk 1.2.9 is released, this hack needs to be exorcised. |
|---|
| 3 | */ |
|---|
| 4 | |
|---|
| 5 | /* GdkPixbuf library - Private declarations |
|---|
| 6 | * |
|---|
| 7 | * Copyright (C) 1999 The Free Software Foundation |
|---|
| 8 | * |
|---|
| 9 | * Authors: Mark Crichton <crichton@gimp.org> |
|---|
| 10 | * Miguel de Icaza <miguel@gnu.org> |
|---|
| 11 | * Federico Mena-Quintero <federico@gimp.org> |
|---|
| 12 | * Havoc Pennington <hp@redhat.com> |
|---|
| 13 | * |
|---|
| 14 | * This library is free software; you can redistribute it and/or |
|---|
| 15 | * modify it under the terms of the GNU Library General Public |
|---|
| 16 | * License as published by the Free Software Foundation; either |
|---|
| 17 | * version 2 of the License, or (at your option) any later version. |
|---|
| 18 | * |
|---|
| 19 | * This library is distributed in the hope that it will be useful, |
|---|
| 20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 22 | * Library General Public License for more details. |
|---|
| 23 | * |
|---|
| 24 | * You should have received a copy of the GNU Library General Public |
|---|
| 25 | * License along with this library; if not, write to the |
|---|
| 26 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|---|
| 27 | * Boston, MA 02111-1307, USA. |
|---|
| 28 | */ |
|---|
| 29 | |
|---|
| 30 | #ifndef GDK_PIXBUF_PRIVATE_H |
|---|
| 31 | #define GDK_PIXBUF_PRIVATE_H |
|---|
| 32 | |
|---|
| 33 | #include <gdk-pixbuf/gdk-pixbuf.h> |
|---|
| 34 | |
|---|
| 35 | |
|---|
| 36 | |
|---|
| 37 | /* Private part of the GdkPixbuf structure */ |
|---|
| 38 | struct _GdkPixbuf { |
|---|
| 39 | /* Reference count */ |
|---|
| 40 | int ref_count; |
|---|
| 41 | |
|---|
| 42 | /* Color space */ |
|---|
| 43 | GdkColorspace colorspace; |
|---|
| 44 | |
|---|
| 45 | /* Number of channels, alpha included */ |
|---|
| 46 | int n_channels; |
|---|
| 47 | |
|---|
| 48 | /* Bits per channel */ |
|---|
| 49 | int bits_per_sample; |
|---|
| 50 | |
|---|
| 51 | /* Size */ |
|---|
| 52 | int width, height; |
|---|
| 53 | |
|---|
| 54 | /* Offset between rows */ |
|---|
| 55 | int rowstride; |
|---|
| 56 | |
|---|
| 57 | /* The pixel array */ |
|---|
| 58 | guchar *pixels; |
|---|
| 59 | |
|---|
| 60 | /* Destroy notification function; it is supposed to free the pixel array */ |
|---|
| 61 | GdkPixbufDestroyNotify destroy_fn; |
|---|
| 62 | |
|---|
| 63 | /* User data for the destroy notification function */ |
|---|
| 64 | gpointer destroy_fn_data; |
|---|
| 65 | |
|---|
| 66 | /* Last unref handler, determines whether the pixbuf should be finalized */ |
|---|
| 67 | GdkPixbufLastUnref last_unref_fn; |
|---|
| 68 | |
|---|
| 69 | /* User data for the last unref handler */ |
|---|
| 70 | gpointer last_unref_fn_data; |
|---|
| 71 | |
|---|
| 72 | /* Do we have an alpha channel? */ |
|---|
| 73 | guint has_alpha : 1; |
|---|
| 74 | }; |
|---|
| 75 | |
|---|
| 76 | /* Private part of the GdkPixbufFrame structure */ |
|---|
| 77 | struct _GdkPixbufFrame { |
|---|
| 78 | /* The pixbuf with this frame's image data */ |
|---|
| 79 | GdkPixbuf *pixbuf; |
|---|
| 80 | |
|---|
| 81 | /* Offsets for overlaying onto the animation's area */ |
|---|
| 82 | int x_offset; |
|---|
| 83 | int y_offset; |
|---|
| 84 | |
|---|
| 85 | /* Frame duration in ms */ |
|---|
| 86 | int delay_time; |
|---|
| 87 | |
|---|
| 88 | /* Overlay mode */ |
|---|
| 89 | GdkPixbufFrameAction action; |
|---|
| 90 | }; |
|---|
| 91 | |
|---|
| 92 | /* Private part of the GdkPixbufAnimation structure */ |
|---|
| 93 | struct _GdkPixbufAnimation { |
|---|
| 94 | /* Reference count */ |
|---|
| 95 | int ref_count; |
|---|
| 96 | |
|---|
| 97 | /* Number of frames */ |
|---|
| 98 | int n_frames; |
|---|
| 99 | |
|---|
| 100 | /* List of GdkPixbufFrame structures */ |
|---|
| 101 | GList *frames; |
|---|
| 102 | |
|---|
| 103 | /* bounding box size */ |
|---|
| 104 | int width, height; |
|---|
| 105 | }; |
|---|
| 106 | |
|---|
| 107 | |
|---|
| 108 | |
|---|
| 109 | #endif |
|---|