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 >
Wrap
C/C++ Source or Header
|
1991-08-28
|
5KB
|
122 lines
/* $Header: TekBoxP.h,v 1.1 91/08/22 11:22:00 adamsc Exp $ */
/* $XConsortium: TekBoxP.h,v 1.16 89/11/06 10:51:28 swick Exp $ */
/***********************************************************
Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
All Rights Reserved
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the names of Digital or MIT not be
used in advertising or publicity pertaining to distribution of the
software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
******************************************************************/
/*
* (c) Copyright 1990 1991 Tektronix, Inc.
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
*
* This file is a component of an X Window System client which uses the Xcms
* Color Management System. TekColor is a trademark of Tektronix, Inc. The
* TekColor Editor is the subject of U.S. and foreign patents pending. The
* term "TekHVC" designates a particular color space that is the subject of
* U.S. Patent No. 4,985,853 (equivalent foreign patents pending).
* Permission is hereby granted to use, copy, modify, sell, and otherwise
* distribute this software and its documentation for the X Window System
* environment, for any purpose and without fee, provided that:
*
* 1. The code and documentation are only used to implement a
* TekColor Editor in an X Window System environment; and
* 2. This copyright and permission notice is reproduced in all copies
* of the code and in supporting documentation.
*
* Permission is granted to modify this code as required to allow it to
* be compiled on any host computer, provided that the functionality of
* the TekColor Editor is not modified in any way. A description of any
* modifications must be sent to Tektronix, Inc. Contact
* Tektronix Inc., P.O. Box 1000, Mail Station 60-850,
* Network Displays Division Engineering, Wilsonville, OR 97070.
*
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
*
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
* SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
* RESULTING FROM LOSS OF USE, DATA, OR PROFITS, WHETHER IN AN ACTION OF
* CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR THE PERFORMANCE OF THIS SOFTWARE.
*/
/*
* TekBoxP.h - Private definitions for TekBox widget
*
*/
#ifndef _TekBoxP_h
#define _TekBoxP_h
/***********************************************************************
*
* TekBox Widget Private Data
*
***********************************************************************/
#include "TekBox.h"
#include <X11/CompositeP.h>
#include <X11/Xmu/Converters.h>
/* New fields for the TekBox widget class record */
typedef struct {int empty;} TekBoxClassPart;
/* Full class record declaration */
typedef struct _TekBoxClassRec {
CoreClassPart core_class;
CompositeClassPart composite_class;
TekBoxClassPart box_class;
} TekBoxClassRec;
extern TekBoxClassRec tekBoxClassRec;
/* New fields for the TekBox widget record */
typedef struct {
/* resources */
Dimension h_space, v_space;
/* private state */
Dimension preferred_width, preferred_height;
Dimension last_query_width, last_query_height;
XtGeometryMask last_query_mode;
} TekBoxPart;
/****************************************************************
*
* Full instance record declaration
*
****************************************************************/
typedef struct _TekBoxRec {
CorePart core;
CompositePart composite;
TekBoxPart box;
} TekBoxRec;
#endif /* _TekBoxP_h */