]> Pileus Git - ~andy/gtk/blob - gdk/quartz/gdkpixmap-quartz.h
bb2122ad4016ad3df39bd221b967878aa0561164
[~andy/gtk] / gdk / quartz / gdkpixmap-quartz.h
1 /* gdkdrawable-quartz.h
2  *
3  * Copyright (C) 2005 Imendio AB
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #ifndef __GDK_PIXMAP_QUARTZ_H__
22 #define __GDK_PIXMAP_QUARTZ_H__
23
24 #include <ApplicationServices/ApplicationServices.h>
25 #include <gdk/quartz/gdkdrawable-quartz.h>
26 #include <gdk/gdkpixmap.h>
27
28 G_BEGIN_DECLS
29
30 /* Pixmap implementation for Quartz
31  */
32
33 typedef struct _GdkPixmapImplQuartz GdkPixmapImplQuartz;
34 typedef struct _GdkPixmapImplQuartzClass GdkPixmapImplQuartzClass;
35
36 #define GDK_TYPE_PIXMAP_IMPL_QUARTZ              (_gdk_pixmap_impl_quartz_get_type ())
37 #define GDK_PIXMAP_IMPL_QUARTZ(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_PIXMAP_IMPL_QUARTZ, GdkPixmapImplQuartz))
38 #define GDK_PIXMAP_IMPL_QUARTZ_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_PIXMAP_IMPL_QUARTZ, GdkPixmapImplQuartzClass))
39 #define GDK_IS_PIXMAP_IMPL_QUARTZ(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_PIXMAP_IMPL_QUARTZ))
40 #define GDK_IS_PIXMAP_IMPL_QUARTZ_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_PIXMAP_IMPL_QUARTZ))
41 #define GDK_PIXMAP_IMPL_QUARTZ_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_PIXMAP_IMPL_QUARTZ, GdkPixmapImplQuartzClass))
42
43 struct _GdkPixmapImplQuartz
44 {
45   GdkDrawableImplQuartz parent_instance;
46
47   gint width;
48   gint height;
49
50   void *data;
51   
52   CGImageRef image;
53 };
54  
55 struct _GdkPixmapImplQuartzClass 
56 {
57   GdkDrawableImplQuartzClass parent_class;
58 };
59
60 GType _gdk_pixmap_impl_quartz_get_type (void);
61
62 G_END_DECLS
63
64 #endif /* __GDK_PIXMAP_QUARTZ_H__ */