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