master
ブランチ master
ShaderPlayground / deps / xlibre / include / X11 / Xaw / Panner.h
3.7 KB、105行 生 Blame 履歴
1/*
2 *
3Copyright 1989, 1998 The Open Group
4
5Permission to use, copy, modify, distribute, and sell this software and its
6documentation for any purpose is hereby granted without fee, provided that
7the above copyright notice appear in all copies and that both that
8copyright notice and this permission notice appear in supporting
9documentation.
10
11The above copyright notice and this permission notice shall be included in
12all copies or substantial portions of the Software.
13
14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
21Except as contained in this notice, the name of The Open Group shall not be
22used in advertising or otherwise to promote the sale, use or other dealings
23in 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
100extern WidgetClass pannerWidgetClass;
101
102typedef struct _PannerClassRec *PannerWidgetClass;
103typedef struct _PannerRec *PannerWidget;
104
105#endif /* _XawPanner_h */