1 /* $XConsortium: GrabShellP.h /main/5 1995/07/15 20:51:26 drk $ */
2 /*
3  * Motif
4  *
5  * Copyright (c) 1987-2012, The Open Group. All rights reserved.
6  *
7  * These libraries and programs are free software; you can
8  * redistribute them and/or modify them under the terms of the GNU
9  * Lesser General Public License as published by the Free Software
10  * Foundation; either version 2 of the License, or (at your option)
11  * any later version.
12  *
13  * These libraries and programs are distributed in the hope that
14  * they will be useful, but WITHOUT ANY WARRANTY; without even the
15  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16  * PURPOSE. See the GNU Lesser General Public License for more
17  * details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with these librararies and programs; if not, write
21  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
22  * Floor, Boston, MA 02110-1301 USA
23  */
24 /*
25  * HISTORY
26  */
27 #ifndef _XmGrabShellP_h
28 #define _XmGrabShellP_h
29 
30 #include <Xm/GrabShell.h>
31 #include <Xm/XmP.h>
32 #include <X11/ShellP.h>
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 /* The GrabShell instance record */
39 
40 typedef struct
41 {
42   Cursor	cursor;
43   Dimension	shadow_thickness;
44   Pixel		top_shadow_color;
45   Pixmap  	top_shadow_pixmap;
46   Pixel   	bottom_shadow_color;
47   Pixmap  	bottom_shadow_pixmap;
48   GC      	top_shadow_GC;
49   GC      	bottom_shadow_GC;
50   Boolean	owner_events;
51   int		grab_style;
52   /* Internal fields */
53   Time		post_time;
54   Time		unpost_time;
55   Boolean	mapped;
56   Window	old_focus;
57   int		old_revert_to;
58 } XmGrabShellPart;
59 
60 
61 /* Full instance record declaration */
62 
63 typedef  struct _XmGrabShellRec
64 {
65   CorePart		core;
66   CompositePart		composite;
67   ShellPart		shell;
68   WMShellPart		wm_shell;
69   VendorShellPart	vendor_shell;
70   XmGrabShellPart	grab_shell;
71 } XmGrabShellRec;
72 
73 typedef  struct _XmGrabShellWidgetRec /* OBSOLETE (for compatibility only).*/
74 {
75   CorePart		core;
76   CompositePart		composite;
77   ShellPart		shell;
78   WMShellPart		wm_shell;
79   VendorShellPart	vendor_shell;
80   XmGrabShellPart	grab_shell;
81 } XmGrabShellWidgetRec;
82 
83 
84 
85 /* GrabShell class structure */
86 
87 typedef struct
88 {
89   XtPointer		extension;	 /* Pointer to extension record */
90 } XmGrabShellClassPart;
91 
92 
93 /* Full class record declaration */
94 
95 typedef struct _XmGrabShellClassRec
96 {
97   CoreClassPart	    	core_class;
98   CompositeClassPart	composite_class;
99   ShellClassPart	shell_class;
100   WMShellClassPart	wm_shell_class;
101   VendorShellClassPart	vendor_shell_class;
102   XmGrabShellClassPart  grab_shell_class;
103 } XmGrabShellClassRec;
104 
105 
106 externalref XmGrabShellClassRec  xmGrabShellClassRec;
107 
108 /********    Private Function Declarations    ********/
109 
110 /********    End Private Function Declarations    ********/
111 
112 
113 #ifdef __cplusplus
114 }  /* Close scope of 'extern "C"' declaration which encloses file. */
115 #endif
116 
117 #endif /* _XmGrabShellP_h */
118 /* DON'T ADD STUFF AFTER THIS #endif */
119