ROOT  6.05/03
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
gdkimage.h
Go to the documentation of this file.
1 #ifndef __GDK_IMAGE_H__
2 #define __GDK_IMAGE_H__
3 
4 #include <gdk/gdktypes.h>
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif /* __cplusplus */
9 
10 /* Types of images.
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.
20  * Shared Pixmap: Also a shared memory image, which also has a
21  * pixmap using the same memory. Used by gdk_imlib with the
22  * Win32 backend.
23  */
24  typedef enum {
29  } GdkImageType;
30 
31  struct _GdkImage {
33  GdkVisual *visual; /* visual used to create the image */
38  guint16 bpp; /* bytes per pixel */
39  guint16 bpl; /* bytes per line */
41  };
42 
44  gpointer data, gint width, gint height);
46  GdkVisual * visual, gint width, gint height);
47 #ifdef GDK_WINDOWING_WIN32
49  GdkVisual * visual,
50  gint width, gint height);
51 
52 #endif
54  gint x, gint y, gint width, gint height);
55 
58 
60  gint x, gint y, guint32 pixel);
62 
63 
64 #ifdef __cplusplus
65 }
66 #endif /* __cplusplus */
67 #endif /* __GDK_IMAGE_H__ */
GdkImage * gdk_image_new_bitmap(GdkVisual *visual, gpointer data, gint width, gint height)
void gdk_image_unref(GdkImage *image)
Definition: gdkimage.c:44
guint16 bpl
Definition: gdkimage.h:39
GdkByteOrder byte_order
Definition: gdkimage.h:34
GdkImage * gdk_image_ref(GdkImage *image)
Definition: gdkimage.c:33
Double_t x[n]
Definition: legend1.C:17
guint16 depth
Definition: gdkimage.h:37
unsigned int guint32
GdkImage * gdk_image_get(GdkDrawable *drawable, gint x, gint y, gint width, gint height)
gpointer mem
Definition: gdkimage.h:40
GdkImageType
Definition: gdkimage.h:24
int gint
Definition: g_types.h:44
guint16 width
Definition: gdkimage.h:35
guint32 gdk_image_get_pixel(GdkImage *image, gint x, gint y)
void * gpointer
Definition: g_types.h:67
void gdk_image_put_pixel(GdkImage *image, gint x, gint y, guint32 pixel)
unsigned short guint16
gchar data[7]
int type
Definition: TGX11.cxx:116
GdkImage * gdk_image_bitmap_new(GdkImageType type, GdkVisual *visual, gint width, gint height)
Double_t y[n]
Definition: legend1.C:17
GdkByteOrder
Definition: gdktypes.h:95
guint16 bpp
Definition: gdkimage.h:38
guint16 height
Definition: gdkimage.h:36
GdkVisual * visual
Definition: gdkimage.h:33
GdkImageType type
Definition: gdkimage.h:32
GdkImage * gdk_image_new(GdkImageType type, GdkVisual *visual, gint width, gint height)
const char Int_t const char * image
Definition: TXSlave.cxx:46