1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
#ifndef _Colormap_h
#define _Colormap_h
/* +-------------------------------------------------------------------+ */
/* | Copyright 1992, 1993, David Koblas (koblas@netcom.com) | */
/* | | */
/* | Permission to use, copy, modify, and to distribute this software | */
/* | and its documentation for any purpose is hereby granted without | */
/* | fee, provided that the above copyright notice appear in all | */
/* | copies and that both that copyright notice and this permission | */
/* | notice appear in supporting documentation. There is no | */
/* | representations about the suitability of this software for | */
/* | any purpose. this software is provided "as is" without express | */
/* | or implied warranty. | */
/* | | */
/* +-------------------------------------------------------------------+ */
/* $Id: Colormap.h,v 1.3 1996/04/19 08:52:45 torsten Exp $ */
/****************************************************************
*
* Colormap widget
*
****************************************************************/
/* Resources:
Name Class RepType Default Value
---- ----- ------- -------------
background Background Pixel XtDefaultBackground
border BorderColor Pixel XtDefaultForeground
borderWidth BorderWidth Dimension 1
destroyCallback Callback Pointer NULL
height Height Dimension 0
mappedWhenManaged MappedWhenManaged Boolean True
sensitive Sensitive Boolean True
width Width Dimension 0
x Position Position 0
y Position Position 0
*/
/* define any special resource names here that are not in <X11/StringDefs.h> */
#define XtNcellWidth "cellWidth"
#define XtNcellHeight "cellHeight"
#define XtNcolor "color"
#define XtNreadOnly "readOnly"
#define XtCCellWidth "CellWidth"
#define XtCCellHeight "CellHeight"
#ifndef XtCColor
#define XtCColor "Color"
#endif
/* declare specific ColormapWidget class and instance datatypes */
typedef struct _ColormapClassRec *ColormapWidgetClass;
typedef struct _ColormapRec *ColormapWidget;
/* declare the class constant */
extern WidgetClass colormapWidgetClass;
extern void CwGetColor(Widget, XColor *);
extern void CwSetColor(Widget, XColor *);
#endif /* _Colormap_h */
|