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 / TekBox.h < prev    next >
C/C++ Source or Header  |  1991-08-28  |  5KB  |  124 lines

  1. /* $Header: TekBox.h,v 1.1 91/08/22 11:21:57 adamsc Exp $ */
  2. /* $XConsortium: TekBox.h,v 1.20 90/04/20 17:07:41 kit Exp $ */
  3.  
  4.  
  5. /***********************************************************
  6. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  7. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  8.  
  9.                         All Rights Reserved
  10.  
  11. Permission to use, copy, modify, and distribute this software and its 
  12. documentation for any purpose and without fee is hereby granted, 
  13. provided that the above copyright notice appear in all copies and that
  14. both that copyright notice and this permission notice appear in 
  15. supporting documentation, and that the names of Digital or MIT not be
  16. used in advertising or publicity pertaining to distribution of the
  17. software without specific, written prior permission.  
  18.  
  19. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  20. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  21. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  22. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  23. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  24. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  25. SOFTWARE.
  26.  
  27. ******************************************************************/
  28.  
  29. /*
  30.  * (c) Copyright 1990 1991 Tektronix, Inc.
  31.  * Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
  32.  *     All Rights Reserved
  33.  * 
  34.  * This file is a component of an X Window System client which uses the Xcms 
  35.  * Color Management System.  TekColor is a trademark of Tektronix, Inc.  The
  36.  * TekColor Editor is the subject of U.S. and foreign patents pending.  The
  37.  * term "TekHVC" designates a particular color space that is the subject of
  38.  * U.S. Patent No. 4,985,853 (equivalent foreign patents pending).
  39.  * Permission is hereby granted to use, copy, modify, sell, and otherwise
  40.  * distribute this software and its documentation for the X Window System
  41.  * environment, for any purpose and without fee, provided that:
  42.  * 
  43.  * 1.    The code and documentation are only used to implement a 
  44.  *      TekColor Editor in an X Window System environment; and
  45.  * 2.    This copyright and permission notice is reproduced in all copies
  46.  *     of the code and in supporting documentation.
  47.  * 
  48.  * Permission is granted to modify this code as required to allow it to
  49.  * be compiled on any host computer, provided that the functionality of
  50.  * the TekColor Editor is not modified in any way.  A description of any 
  51.  * modifications must be sent to Tektronix, Inc.  Contact 
  52.  * Tektronix Inc., P.O. Box 1000, Mail Station 60-850, 
  53.  * Network Displays Division Engineering, Wilsonville, OR 97070.
  54.  *
  55.  * Tektronix makes no representation about the suitability of this software
  56.  * for any purpose.  It is provided "as is" and with all faults.
  57.  * 
  58.  * TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
  59.  * INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
  60.  * PARTICULAR PURPOSE.  IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
  61.  * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
  62.  * RESULTING FROM LOSS OF USE, DATA, OR PROFITS, WHETHER IN AN ACTION OF
  63.  * CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  64.  * CONNECTION WITH THE USE OR THE PERFORMANCE OF THIS SOFTWARE.
  65.  *  
  66.  */
  67.  
  68. #ifndef _TekBox_h
  69. #define _TekBox_h
  70.  
  71. #include <X11/Xmu/Converters.h>
  72.  
  73. /***********************************************************************
  74.  *
  75.  * TekBox Widget (subclass of CompositeClass)
  76.  *
  77.  ***********************************************************************/
  78.  
  79. /* Parameters:
  80.  
  81.  Name             Class        RepType        Default Value
  82.  ----             -----        -------        -------------
  83.  background         Background        Pixel        XtDefaultBackground
  84.  border             BorderColor    Pixel        XtDefaultForeground
  85.  borderWidth         BorderWidth    Dimension    1
  86.  destroyCallback     Callback        Pointer        NULL
  87.  hSpace          HSpace        Dimension    4
  88.  height             Height        Dimension    0
  89.  mappedWhenManaged   MappedWhenManaged    Boolean        True
  90.  orientation         Orientation    XtOrientation    vertical
  91.  vSpace          VSpace        Dimension    4
  92.  width             Width        Dimension    0
  93.  x             Position        Position    0
  94.  y             Position        Position    0
  95.  
  96. */
  97.  
  98. /****************************************************************
  99.  *
  100.  * This widget assumes that the box holds six specific widgets
  101.  * and that they are all created equal but the order of
  102.  * creation is noted by their numbers.
  103.  *
  104.  ****************************************************************/
  105. #define MENUBAR        0
  106. #define COLORMAP    1
  107. #define COORDINATES 2
  108. #define PATCH       3
  109. #define HUEBAR      4
  110. #define HUELEAF     5
  111.  
  112. /* Class record constants */
  113.  
  114. extern WidgetClass tekBoxWidgetClass;
  115.  
  116. typedef struct _TekBoxClassRec *TekBoxWidgetClass;
  117. typedef struct _TekBoxRec      *TekBoxWidget;
  118.  
  119. #ifndef IsTekBox
  120. #define IsTekBox(w) XtIsSubclass(w, tekBoxWidgetClass)
  121. #endif
  122.  
  123. #endif /* _TekBox_h */
  124.