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

  1. #ifndef _Colormap_h
  2. #define _Colormap_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: Colormap.h,v 1.3 1996/04/19 08:52:45 torsten Exp $ */
  19.  
  20. /****************************************************************
  21.  *
  22.  * Colormap widget
  23.  *
  24.  ****************************************************************/
  25.  
  26. /* Resources:
  27.  
  28.    Name              Class              RepType         Default Value
  29.    ----              -----              -------         -------------
  30.    background        Background         Pixel           XtDefaultBackground
  31.    border            BorderColor        Pixel           XtDefaultForeground
  32.    borderWidth       BorderWidth        Dimension       1
  33.    destroyCallback   Callback           Pointer         NULL
  34.    height            Height             Dimension       0
  35.    mappedWhenManaged MappedWhenManaged  Boolean         True
  36.    sensitive         Sensitive          Boolean         True
  37.    width             Width              Dimension       0
  38.    x                 Position           Position        0
  39.    y                 Position           Position        0
  40.  
  41.  */
  42.  
  43. /* define any special resource names here that are not in <X11/StringDefs.h> */
  44.  
  45. #define XtNcellWidth  "cellWidth"
  46. #define XtNcellHeight "cellHeight"
  47. #define XtNcolor      "color"
  48. #define XtNreadOnly   "readOnly"
  49.  
  50. #define XtCCellWidth  "CellWidth"
  51. #define XtCCellHeight "CellHeight"
  52. #ifndef XtCColor
  53. #define XtCColor      "Color"
  54. #endif
  55.  
  56. /* declare specific ColormapWidget class and instance datatypes */
  57.  
  58. typedef struct _ColormapClassRec *ColormapWidgetClass;
  59. typedef struct _ColormapRec *ColormapWidget;
  60.  
  61. /* declare the class constant */
  62.  
  63. extern WidgetClass colormapWidgetClass;
  64.  
  65. extern void CwGetColor(Widget, XColor *);
  66. extern void CwSetColor(Widget, XColor *);
  67.  
  68. #endif                /* _Colormap_h */
  69.