1 /* Copyright (c) 1993, Oracle and/or its affiliates. All rights reserved.
3 * Permission is hereby granted, free of charge, to any person obtaining a
4 * copy of this software and associated documentation files (the "Software"),
5 * to deal in the Software without restriction, including without limitation
6 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
7 * and/or sell copies of the Software, and to permit persons to whom the
8 * Software is furnished to do so, subject to the following conditions:
10 * The above copyright notice and this permission notice (including the next
11 * paragraph) shall be included in all copies or substantial portions of the
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE.
25 * win_grab.h - DGA Window Grabber definitions
34 * WIN_GRAB.H Window Grabber
36 * MACROS: These return info from the client page.
38 * wx_infop(clientp) the info page.
39 * wx_devname_c(clientp) returns the w_devname field.
40 * wx_version_c(clientp) the version
41 * wx_lock_c(clientp) locks the info page.
42 * wx_unlock_c(clientp) unlocks the info page.
44 * These return info from the info page.
46 * wx_devname(infop) returns the w_devname field.
47 * wx_version(infop) the version
49 * wx_shape_flags(infop) Shapes flag
55 #define DGA_SH_RECT_FLAG 1
56 #define DGA_SH_EMPTY_FLAG 128
60 * Window grabber info macros
63 #define wx_infop(clientp) ((WXINFO *) (clientp)->w_info)
65 #define wx_version(infop) ((infop)->w_version)
67 #define wx_shape_flags(infop) \
68 (((struct class_SHAPE_vn *) \
70 (infop)->u.vn.w_shapeoff))->SHAPE_FLAGS) \
73 #endif /* _WIN_GRAB_H */