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 / ValuatorP.h < prev    next >
C/C++ Source or Header  |  1991-02-19  |  2KB  |  80 lines

  1. /*
  2.  * $XConsortium: ScrollP.h,v 1.20 89/08/24 16:37:46 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 _ValuatorP_h
  31. #define _ValuatorP_h
  32.  
  33. #include "Valuator.h"
  34.  
  35. #include <X11/Xaw/FormP.h>
  36.  
  37. typedef struct {int empty;} ValuatorClassPart;
  38.  
  39. typedef struct _ValuatorClassRec {
  40.     CoreClassPart    core_class;
  41.     CompositeClassPart    composite_class;
  42.     ConstraintClassPart    constraint_class;
  43.     FormClassPart    form_class;
  44.     ValuatorClassPart        Valuator_class;
  45. } ValuatorClassRec;
  46.  
  47. extern ValuatorClassRec valuatorClassRec;
  48.  
  49. typedef struct _ValuatorPart {
  50.     float min;
  51.     float max;
  52.     float delta;
  53.     float value;
  54.     float lastValueShown;
  55.     float increment;
  56.     char *format;
  57.     Widget valueWidget;
  58.     Widget scrollWidget;
  59.     Widget minLabelWidget;
  60.     Widget maxLabelWidget;
  61. } ValuatorPart;
  62.  
  63. typedef struct _ValuatorRec {
  64.     CorePart        core;
  65.     CompositePart    composite;
  66.     ConstraintPart    constraint;
  67.     FormPart        form;
  68.     ValuatorPart    valuator;
  69. } ValuatorRec;
  70.  
  71. typedef struct {int empty;} ValuatorConstraintsPart;
  72.  
  73. typedef struct _ValuatorConstraintsRec {
  74.     FormConstraintsPart      form;
  75.     ValuatorConstraintsPart valuator;
  76. } ValuatorConstraintsRec, *ValuatorConstraints;
  77.  
  78.  
  79. #endif /* _ValuatorP_h */
  80.