Ardour  9.0-pre0-582-g084a23a80d
gdkdrawable-quartz.h
Go to the documentation of this file.
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_DRAWABLE_QUARTZ_H__
22 #define __GDK_DRAWABLE_QUARTZ_H__
23 
24 #include <gdk/gdkdrawable.h>
25 
26 G_BEGIN_DECLS
27 
28 /* Drawable implementation for Quartz
29  */
30 
33 
34 #define GDK_TYPE_DRAWABLE_IMPL_QUARTZ (gdk_drawable_impl_quartz_get_type ())
35 #define GDK_DRAWABLE_IMPL_QUARTZ(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_DRAWABLE_IMPL_QUARTZ, GdkDrawableImplQuartz))
36 #define GDK_DRAWABLE_IMPL_QUARTZ_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_DRAWABLE_IMPL_QUARTZ, GdkDrawableImplQuartzClass))
37 #define GDK_IS_DRAWABLE_IMPL_QUARTZ(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_DRAWABLE_IMPL_QUARTZ))
38 #define GDK_IS_DRAWABLE_IMPL_QUARTZ_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_DRAWABLE_IMPL_QUARTZ))
39 #define GDK_DRAWABLE_IMPL_QUARTZ_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_DRAWABLE_IMPL_QUARTZ, GdkDrawableImplQuartzClass))
40 
42 {
44 
46 
48 
49  cairo_surface_t *cairo_surface;
50 };
51 
53 {
55 
56  /* vtable */
57  CGContextRef (*get_context) (GdkDrawable* drawable,
58  gboolean antialias);
59 };
60 
63  gboolean antialias);
65  CGContextRef context);
66 
67 G_END_DECLS
68 
69 #endif /* __GDK_DRAWABLE_QUARTZ_H__ */
void gdk_quartz_drawable_release_context(GdkDrawable *drawable, CGContextRef context)
GType gdk_drawable_impl_quartz_get_type(void)
CGContextRef gdk_quartz_drawable_get_context(GdkDrawable *drawable, gboolean antialias)
typedefG_BEGIN_DECLS struct _GdkDrawableImplQuartz GdkDrawableImplQuartz
typedefG_BEGIN_DECLS struct _GdkDrawableClass GdkDrawableClass
Definition: gdkdrawable.h:43
CGContextRef(* get_context)(GdkDrawable *drawable, gboolean antialias)
cairo_surface_t * cairo_surface