1 /* xscreensaver, Copyright (c) 1992, 1993, 1994, 1997, 2001
2 * Jamie Zawinski <jwz@jwz.org>
4 * Permission to use, copy, modify, distribute, and sell this software and its
5 * documentation for any purpose is hereby granted without fee, provided that
6 * the above copyright notice appear in all copies and that both that
7 * copyright notice and this permission notice appear in supporting
8 * documentation. No representations are made about the suitability of this
9 * software for any purpose. It is provided "as is" without express or
13 #ifndef __GRABSCREEN_H__
14 #define __GRABSCREEN_H__
16 /* This will write a snapshot of the screen image into the given window.
17 Beware that the colormap of the window may also be changed (to match
18 the bits that were drawn.)
20 extern void grab_screen_image (Screen *, Window);
22 /* Whether one should use GCSubwindowMode when drawing on this window
23 (assuming a screen image has been grabbed onto it.) Yes, this is a
25 extern Bool use_subwindow_mode_p(Screen *screen, Window window);
27 /* Whether the given window is:
28 - the real root window;
29 - the virtual root window;
30 - a direct child of the root window;
31 - a direct child of the window manager's decorations.
33 extern Bool top_level_window_p(Screen *screen, Window window);
35 #endif /* __GRABSCREEN_H__ */