xref: /386bsd/usr/X386/include/X11/Xaw/Template.h (revision a2142627)
1 /* $XConsortium: Template.h,v 1.5 90/12/19 18:46:00 converse Exp $ */
2 
3 /* Copyright	Massachusetts Institute of Technology	1987, 1988
4  *
5  * Permission to use, copy, modify, distribute, and sell this software and its
6  * documentation for any purpose is hereby granted without fee, provided that
7  * the above copyright notice appear in all copies and that both that
8  * copyright notice and this permission notice appear in supporting
9  * documentation, and that the name of M.I.T. not be used in advertising or
10  * publicity pertaining to distribution of the software without specific,
11  * written prior permission.  M.I.T. makes no representations about the
12  * suitability of this software for any purpose.  It is provided "as is"
13  * without express or implied warranty.
14  *
15  * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
16  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T.
17  * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
18  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
19  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
20  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21  *
22  */
23 
24 #ifndef _Template_h
25 #define _Template_h
26 
27 /****************************************************************
28  *
29  * Template widget
30  *
31  ****************************************************************/
32 
33 /* Resources:
34 
35  Name		     Class		RepType		Default Value
36  ----		     -----		-------		-------------
37  background	     Background		Pixel		XtDefaultBackground
38  border		     BorderColor	Pixel		XtDefaultForeground
39  borderWidth	     BorderWidth	Dimension	1
40  destroyCallback     Callback		Pointer		NULL
41  height		     Height		Dimension	0
42  mappedWhenManaged   MappedWhenManaged	Boolean		True
43  sensitive	     Sensitive		Boolean		True
44  width		     Width		Dimension	0
45  x		     Position		Position	0
46  y		     Position		Position	0
47 
48 */
49 
50 /* define any special resource names here that are not in <X11/StringDefs.h> */
51 
52 #define XtNtemplateResource "templateResource"
53 
54 #define XtCTemplateResource "TemplateResource"
55 
56 /* declare specific TemplateWidget class and instance datatypes */
57 
58 typedef struct _TemplateClassRec*	TemplateWidgetClass;
59 typedef struct _TemplateRec*		TemplateWidget;
60 
61 /* declare the class constant */
62 
63 extern WidgetClass templateWidgetClass;
64 
65 #endif /* _Template_h */
66