1 #ifndef __GDK_IMAGE_H__
2 #define __GDK_IMAGE_H__
4 #include <gdk/gdktypes.h>
8 #endif /* __cplusplus */
11 * Normal: Normal X image type. These are slow as they involve passing
12 * the entire image through the X connection each time a draw
13 * request is required. On Win32, a bitmap.
14 * Shared: Shared memory X image type. These are fast as the X server
15 * and the program actually use the same piece of memory. They
16 * should be used with care though as there is the possibility
17 * for both the X server and the program to be reading/writing
18 * the image simultaneously and producing undesired results.
19 * On Win32, also a bitmap.
28 typedef struct _GdkImageClass GdkImageClass;
30 #define GDK_TYPE_IMAGE (gdk_image_get_type ())
31 #define GDK_IMAGE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_IMAGE, GdkImage))
32 #define GDK_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_IMAGE, GdkImageClass))
33 #define GDK_IS_IMAGE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_IMAGE))
34 #define GDK_IS_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_IMAGE))
35 #define GDK_IMAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_IMAGE, GdkImageClass))
39 GObject parent_instance;
42 GdkVisual *visual; /* visual used to create the image */
43 GdkByteOrder byte_order;
47 guint16 bpp; /* bytes per pixel */
48 guint16 bpl; /* bytes per line */
51 gpointer windowing_data;
56 GObjectClass parent_class;
59 GType gdk_image_get_type (void) G_GNUC_CONST;
61 GdkImage* gdk_image_new_bitmap (GdkVisual *visual,
65 GdkImage* gdk_image_new (GdkImageType type,
70 GdkImage* gdk_image_get (GdkDrawable *drawable,
76 GdkImage * gdk_image_ref (GdkImage *image);
77 void gdk_image_unref (GdkImage *image);
79 void gdk_image_put_pixel (GdkImage *image,
83 guint32 gdk_image_get_pixel (GdkImage *image,
89 #endif /* __cplusplus */
91 #endif /* __GDK_IMAGE_H__ */