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, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #ifndef __GDK_ASYNC_H__
22 #define __GDK_ASYNC_H__
29 typedef struct _GdkChildInfoX11 GdkChildInfoX11;
31 typedef void (*GdkSendXEventCallback) (Window window,
34 typedef void (*GdkRoundTripCallback) (GdkDisplay *display,
38 struct _GdkChildInfoX11
46 guint has_wm_state : 1;
47 guint window_class : 2;
50 void _gdk_x11_send_client_message_async (GdkDisplay *display,
54 XClientMessageEvent *event_send,
55 GdkSendXEventCallback callback,
57 void _gdk_x11_set_input_focus_safe (GdkDisplay *display,
62 gboolean _gdk_x11_get_window_child_info (GdkDisplay *display,
64 gboolean get_wm_state,
65 gboolean *win_has_wm_state,
66 GdkChildInfoX11 **children,
69 void _gdk_x11_roundtrip_async (GdkDisplay *display,
70 GdkRoundTripCallback callback,
75 #endif /* __GDK_ASYNC_H__ */