1 /* GTK - The GIMP Toolkit
2 * gdkasync.h: Utility functions using the Xlib asynchronous interfaces
3 * Copyright (C) 2003, Red Hat, Inc.
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.
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.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef __GDK_ASYNC_H__
20 #define __GDK_ASYNC_H__
22 #include "gdkdisplay.h"
27 typedef struct _GdkChildInfoX11 GdkChildInfoX11;
29 typedef void (*GdkSendXEventCallback) (Window window,
32 typedef void (*GdkRoundTripCallback) (GdkDisplay *display,
36 struct _GdkChildInfoX11
44 guint has_wm_state : 1;
45 guint window_class : 2;
48 void _gdk_x11_send_client_message_async (GdkDisplay *display,
52 XClientMessageEvent *event_send,
53 GdkSendXEventCallback callback,
56 gboolean _gdk_x11_get_window_child_info (GdkDisplay *display,
58 gboolean get_wm_state,
59 gboolean *win_has_wm_state,
60 GdkChildInfoX11 **children,
63 void _gdk_x11_roundtrip_async (GdkDisplay *display,
64 GdkRoundTripCallback callback,
69 #endif /* __GDK_ASYNC_H__ */