xref: /386bsd/usr/X386/include/X11/Xaw/Panner.h (revision a2142627)
1 /*
2  * $XConsortium: Panner.h,v 1.21 91/05/04 18:59:17 rws Exp $
3  *
4  * Copyright 1989 Massachusetts Institute of Technology
5  *
6  * Permission to use, copy, modify, distribute, and sell this software and its
7  * documentation for any purpose is hereby granted without fee, provided that
8  * the above copyright notice appear in all copies and that both that
9  * copyright notice and this permission notice appear in supporting
10  * documentation, and that the name of M.I.T. not be used in advertising or
11  * publicity pertaining to distribution of the software without specific,
12  * written prior permission.  M.I.T. makes no representations about the
13  * suitability of this software for any purpose.  It is provided "as is"
14  * without express or implied warranty.
15  *
16  * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
17  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T.
18  * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
20  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
21  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
22  *
23  * Author:  Jim Fulton, MIT X Consortium
24  */
25 
26 #ifndef _XawPanner_h
27 #define _XawPanner_h
28 
29 #include <X11/Xaw/Reports.h>
30 
31 /*****************************************************************************
32  *
33  * Panner Widget (subclass of Simple)
34  *
35  * This widget is used to represent navigation in a 2d coordinate system.
36  *
37  * Parameters:
38  *
39  *  Name		Class		Type		Default
40  *  ----		-----		----		-------
41  *
42  *  allowOff		AllowOff	Boolean		FALSE
43  *  background		Background	Pixel		XtDefaultBackground
44  *  backgroundStipple	BackgroundStipple	String	NULL
45  *  canvasWidth		CanvasWidth	Dimension	0
46  *  canvasHeight	CanvasHeight	Dimension	0
47  *  defaultScale	DefaultScale	Dimension	8 percent
48  *  foreground		Foreground	Pixel		XtDefaultBackground
49  *  internalSpace	InternalSpace	Dimension	4
50  *  lineWidth		LineWidth	Dimension	0
51  *  reportCallback	ReportCallback	XtCallbackList	NULL
52  *  resize		Resize		Boolean		TRUE
53  *  rubberBand		RubberBand	Boolean		FALSE
54  *  shadowColor		ShadowColor	Pixel		XtDefaultForeground
55  *  shadowThickness	ShadowThickness	Dimension	2
56  *  sliderX		SliderX		Position	0
57  *  sliderY		SliderY		Position	0
58  *  sliderWidth		SliderWidth	Dimension	0
59  *  sliderHeight	SliderHeight	Dimension	0
60  *
61  *****************************************************************************/
62 
63 					/* new instance and class names */
64 #ifndef _XtStringDefs_h_
65 #define XtNresize "resize"
66 #define XtCResize "Resize"
67 #endif
68 
69 #define XtNallowOff "allowOff"
70 #define XtCAllowOff "AllowOff"
71 #define XtNbackgroundStipple "backgroundStipple"
72 #define XtCBackgroundStipple "BackgroundStipple"
73 #define XtNdefaultScale "defaultScale"
74 #define XtCDefaultScale "DefaultScale"
75 #define XtNcanvasWidth "canvasWidth"
76 #define XtCCanvasWidth "CanvasWidth"
77 #define XtNcanvasHeight "canvasHeight"
78 #define XtCCanvasHeight "CanvasHeight"
79 #define XtNinternalSpace "internalSpace"
80 #define XtCInternalSpace "InternalSpace"
81 #define XtNlineWidth "lineWidth"
82 #define XtCLineWidth "LineWidth"
83 #define XtNrubberBand "rubberBand"
84 #define XtCRubberBand "RubberBand"
85 #define XtNshadowThickness "shadowThickness"
86 #define XtCShadowThickness "ShadowThickness"
87 #define XtNshadowColor "shadowColor"
88 #define XtCShadowColor "ShadowColor"
89 #define XtNsliderX "sliderX"
90 #define XtCSliderX "SliderX"
91 #define XtNsliderY "sliderY"
92 #define XtCSliderY "SliderY"
93 #define XtNsliderWidth "sliderWidth"
94 #define XtCSliderWidth "SliderWidth"
95 #define XtNsliderHeight "sliderHeight"
96 #define XtCSliderHeight "SliderHeight"
97 
98 					/* external declarations */
99 extern WidgetClass pannerWidgetClass;
100 
101 typedef struct _PannerClassRec *PannerWidgetClass;
102 typedef struct _PannerRec      *PannerWidget;
103 
104 #endif /* _XawPanner_h */
105