Debian Codegraph @

gdk/quartz/gdkscreen-quartz.h

raw
1 /* gdkscreen-quartz.h
2 *
3 * Copyright (C) 2009 Kristian Rietveld <[email protected]>
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_SCREEN_QUARTZ_H__
22 #define __GDK_SCREEN_QUARTZ_H__
23
24 G_BEGIN_DECLS
25
26 typedef struct _GdkScreenQuartz GdkScreenQuartz;
27 typedef struct _GdkScreenQuartzClass GdkScreenQuartzClass;
28
29 #define GDK_TYPE_SCREEN_QUARTZ (_gdk_screen_quartz_get_type ())
30 #define GDK_SCREEN_QUARTZ(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_SCREEN_QUARTZ, GdkScreenQuartz))
31 #define GDK_SCREEN_QUARTZ_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_SCREEN_QUARTZ, GdkScreenQuartzClass))
32 #define GDK_IS_SCREEN_QUARTZ(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_SCREEN_QUARTZ))
33 #define GDK_IS_SCREEN_QUARTZ_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_SCREEN_QUARTZ))
34 #define GDK_SCREEN_QUARTZ_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_SCREEN_QUARTZ, GdkScreenQuartzClass))
35
36 struct _GdkScreenQuartz
37 {
38 GdkScreen parent_instance;
39
40 GdkDisplay *display;
41 GdkColormap *default_colormap;
42
43 /* Origin of "root window" in Cocoa coordinates */
44 gint min_x;
45 gint min_y;
46
47 gint width;
48 gint height;
49
50 int n_screens;
51 GdkRectangle *screen_rects;
52
53 guint screen_changed_id;
54
55 guint emit_monitors_changed : 1;
56 };
57
58 struct _GdkScreenQuartzClass
59 {
60 GdkScreenClass parent_class;
61 };
62
63 GType _gdk_screen_quartz_get_type (void);
64 GdkScreen *_gdk_screen_quartz_new (void);
65
66 G_END_DECLS
67
68 #endif /* _GDK_SCREEN_QUARTZ_H_ */