Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtstyle / ColorEdit.h
1 /* $XConsortium: ColorEdit.h /main/4 1995/10/30 13:08:12 rswiston $ */
2 /************************************<+>*************************************
3  ****************************************************************************
4  **
5  **   File:        ColorEdit.h
6  **
7  **   Project:     DT 3.0
8  **
9  **  This file contains function definitions for the corresponding .c
10  **  file
11  **
12  **
13  **  (c) Copyright Hewlett-Packard Company, 1990.  
14  **
15  **
16  **
17  ****************************************************************************
18  ************************************<+>*************************************/
19 #ifndef _coloredit_h
20 #define _coloredit_h
21
22 /*  Global structure for Color Editor */
23
24 typedef struct _EditData {
25   Widget      DialogShell;
26   Widget      main_form;
27   Widget      sliderForm;
28   Widget      oldButton;
29   Widget      newButton;
30   Widget      grabColor;
31   Widget      redLabel;
32   Widget      greenLabel;
33   Widget      blueLabel;
34   Widget      hueLabel;
35   Widget      satLabel;
36   Widget      valLabel;
37   Widget      redScale;
38   Widget      greenScale;
39   Widget      blueScale;
40   Widget      hueScale;
41   Widget      satScale;
42   Widget      valScale;
43   int         current_scale;
44   ColorSet    *color_set;
45   ColorSet    oldButtonColor;
46   XmColorProc calcRGB;
47   Pixmap      pixmap25;
48   Pixmap      pixmap75;
49
50 } EditData;
51
52 extern EditData edit;
53
54 /* External Interface */
55
56
57 extern void ColorEditor( 
58                         Widget parent,
59                         ColorSet *color_set) ;
60 extern void RGBtoHSV( 
61 #if NeedWidePrototypes
62                         unsigned int r,
63                         unsigned int g,
64                         unsigned int b,
65 #else
66                         unsigned short r,
67                         unsigned short g,
68                         unsigned short b,
69 #endif
70                         int *h,
71                         int *s,
72                         int *v) ;
73 extern void restoreColorEdit( 
74                         Widget shell,
75                         XrmDatabase db) ;
76 extern void saveColorEdit( 
77                         int fd) ;
78
79
80
81 #endif /* _coloredit_h */
82 /* DON'T ADD ANYTHING AFTER THIS #endif */