]> Pileus Git - ~andy/gtk/blob - gdk/broadway/gdkdisplay-broadway.h
broadway: Get query_state window coords from browser side
[~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, write to the
20  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  */
23
24 #ifndef __GDK_BROADWAY_DISPLAY__
25 #define __GDK_BROADWAY_DISPLAY__
26
27 #include "gdkdisplayprivate.h"
28 #include "gdkkeys.h"
29 #include "gdkwindow.h"
30 #include "gdkinternals.h"
31 #include "gdkmain.h"
32 #include "broadway.h"
33
34 G_BEGIN_DECLS
35
36 typedef struct _GdkBroadwayDisplay GdkBroadwayDisplay;
37 typedef struct _GdkBroadwayDisplayClass GdkBroadwayDisplayClass;
38
39 typedef struct BroadwayInput BroadwayInput;
40
41 #define GDK_TYPE_BROADWAY_DISPLAY              (gdk_broadway_display_get_type())
42 #define GDK_BROADWAY_DISPLAY(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_BROADWAY_DISPLAY, GdkBroadwayDisplay))
43 #define GDK_BROADWAY_DISPLAY_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_BROADWAY_DISPLAY, GdkBroadwayDisplayClass))
44 #define GDK_IS_BROADWAY_DISPLAY(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_BROADWAY_DISPLAY))
45 #define GDK_IS_BROADWAY_DISPLAY_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_BROADWAY_DISPLAY))
46 #define GDK_BROADWAY_DISPLAY_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_BROADWAY_DISPLAY, GdkBroadwayDisplayClass))
47
48 struct _GdkBroadwayDisplay
49 {
50   GdkDisplay parent_instance;
51   GdkScreen *default_screen;
52   GdkScreen **screens;
53
54   GHashTable *id_ht;
55   GList *toplevels;
56
57   GSource *event_source;
58   GdkWindow *mouse_in_toplevel;
59   int last_x, last_y; /* in root coords */
60
61   /* Keyboard related information */
62   GdkKeymap *keymap;
63
64   /* drag and drop information */
65   GdkDragContext *current_dest_drag;
66
67   /* Mapping to/from virtual atoms */
68
69   GHashTable *atom_from_virtual;
70   GHashTable *atom_to_virtual;
71
72   /* Input device */
73   /* input GdkDevice list */
74   GList *input_devices;
75
76   /* Time of most recent user interaction. */
77   gulong user_time;
78
79   /* The offscreen window that has the pointer in it (if any) */
80   GdkWindow *active_offscreen_window;
81
82   GSocketService *service;
83   BroadwayOutput *output;
84   guint32 saved_serial;
85   BroadwayInput *input;
86   GList *input_messages;
87 };
88
89 struct _GdkBroadwayDisplayClass
90 {
91   GdkDisplayClass parent_class;
92 };
93
94 GType      gdk_broadway_display_get_type            (void);
95
96 G_END_DECLS
97
98 #endif                          /* __GDK_BROADWAY_DISPLAY__ */