home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / extensions / lib / PEX / include / PEXtempl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-02-15  |  1.7 KB  |  48 lines

  1. /* $XConsortium: PEXtempl.h,v 5.1 91/02/16 09:48:55 rws Exp $ */
  2.  
  3. /***********************************************************
  4. Copyright 1989, 1990, 1991 by Sun Microsystems, Inc. and the X Consortium.
  5.  
  6.                         All Rights Reserved
  7.  
  8. Permission to use, copy, modify, and distribute this software and its 
  9. documentation for any purpose and without fee is hereby granted, 
  10. provided that the above copyright notice appear in all copies and that
  11. both that copyright notice and this permission notice appear in 
  12. supporting documentation, and that the names of Sun Microsystems,
  13. the X Consortium, and MIT not be used in advertising or publicity 
  14. pertaining to distribution of the software without specific, written 
  15. prior permission.  
  16.  
  17. SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 
  18. INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 
  19. SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL 
  20. DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  22. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  23. SOFTWARE.
  24. ******************************************************************/
  25.  
  26. /* Useful templates for reading and writing PEX buffers. */
  27.  
  28. #ifndef PEXTEMPL_H
  29. #define PEXTEMPL_H
  30.  
  31. typedef union {
  32.     pexIndexedColour    indexed;
  33.     pexRgb8Colour        rgb8;
  34.     pexRgb16Colour        rgb16;
  35.     pexRgbFloatColour    rgbFloat;
  36.     pexHsvColour        hsvFloat;
  37.     pexHlsColour        hlsFloat;
  38.     pexCieColour        cieFloat;
  39. } Pextmpl_colour_format;
  40.  
  41. typedef struct {
  42.     pexColourSpecifier        type;
  43.     Pextmpl_colour_format    format;
  44. } Pextmpl_colour_spec;
  45.  
  46. #endif /* PEXTEMPL_H */
  47.  
  48.