]> Pileus Git - ~andy/gtk/blob - gdk/gdkpixmap.h
Make this compile without framebuffer enabled
[~andy/gtk] / gdk / gdkpixmap.h
1 #ifndef __GDK_PIXMAP_H__
2 #define __GDK_PIXMAP_H__
3
4 #include <gdk/gdktypes.h>
5 #include <gdk/gdkdrawable.h>
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif /* __cplusplus */
10
11 typedef struct _GdkPixmapObject GdkPixmapObject;
12 typedef struct _GdkPixmapObjectClass GdkPixmapObjectClass;
13
14 #define GDK_TYPE_PIXMAP              (gdk_pixmap_get_type ())
15 #define GDK_PIXMAP(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_PIXMAP, GdkPixmap))
16 #define GDK_PIXMAP_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_PIXMAP, GdkPixmapObjectClass))
17 #define GDK_IS_PIXMAP(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_PIXMAP))
18 #define GDK_IS_PIXMAP_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_PIXMAP))
19 #define GDK_PIXMAP_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_PIXMAP, GdkPixmapClass))
20 #define GDK_PIXMAP_OBJECT(object)    ((GdkPixmapObject *) GDK_PIXMAP (object))
21
22 struct _GdkPixmapObject
23 {
24   GdkDrawable parent_instance;
25   
26   GdkDrawable *impl;  /* window-system-specific delegate object */
27
28   gint depth;
29 };
30
31 struct _GdkPixmapObjectClass
32 {
33   GdkDrawableClass parent_class;
34
35 };
36
37 GType      gdk_pixmap_get_type          (void);
38
39 /* Pixmaps
40  */
41 GdkPixmap* gdk_pixmap_new               (GdkWindow  *window,
42                                          gint        width,
43                                          gint        height,
44                                          gint        depth);
45 #ifdef GDK_WINDOWING_WIN32
46 GdkPixmap* gdk_pixmap_create_on_shared_image
47                                         (GdkImage  **image_return,
48                                          GdkWindow  *window,
49                                          GdkVisual  *visual,
50                                          gint        width,
51                                          gint        height,
52                                          gint        depth);
53 #endif
54 GdkBitmap* gdk_bitmap_create_from_data  (GdkWindow   *window,
55                                          const gchar *data,
56                                          gint         width,
57                                          gint         height);
58 GdkPixmap* gdk_pixmap_create_from_data  (GdkWindow   *window,
59                                          const gchar *data,
60                                          gint         width,
61                                          gint         height,
62                                          gint         depth,
63                                          GdkColor    *fg,
64                                          GdkColor    *bg);
65 GdkPixmap* gdk_pixmap_create_from_xpm   (GdkWindow  *window,
66                                          GdkBitmap **mask,
67                                          GdkColor   *transparent_color,
68                                          const gchar *filename);
69 GdkPixmap* gdk_pixmap_colormap_create_from_xpm 
70                                         (GdkWindow   *window,
71                                          GdkColormap *colormap,
72                                          GdkBitmap  **mask,
73                                          GdkColor    *transparent_color,
74                                          const gchar *filename);
75 GdkPixmap* gdk_pixmap_create_from_xpm_d (GdkWindow  *window,
76                                          GdkBitmap **mask,
77                                          GdkColor   *transparent_color,
78                                          gchar     **data);
79 GdkPixmap* gdk_pixmap_colormap_create_from_xpm_d 
80                                         (GdkWindow   *window,
81                                          GdkColormap *colormap,
82                                          GdkBitmap  **mask,
83                                          GdkColor    *transparent_color,
84                                          gchar     **data);
85
86 #ifdef __cplusplus
87 }
88 #endif /* __cplusplus */
89
90 #endif /* __GDK_PIXMAP_H__ */