]> Pileus Git - ~andy/gtk/blob - gdk/quartz/gdkwindow-quartz.h
Maintain a list for the stacking order of windows. Implement lower and
[~andy/gtk] / gdk / quartz / gdkwindow-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_WINDOW_QUARTZ_H__
22 #define __GDK_WINDOW_QUARTZ_H__
23
24 #include <gdk/quartz/gdkdrawable-quartz.h>
25 #import <gdk/quartz/GdkQuartzView.h>
26 #import <gdk/quartz/GdkQuartzWindow.h>
27
28
29 G_BEGIN_DECLS
30
31 /* Window implementation for Quartz
32  */
33
34 typedef struct _GdkWindowImplQuartz GdkWindowImplQuartz;
35 typedef struct _GdkWindowImplQuartzClass GdkWindowImplQuartzClass;
36
37 #define GDK_TYPE_WINDOW_IMPL_QUARTZ              (_gdk_window_impl_quartz_get_type ())
38 #define GDK_WINDOW_IMPL_QUARTZ(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_WINDOW_IMPL_QUARTZ, GdkWindowImplQuartz))
39 #define GDK_WINDOW_IMPL_QUARTZ_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_WINDOW_IMPL_QUARTZ, GdkWindowImplQuartzClass))
40 #define GDK_IS_WINDOW_IMPL_QUARTZ(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_WINDOW_IMPL_QUARTZ))
41 #define GDK_IS_WINDOW_IMPL_QUARTZ_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_WINDOW_IMPL_QUARTZ))
42 #define GDK_WINDOW_IMPL_QUARTZ_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_WINDOW_IMPL_QUARTZ, GdkWindowImplQuartzClass))
43
44 struct _GdkWindowImplQuartz
45 {
46   GdkDrawableImplQuartz parent_instance;
47
48   gint width;
49   gint height;
50
51   NSWindow *toplevel;
52   NSTrackingRectTag tracking_rect;
53   GdkQuartzView *view;
54
55   GdkWindowTypeHint type_hint;
56
57   /* This is the autorelease pool which is retained
58    * while the context is being held 
59    */
60   NSAutoreleasePool *pool;
61
62   NSCursor *nscursor;
63
64   GdkRegion *paint_clip_region;
65   gint begin_paint_count;
66   gint in_paint_rect_count;
67
68   GdkWindow *transient_for;
69
70   /* Sorted by z-order */
71   GList *sorted_children;
72 };
73  
74 struct _GdkWindowImplQuartzClass 
75 {
76   GdkDrawableImplQuartzClass parent_class;
77 };
78
79 GType _gdk_window_impl_quartz_get_type (void);
80
81 G_END_DECLS
82
83 #endif /* __GDK_WINDOW_QUARTZ_H__ */