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

  1. /* $Header: TekBoxP.h,v 1.1 91/08/22 11:22:00 adamsc Exp $ */
  2. /* $XConsortium: TekBoxP.h,v 1.16 89/11/06 10:51:28 swick 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.  * TekBoxP.h - Private definitions for TekBox widget
  69.  * 
  70.  */
  71.  
  72. #ifndef _TekBoxP_h
  73. #define _TekBoxP_h
  74.  
  75. /***********************************************************************
  76.  *
  77.  * TekBox Widget Private Data
  78.  *
  79.  ***********************************************************************/
  80.  
  81. #include "TekBox.h"
  82. #include <X11/CompositeP.h>
  83. #include <X11/Xmu/Converters.h>
  84.  
  85. /* New fields for the TekBox widget class record */
  86. typedef struct {int empty;} TekBoxClassPart;
  87.  
  88. /* Full class record declaration */
  89. typedef struct _TekBoxClassRec {
  90.     CoreClassPart    core_class;
  91.     CompositeClassPart  composite_class;
  92.     TekBoxClassPart    box_class;
  93. } TekBoxClassRec;
  94.  
  95. extern TekBoxClassRec tekBoxClassRec;
  96.  
  97. /* New fields for the TekBox widget record */
  98. typedef struct {
  99.     /* resources */
  100.     Dimension   h_space, v_space;
  101.  
  102.     /* private state */
  103.     Dimension    preferred_width, preferred_height;
  104.     Dimension    last_query_width, last_query_height;
  105.     XtGeometryMask last_query_mode;
  106. } TekBoxPart;
  107.  
  108.  
  109. /****************************************************************
  110.  *
  111.  * Full instance record declaration
  112.  *
  113.  ****************************************************************/
  114.  
  115. typedef struct _TekBoxRec {
  116.     CorePart        core;
  117.     CompositePart   composite;
  118.     TekBoxPart         box;
  119. } TekBoxRec;
  120.  
  121. #endif /* _TekBoxP_h */
  122.