home *** CD-ROM | disk | FTP | other *** search
/ vsiftp.vmssoftware.com / VSIPUBLIC@vsiftp.vmssoftware.com.tar / FREEWARE / FREEWARE40.ZIP / xpaint-247 / colormapp.h < prev    next >
C/C++ Source or Header  |  1996-06-25  |  2KB  |  58 lines

  1. #ifndef _ColormapP_h
  2. #define _ColormapP_h
  3.  
  4. /* +-------------------------------------------------------------------+ */
  5. /* | Copyright 1992, 1993, David Koblas (koblas@netcom.com)            | */
  6. /* |                                                                   | */
  7. /* | Permission to use, copy, modify, and to distribute this software  | */
  8. /* | and its documentation for any purpose is hereby granted without   | */
  9. /* | fee, provided that the above copyright notice appear in all       | */
  10. /* | copies and that both that copyright notice and this permission    | */
  11. /* | notice appear in supporting documentation.  There is no           | */
  12. /* | representations about the suitability of this software for        | */
  13. /* | any purpose.  this software is provided "as is" without express   | */
  14. /* | or implied warranty.                                              | */
  15. /* |                                                                   | */
  16. /* +-------------------------------------------------------------------+ */
  17.  
  18. /* $Id: ColormapP.h,v 1.2 1996/04/15 14:17:02 torsten Exp $ */
  19.  
  20. #include "Colormap.h"
  21. /* include superclass private header file */
  22. #include <X11/CoreP.h>
  23.  
  24. /* define unique representation types not found in <X11/StringDefs.h> */
  25.  
  26. #define XtRColormapResource "ColormapResource"
  27.  
  28. typedef struct {
  29.     int empty;
  30. } ColormapClassPart;
  31.  
  32. typedef struct _ColormapClassRec {
  33.     CoreClassPart core_class;
  34.     ColormapClassPart colormap_class;
  35. } ColormapClassRec;
  36.  
  37. extern ColormapClassRec colormapClassRec;
  38.  
  39. typedef struct {
  40.     Boolean editable;
  41.     int ncel, curcel;
  42.     Pixel pixel;
  43.     Colormap cmap;
  44.     XtCallbackProc select;
  45.     int cheight, cwidth;    /* cell width, height */
  46.     int ncheight, ncwidth;    /* cell width, height */
  47.     XtCallbackList callbacks;
  48.     int thickness;
  49.     Pixel foreground;
  50. } ColormapPart;
  51.  
  52. typedef struct _ColormapRec {
  53.     CorePart core;
  54.     ColormapPart color;
  55. } ColormapRec;
  56.  
  57. #endif                /* _ColormapP_h */
  58.