1 /* $XConsortium: ClipWindowP.h /main/5 1995/07/15 20:48:39 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 _XmClipWindowP_h
28 #define _XmClipWindowP_h
29 
30 #include <Xm/DrawingAP.h>
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 externalref WidgetClass xmClipWindowWidgetClass;
37 
38 typedef struct _XmClipWindowClassRec * XmClipWindowWidgetClass;
39 typedef struct _XmClipWindowRec      * XmClipWindowWidget;
40 
41 
42 #ifndef XmIsClipWindow
43 #define XmIsClipWindow(w)  (XtIsSubclass (w, xmClipWindowWidgetClass))
44 #endif
45 
46 
47 /*  New fields for the ClipWindow widget class record  */
48 
49 typedef struct
50 {
51    XtPointer extension;
52 } XmClipWindowClassPart;
53 
54 
55 /* Full class record declaration */
56 
57 typedef struct _XmClipWindowClassRec
58 {
59 	CoreClassPart		core_class;
60 	CompositeClassPart	composite_class;
61 	ConstraintClassPart	constraint_class;
62 	XmManagerClassPart	manager_class;
63 	XmDrawingAreaClassPart	drawing_area_class;
64 	XmClipWindowClassPart	clip_window_class;
65 } XmClipWindowClassRec;
66 
67 externalref XmClipWindowClassRec xmClipWindowClassRec;
68 
69 
70 /* New fields for the ClipWindow widget record */
71 
72 typedef struct
73 {
74 	unsigned char flags;
75 	Dimension old_width ;
76 } XmClipWindowPart;
77 
78 
79 /****************************************************************
80  *
81  * Full instance record declaration
82  *
83  ****************************************************************/
84 
85 typedef struct _XmClipWindowRec
86 {
87 	CorePart		core;
88 	CompositePart		composite;
89 	ConstraintPart		constraint;
90 	XmManagerPart		manager;
91 	XmDrawingAreaPart	drawing_area;
92 	XmClipWindowPart	clip_window;
93 } XmClipWindowRec;
94 
95 
96 /********    Private Function Declarations    ********/
97 /********    End Private Function Declarations    ********/
98 
99 
100 #ifdef __cplusplus
101 }  /* Close scope of 'extern "C"' declaration which encloses file. */
102 #endif
103 
104 #endif /* _XmClipWindowP_h */
105 /* DON'T ADD ANYTHING AFTER THIS #endif */
106