Debian Codegraph @

gdk/x11/gdkasync.h

raw
1 /* GTK - The GIMP 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 typedef void (*GdkRoundTripCallback) (GdkDisplay *display,
35 gpointer data,
36 gulong serial);
37
38 struct _GdkChildInfoX11
39 {
40 Window window;
41 gint x;
42 gint y;
43 gint width;
44 gint height;
45 guint is_mapped : 1;
46 guint has_wm_state : 1;
47 guint window_class : 2;
48 };
49
50 void _gdk_x11_send_client_message_async (GdkDisplay *display,
51 Window window,
52 gboolean propagate,
53 glong event_mask,
54 XClientMessageEvent *event_send,
55 GdkSendXEventCallback callback,
56 gpointer data);
57 void _gdk_x11_set_input_focus_safe (GdkDisplay *display,
58 Window window,
59 int revert_to,
60 Time time);
61
62 gboolean _gdk_x11_get_window_child_info (GdkDisplay *display,
63 Window window,
64 gboolean get_wm_state,
65 gboolean *win_has_wm_state,
66 GdkChildInfoX11 **children,
67 guint *nchildren);
68
69 void _gdk_x11_roundtrip_async (GdkDisplay *display,
70 GdkRoundTripCallback callback,
71 gpointer data);
72
73 G_END_DECLS
74
75 #endif /* __GDK_ASYNC_H__ */