00001 /* $XConsortium: Scrollbar.h,v 1.7 91/07/26 21:59:31 converse Exp $ */ 00002 00003 /*********************************************************** 00004 00005 Copyright (c) 1987, 1988 X Consortium 00006 00007 Permission is hereby granted, free of charge, to any person obtaining a copy 00008 of this software and associated documentation files (the "Software"), to deal 00009 in the Software without restriction, including without limitation the rights 00010 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 00011 copies of the Software, and to permit persons to whom the Software is 00012 furnished to do so, subject to the following conditions: 00013 00014 The above copyright notice and this permission notice shall be included in 00015 all copies or substantial portions of the Software. 00016 00017 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00018 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00019 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00020 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 00021 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00022 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00023 00024 Except as contained in this notice, the name of the X Consortium shall not be 00025 used in advertising or otherwise to promote the sale, use or other dealings 00026 in this Software without prior written authorization from the X Consortium. 00027 00028 00029 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. 00030 00031 All Rights Reserved 00032 00033 Permission to use, copy, modify, and distribute this software and its 00034 documentation for any purpose and without fee is hereby granted, 00035 provided that the above copyright notice appear in all copies and that 00036 both that copyright notice and this permission notice appear in 00037 supporting documentation, and that the name of Digital not be 00038 used in advertising or publicity pertaining to distribution of the 00039 software without specific, written prior permission. 00040 00041 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 00042 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 00043 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 00044 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 00045 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 00046 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 00047 SOFTWARE. 00048 00049 ******************************************************************/ 00050 00051 #ifndef _Scrollbar_h 00052 #define _Scrollbar_h 00053 00054 /**************************************************************** 00055 * 00056 * Scrollbar Widget 00057 * 00058 ****************************************************************/ 00059 00060 #include <X11/Xmu/Converters.h> 00061 #include <X11/Xfuncproto.h> 00062 00063 /* Scrollbar resources: 00064 00065 Name Class RepType Default Value 00066 ---- ----- ------- ------------- 00067 accelerators Accelerators AcceleratorTable NULL 00068 ancestorSensitive AncestorSensitive Boolean True 00069 background Background Pixel XtDefaultBackground 00070 backgroundPixmap Pixmap Pixmap XtUnspecifiedPixmap 00071 borderColor BorderColor Pixel XtDefaultForeground 00072 borderPixmap Pixmap Pixmap XtUnspecifiedPixmap 00073 borderWidth BorderWidth Dimension 1 00074 colormap Colormap Colormap parent's colormap 00075 cursor Cursor Cursor None 00076 cursorName Cursor String NULL 00077 depth Depth int parent's depth 00078 destroyCallback Callback XtCallbackList NULL 00079 foreground Foreground Pixel XtDefaultForeground 00080 height Height Dimension length or thickness 00081 insensitiveBorder Insensitive Pixmap GreyPixmap 00082 jumpProc Callback XtCallbackList NULL 00083 length Length Dimension 1 00084 mappedWhenManaged MappedWhenManaged Boolean True 00085 minimumThumb MinimumThumb Dimension 7 00086 orientation Orientation XtOrientation XtorientVertical 00087 pointerColor Foreground Pixel XtDefaultForeground 00088 pointerColorBackground Background Pixel XtDefaultBackground 00089 screen Screen Screen parent's screen 00090 scrollDCursor Cursor Cursor XC_sb_down_arrow 00091 scrollHCursor Cursor Cursor XC_sb_h_double_arrow 00092 scrollLCursor Cursor Cursor XC_sb_left_arrow 00093 scrollProc Callback XtCallbackList NULL 00094 scrollRCursor Cursor Cursor XC_sb_right_arrow 00095 scrollUCursor Cursor Cursor XC_sb_up_arrow 00096 scrollVCursor Cursor Cursor XC_sb_v_double_arrow 00097 sensitive Sensitive Boolean True 00098 shown Shown Float 0.0 00099 thickness Thickness Dimension 14 00100 thumb Thumb Bitmap GreyPixmap 00101 thumbProc Callback XtCallbackList NULL 00102 topOfThumb TopOfThumb Float 0.0 00103 pickTop PickTop Boolean False 00104 translations Translations TranslationTable see source or doc 00105 width Width Dimension thickness or length 00106 x Position Position 0 00107 y Position Position 0 00108 00109 */ 00110 00111 /* 00112 * Most things we need are in StringDefs.h 00113 */ 00114 00115 #define XtCMinimumThumb "MinimumThumb" 00116 #define XtCShown "Shown" 00117 #define XtCTopOfThumb "TopOfThumb" 00118 #define XtCPickTop "PickTop" 00119 00120 #define XtNminimumThumb "minimumThumb" 00121 #define XtNtopOfThumb "topOfThumb" 00122 #define XtNpickTop "pickTop" 00123 00124 typedef struct _ScrollbarRec *ScrollbarWidget; 00125 typedef struct _ScrollbarClassRec *ScrollbarWidgetClass; 00126 00127 extern WidgetClass scrollbarWidgetClass; 00128 00129 _XFUNCPROTOBEGIN 00130 00131 extern void XawScrollbarSetThumb( 00132 #if NeedFunctionPrototypes 00133 Widget /* scrollbar */, 00134 #if NeedWidePrototypes 00135 /* float */ double /* top */, 00136 /* float */ double /* shown */ 00137 #else 00138 float /* top */, 00139 float /* shown */ 00140 #endif 00141 #endif 00142 ); 00143 00144 _XFUNCPROTOEND 00145 00146 #endif /* _Scrollbar_h */
1.5.1