File: ColormapP.h

package info (click to toggle)
xpaint 2.5.1-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,448 kB
  • ctags: 2,478
  • sloc: ansic: 25,980; makefile: 36; sh: 23
file content (57 lines) | stat: -rw-r--r-- 1,962 bytes parent folder | download | duplicates (4)
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
#ifndef _ColormapP_h
#define _ColormapP_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: ColormapP.h,v 1.2 1996/04/15 14:17:02 torsten Exp $ */

#include "Colormap.h"
/* include superclass private header file */
#include <X11/CoreP.h>

/* define unique representation types not found in <X11/StringDefs.h> */

#define XtRColormapResource "ColormapResource"

typedef struct {
    int empty;
} ColormapClassPart;

typedef struct _ColormapClassRec {
    CoreClassPart core_class;
    ColormapClassPart colormap_class;
} ColormapClassRec;

extern ColormapClassRec colormapClassRec;

typedef struct {
    Boolean editable;
    int ncel, curcel;
    Pixel pixel;
    Colormap cmap;
    XtCallbackProc select;
    int cheight, cwidth;	/* cell width, height */
    int ncheight, ncwidth;	/* cell width, height */
    XtCallbackList callbacks;
    int thickness;
    Pixel foreground;
} ColormapPart;

typedef struct _ColormapRec {
    CorePart core;
    ColormapPart color;
} ColormapRec;

#endif				/* _ColormapP_h */