]> Pileus Git - ~andy/gtk/blob - gdk/x11/gdkasync.h
2e3893b4870786deb76ea1e1212354c7160269cd
[~andy/gtk] / gdk / x11 / gdkasync.h
1 /* GTK - The GTK+ Toolkit
2  * gdkasync.h: Utility functions using the Xlib asynchronous interfaces
3  * Copyright (C) 2003, Red Hat, Inc.
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_ASYNC_H__
22 #define __GDK_ASYNC_H__
23
24 #include <X11/Xlib.h>
25 #include "gdk.h"
26
27 G_BEGIN_DECLS
28
29 typedef struct _GdkChildInfoX11 GdkChildInfoX11;
30
31 typedef void (*GdkSendXEventCallback) (Window   window,
32                                        gboolean success,
33                                        gpointer data);
34
35 struct _GdkChildInfoX11
36 {
37   Window window;
38   gint x;
39   gint y;
40   gint width;
41   gint height;
42   guint is_mapped : 1;
43   guint has_wm_state : 1;
44   guint window_class : 2;
45 };
46
47 void _gdk_x11_send_client_message_async (GdkDisplay            *display,
48                                          Window                 window,
49                                          gboolean               propagate,
50                                          glong                  event_mask,
51                                          XClientMessageEvent   *event_send,
52                                          GdkSendXEventCallback  callback,
53                                          gpointer               data);
54 void _gdk_x11_set_input_focus_safe      (GdkDisplay            *display,
55                                          Window                 window,
56                                          int                    revert_to,
57                                          Time                   time);
58
59 gboolean _gdk_x11_get_window_child_info (GdkDisplay       *display,
60                                          Window            window,
61                                          gboolean          get_wm_state,
62                                          gboolean         *win_has_wm_state,
63                                          GdkChildInfoX11 **children,
64                                          guint            *nchildren);
65
66 G_END_DECLS
67
68 #endif /* __GDK_ASYNC_H__ */