]> Pileus Git - ~andy/gtk/blob - gdk/broadway/gdkdisplay-broadway.h
broadway: disconnect in idle when needed
[~andy/gtk] / gdk / broadway / gdkdisplay-broadway.h
1 /*
2  * gdkdisplay-broadway.h
3  * 
4  * Copyright 2001 Sun Microsystems Inc. 
5  *
6  * Erwann Chenede <erwann.chenede@sun.com>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
20  */
21
22 #ifndef __GDK_BROADWAY_DISPLAY__
23 #define __GDK_BROADWAY_DISPLAY__
24
25 #include "gdkdisplayprivate.h"
26 #include "gdkkeys.h"
27 #include "gdkwindow.h"
28 #include "gdkinternals.h"
29 #include "gdkmain.h"
30 #include "gdkbroadway-server.h"
31 #include "broadway.h"
32
33 G_BEGIN_DECLS
34
35 typedef struct _GdkBroadwayDisplay GdkBroadwayDisplay;
36 typedef struct _GdkBroadwayDisplayClass GdkBroadwayDisplayClass;
37
38 typedef struct BroadwayInput BroadwayInput;
39
40 #define GDK_TYPE_BROADWAY_DISPLAY              (gdk_broadway_display_get_type())
41 #define GDK_BROADWAY_DISPLAY(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_BROADWAY_DISPLAY, GdkBroadwayDisplay))
42 #define GDK_BROADWAY_DISPLAY_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_BROADWAY_DISPLAY, GdkBroadwayDisplayClass))
43 #define GDK_IS_BROADWAY_DISPLAY(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_BROADWAY_DISPLAY))
44 #define GDK_IS_BROADWAY_DISPLAY_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_BROADWAY_DISPLAY))
45 #define GDK_BROADWAY_DISPLAY_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_BROADWAY_DISPLAY, GdkBroadwayDisplayClass))
46
47 struct _GdkBroadwayDisplay
48 {
49   GdkDisplay parent_instance;
50   GdkScreen *default_screen;
51   GdkScreen **screens;
52
53   GHashTable *id_ht;
54   GList *toplevels;
55
56   GSource *event_source;
57
58   /* Keyboard related information */
59   GdkKeymap *keymap;
60
61   /* drag and drop information */
62   GdkDragContext *current_dest_drag;
63
64   /* Input device */
65   /* input GdkDevice list */
66   GList *input_devices;
67
68   /* The offscreen window that has the pointer in it (if any) */
69   GdkWindow *active_offscreen_window;
70
71   GdkBroadwayServer *server;
72 };
73
74 struct _GdkBroadwayDisplayClass
75 {
76   GdkDisplayClass parent_class;
77 };
78
79 GType      gdk_broadway_display_get_type            (void);
80
81 G_END_DECLS
82
83 #endif                          /* __GDK_BROADWAY_DISPLAY__ */