1 /*
2  *
3 Copyright 1989, 1998  The Open Group
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.
10 
11 The above copyright notice and this permission notice shall be included in
12 all copies or substantial portions of the Software.
13 
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 THE
17 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20 
21 Except as contained in this notice, the name of The Open Group shall not be
22 used in advertising or otherwise to promote the sale, use or other dealings
23 in this Software without prior written authorization from The Open Group.
24  *
25  * Author:  Jim Fulton, MIT X Consortium
26  */
27 
28 #ifndef _XawPanner_h
29 #define _XawPanner_h
30 
31 #include <X11/Intrinsic.h>
32 #include <X11/Xaw/Reports.h>
33 
34 /*****************************************************************************
35  *
36  * Panner Widget (subclass of Simple)
37  *
38  * This widget is used to represent navigation in a 2d coordinate system
39  *
40  * Resources:
41  *
42  *  Name		Class		Type		Default
43  *  ----		-----		----		-------
44  *
45  *  allowOff		AllowOff	Boolean		FALSE
46  *  background		Background	Pixel		XtDefaultBackground
47  *  backgroundStipple	BackgroundStipple	String	NULL
48  *  canvasWidth		CanvasWidth	Dimension	0
49  *  canvasHeight	CanvasHeight	Dimension	0
50  *  defaultScale	DefaultScale	Dimension	8 percent
51  *  foreground		Foreground	Pixel		XtDefaultBackground
52  *  internalSpace	InternalSpace	Dimension	4
53  *  lineWidth		LineWidth	Dimension	0
54  *  reportCallback	ReportCallback	XtCallbackList	NULL
55  *  resize		Resize		Boolean		TRUE
56  *  rubberBand		RubberBand	Boolean		FALSE
57  *  shadowColor		ShadowColor	Pixel		XtDefaultForeground
58  *  shadowThickness	ShadowThickness	Dimension	2
59  *  sliderX		SliderX		Position	0
60  *  sliderY		SliderY		Position	0
61  *  sliderWidth		SliderWidth	Dimension	0
62  *  sliderHeight	SliderHeight	Dimension	0
63  *
64  *****************************************************************************/
65 
66 #ifndef _XtStringDefs_h_
67 #define XtNresize "resize"
68 #define XtCResize "Resize"
69 #endif
70 
71 #define XtNallowOff "allowOff"
72 #define XtCAllowOff "AllowOff"
73 #define XtNbackgroundStipple "backgroundStipple"
74 #define XtCBackgroundStipple "BackgroundStipple"
75 #define XtNdefaultScale "defaultScale"
76 #define XtCDefaultScale "DefaultScale"
77 #define XtNcanvasWidth "canvasWidth"
78 #define XtCCanvasWidth "CanvasWidth"
79 #define XtNcanvasHeight "canvasHeight"
80 #define XtCCanvasHeight "CanvasHeight"
81 #define XtNinternalSpace "internalSpace"
82 #define XtCInternalSpace "InternalSpace"
83 #define XtNlineWidth "lineWidth"
84 #define XtCLineWidth "LineWidth"
85 #define XtNrubberBand "rubberBand"
86 #define XtCRubberBand "RubberBand"
87 #define XtNshadowThickness "shadowThickness"
88 #define XtCShadowThickness "ShadowThickness"
89 #define XtNshadowColor "shadowColor"
90 #define XtCShadowColor "ShadowColor"
91 #define XtNsliderX "sliderX"
92 #define XtCSliderX "SliderX"
93 #define XtNsliderY "sliderY"
94 #define XtCSliderY "SliderY"
95 #define XtNsliderWidth "sliderWidth"
96 #define XtCSliderWidth "SliderWidth"
97 #define XtNsliderHeight "sliderHeight"
98 #define XtCSliderHeight "SliderHeight"
99 
100 extern WidgetClass pannerWidgetClass;
101 
102 typedef struct _PannerClassRec *PannerWidgetClass;
103 typedef struct _PannerRec      *PannerWidget;
104 
105 #endif /* _XawPanner_h */
106