home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xtici.zip / xtici / widgets / Zoom.h < prev    next >
C/C++ Source or Header  |  1991-08-28  |  4KB  |  115 lines

  1. /*
  2.  * Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
  3.  *     All Rights Reserved
  4.  * 
  5.  * This file is a component of an X Window System client which uses the Xcms 
  6.  * Color Management System.  TekColor is a trademark of Tektronix, Inc.  The
  7.  * TekColor Editor is the subject of U.S. and foreign patents pending.  The
  8.  * term "TekHVC" designates a particular color space that is the subject of
  9.  * U.S. Patent No. 4,985,853 (equivalent foreign patents pending).
  10.  * Permission is hereby granted to use, copy, modify, sell, and otherwise
  11.  * distribute this software and its documentation for the X Window System
  12.  * environment, for any purpose and without fee, provided that:
  13.  * 
  14.  * 1.    The code and documentation are only used to implement a 
  15.  *      TekColor Editor in an X Window System environment; and
  16.  * 2.    This copyright and permission notice is reproduced in all copies
  17.  *     of the code and in supporting documentation.
  18.  * 
  19.  * Permission is granted to modify this code as required to allow it to
  20.  * be compiled on any host computer, provided that the functionality of
  21.  * the TekColor Editor is not modified in any way.  A description of any 
  22.  * modifications must be sent to Tektronix, Inc.  Contact 
  23.  * Tektronix Inc., P.O. Box 1000, Mail Station 60-850, 
  24.  * Network Displays Division Engineering, Wilsonville, OR 97070.
  25.  * 
  26.  * Tektronix makes no representation about the suitability of this software
  27.  * for any purpose.  It is provided "as is" and with all faults.
  28.  * 
  29.  * TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
  30.  * INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
  31.  * PARTICULAR PURPOSE.  IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
  32.  * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
  33.  * RESULTING FROM LOSS OF USE, DATA, OR PROFITS, WHETHER IN AN ACTION OF
  34.  * CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  35.  * CONNECTION WITH THE USE OR THE PERFORMANCE OF THIS SOFTWARE.
  36.  *  
  37.  *    NAME
  38.  *        Zoom.h -- definitions for Zoom.c
  39.  *
  40.  *    DESCRIPTION
  41.  *        
  42.  *
  43.  *    HISTORY
  44.  *
  45.  *    HISTORY END
  46.  *
  47.  */
  48.  
  49. #ifndef LINT
  50. #ifdef RCS_ID
  51. static char *rcsid=  "$Header: Zoom.h,v 1.1 91/08/22 11:22:19 adamsc Exp $";
  52. #endif /* RCS_ID */
  53. #endif /* LINT */
  54.  
  55. #ifndef _Zoom_h
  56. #define _Zoom_h
  57.  
  58. #include "xticiSD.h"
  59. #include <X11/Xmu/Converters.h>
  60.  
  61. /****************************************************************
  62.  *
  63.  * Zoom gadget
  64.  *
  65.  ****************************************************************/
  66.  
  67. /* Resources:
  68.  
  69.  Name             Class        RepType        Default Value
  70.  ----             -----        -------        -------------
  71.  leftMin         Minimum        int        0
  72.  rightMin         Minimum        int        0
  73.  leftMax         Maximum        int        100
  74.  rightMax         Maximum        int        100
  75.  leftLow         Value        int        leftMin
  76.  leftHigh         Value        int        leftMax
  77.  leftValue         Value        int        0
  78.  rightLow         Value        int        rightMin
  79.  rightHigh         Value        int        rightMax
  80.  rightValue         Value        int        0
  81.  orientation         Orientation    XtOrientation    XtNorientVertical
  82.  foreground         Foreground        Pixel        XtDefaultForeground
  83.  
  84. */
  85.  
  86. /* this might belong in xticiSD.h */
  87. #define XtNleftMin    "leftMin"
  88. #define XtNleftMax    "leftMax"
  89. #define XtNleftLow    "leftLow"
  90. #define XtNleftHigh    "leftHigh"
  91. #define XtNleftValue    "leftValue"
  92. #define XtNrightMin    "rightMin"
  93. #define XtNrightMax    "rightMax"
  94. #define XtNrightLow    "rightLow"
  95. #define XtNrightHigh    "rightHigh"
  96. #define XtNrightValue    "rightValue"
  97.  
  98. #define XtCMinimum    "Minimum"
  99. #define XtCMaximum    "Maximum"
  100.  
  101. /* declare specific ZoomWidget class and instance datatypes */
  102.  
  103. typedef struct _ZoomWidgetClassRec*    ZoomWidgetClass;
  104. typedef struct _ZoomWidgetRec*        ZoomWidget;
  105.  
  106. /* declare the class constant */
  107.  
  108. extern WidgetClass zoomWidgetClass;
  109.  
  110. #ifndef IsZoom
  111. #define IsZoom(w) XtIsSubclass(w, zoomWidgetClass)
  112. #endif /* IsZoom */
  113.  
  114. #endif /* _Zoom_h */
  115.