home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / s / stex2-18.zip / SeeTeX / Xtex / Valuator.h < prev    next >
C/C++ Source or Header  |  1991-02-19  |  3KB  |  107 lines

  1. /*
  2. * $XConsortium: Valuator.h,v 1.24 89/08/24 16:37:44 kit Exp $
  3. */
  4.  
  5.  
  6. /***********************************************************
  7. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  8. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  9.  
  10.                         All Rights Reserved
  11.  
  12. Permission to use, copy, modify, and distribute this software and its 
  13. documentation for any purpose and without fee is hereby granted, 
  14. provided that the above copyright notice appear in all copies and that
  15. both that copyright notice and this permission notice appear in 
  16. supporting documentation, and that the names of Digital or MIT not be
  17. used in advertising or publicity pertaining to distribution of the
  18. software without specific, written prior permission.  
  19.  
  20. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  21. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  22. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  23. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  24. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  25. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  26. SOFTWARE.
  27.  
  28. ******************************************************************/
  29.  
  30. #ifndef _Valuator_h
  31. #define _Valuator_h
  32.  
  33. /****************************************************************
  34.  *
  35.  * Valuatorbar Widget
  36.  *
  37.  ****************************************************************/
  38.  
  39. #include <X11/Xmu/Converters.h>
  40.  
  41. /* Parameters:
  42.  
  43.  Name             Class        RepType        Default Value
  44.  ----             -----        -------        -------------
  45.  background         Background        Pixel        White
  46.  border             BorderColor    Pixel        Black
  47.  borderWidth         BorderWidth    Dimension    1
  48.  destroyCallback     Callback        Function        NULL
  49.  foreground         Color        Pixel        Black
  50.  height             Height        Dimension    length or thickness
  51.  jumpProc         Callback        Function    NULL
  52.  length             Length        Dimension    1
  53.  mappedWhenManaged   MappedWhenManaged    Boolean        True
  54.  orientation         Orientation    XtOrientation    XtorientVertical
  55.  reverseVideo         ReverseVideo    Boolean        False
  56.  ValuatorDCursor         Cursor        Cursor        XC_sb_down_arrow
  57.  ValuatorHCursor         Cursor        Cursor        XC_sb_h_double_arrow
  58.  ValuatorLCursor         Cursor        Cursor        XC_sb_left_arrow
  59.  ValuatorProc         Callback        Function    NULL
  60.  ValuatorRCursor         Cursor        Cursor        XC_sb_right_arrow
  61.  ValuatorUCursor         Cursor        Cursor        XC_sb_up_arrow
  62.  ValuatorVCursor         Cursor        Cursor        XC_sb_v_double_arrow
  63.  sensitive         Sensitive        Boolean        True
  64.  shown             Shown        float        0.0
  65.  thickness         Thickness        Dimension    14
  66.  thumb             Thumb        Pixmap        Grey
  67.  thumbProc         Callback        Function    NULL
  68.  top             Top        float        0.0
  69.  width             Width        Dimension    thickness or length
  70.  x             Position        Position    0
  71.  y             Position        Position    0
  72.  
  73. */
  74.  
  75. #define XtCMin "Min"
  76. #define XtNmin "min"
  77.  
  78. #define XtCMax "Max"
  79. #define XtNmax "max"
  80.  
  81. #ifndef XtCValue
  82. #  define XtCValue "Value"
  83. #  define XtNvalue "value"
  84. #endif
  85.  
  86. #define XtCIncrement "Increment"
  87. #define XtNincrement "increment"
  88.  
  89. #define XtCFormat "Format"
  90. #define XtNformat "format"
  91.  
  92. #define XtCValueLabel "ValueLabel"
  93. #define XtNvalueLabel "valueLabel"
  94.  
  95. typedef struct _ValuatorRec      *ValuatorWidget;
  96. typedef struct _ValuatorClassRec *ValuatorWidgetClass;
  97.  
  98. extern WidgetClass valuatorWidgetClass;
  99.  
  100. typedef union
  101. {
  102.   int i;
  103.   float f;
  104. } IntFloatUnion;
  105.  
  106. #endif /* _Valuator_h */
  107.