Old Bar.h
  1 /* $XConsortium: Bar.h,v 1.2 88/10/25 17:22:09 swick Exp $ */
  2 /* Copyright    Massachusetts Institute of Technology   1987, 1988 */
  3 
  4 #ifndef _Bar_h
  5 #define _Bar_h
  6 
  7 /****************************************************************
  8  *
  9  * Bar widget
 10  *
 11  ****************************************************************/
 12 
 13 /* Resources:
 14 
 15  Name                Class              RepType         Default Value
 16  ----                -----              -------         -------------
 17  background          Background         Pixel           XtDefaultBackground
 18  border              BorderColor        Pixel           XtDefaultForeground
 19  borderWidth         BorderWidth        Dimension       1
 20  destroyCallback     Callback           Pointer         NULL
 21  height              Height             Dimension       0
 22  mappedWhenManaged   MappedWhenManaged  Boolean         True
 23  sensitive           Sensitive          Boolean         True
 24  width               Width              Dimension       0
 25  x                   Position           Position        0
 26  y                   Position           Position        0
 27  fillStyle           FillStyle          Short           0
 28  pixmaps             Pixmaps            Array           0
 29 
 30 */
 31 
 32 /* declare specific BarWidget class and instance datatypes */
 33 
 34 typedef struct _BarClassRec*    BarWidgetClass;
 35 typedef struct _BarRec*         BarWidget;
 36 
 37 /* declare barWidget name and class atoms */
 38 /*
 39  * If FillStyle is solid, the array pixmaps contains the Pixels to use
 40  * for the display.  If FillStyle is FillTiled, the array contains the
 41  * Pixmaps to use for tiling, if FillStyle is FillStippled or
 42  * FillOpaqueStippled, then the array contains the Pixmaps to be used as
 43  * stipples.
 44  */
 45 #define XtNfillStyle    "fillStyle"
 46 #define XtCFillStyle    "FillStyle"
 47 #define XtNpixmaps      "pixmaps"
 48 #define XtCPixmaps      "Pixmaps"
 49 
 50 /* declare the class constant */
 51 
 52 extern WidgetClass barWidgetClass;
 53 
 54 /* Public procedures */
 55 extern void SetBarValues(/* BarWidget w, int *values, int nvalues */);
 56 
 57 #endif  /* _Bar_h */