aboutsummaryrefslogtreecommitdiff
path: root/vendor/x11iraf/obm/ObmW/Xraw/Frame.h
blob: 3af67dec320a0881398852318c3ca083e2f313c4 (plain) (blame)
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
/***********************************************************************
  
                             Frame widget
		   Copyright by Vladimir T. Romanovski
			 All rights reserved.

This library is designed  for  free,  non-commercial  software  creation.
It is changeable and can be improved. The author would greatly appreciate
any  advice, new  components  and  patches  of  the  existing  programs.
Commercial  usage is  also  possible  with  participation of the author.

                      romsky@hp1.oea.ihep.su (Russia)
                      romsky@munin.ucsf.edu  (USA)
	
*************************************************************************/

#ifndef _XawFrame_h
#define _XawFrame_h



#include <X11/Xraw/3d.h>

/***********************************************************************
 *
 * Frame Widget (subclass of CompositeClass)
 *
 ***********************************************************************/

/* Parameters:

 Name		     Class		RepType		Default Value
 ----		     -----		-------		-------------
 background	     Background		Pixel		XtDefaultBackground
 border		     BorderColor	Pixel		XtDefaultForeground
 borderWidth	     BorderWidth	Dimension	1
 destroyCallback     Callback		Pointer		NULL
 hSpace 	     HSpace		Dimension	4
 height		     Height		Dimension	0
 mappedWhenManaged   MappedWhenManaged	Boolean		True
 width		     Width		Dimension	0
 x		     Position		Position	0
 y		     Position		Position	0

*/


/* New fields */
#define XtNshadowWidth "shadowWidth"
#define XtCShadowWidth "ShadowWidth"
#define XtNtopShadowPixel "topShadowPixel"
#define XtCTopShadowPixel "TopShadowPixel"
#define XtNbottomShadowPixel "bottomShadowPixel"
#define XtCBottomShadowPixel "BottomShadowPixel"
#define XtNtopShadowContrast "topShadowContrast"
#define XtCTopShadowContrast "TopShadowContrast"
#define XtNbottomShadowContrast "bottomShadowContrast"
#define XtCBottomShadowContrast "BottomShadowContrast"
#define XtNbeNiceToColormap "beNiceToColormap"
#define XtCBeNiceToColormap "BeNiceToColormap"
#define XtNtopShadowPixmap "topShadowPixmap"
#define XtCTopShadowPixmap "TopShadowPixmap"
#define XtNbottomShadowPixmap "bottomShadowPixmap"
#define XtCBottomShadowPixmap "BottomShadowPixmap"
#define XtNuserData "userData"
#define XtCUserData "UserData"
#define XtNframeType "frameType"
#define XtCFrameType "FrameType"
#define XtRFrameType "FrameType"



#ifndef XtNhSpace             
#define XtNhSpace "hSpace"
#endif

#ifndef XtNvSpace             
#define XtNvSpace "vSpace"
#endif

#ifndef XtCHSpace             
#define XtCHSpace "HSpace"
#endif

#ifndef XtCVSpace             
#define XtCVSpace "VSpace"
#endif

#ifndef XtNtop  
#define XtNtop "top"
#endif


#ifndef XtNbottom        
#define XtNbottom "bottom"
#endif


#ifndef XtNleft   
#define XtNleft "left"
#endif


#ifndef XtNright      
#define XtNright "right"
#endif

#ifndef XtNlayoutPolicy             
#define XtNlayoutPolicy "layoutPolicy"
#endif

#ifndef XtNxFraction             
#define XtNxFraction "xFraction"
#endif

#ifndef XtNyFraction             
#define XtNyFraction "yFraction"
#endif

#ifndef XtCLayoutPolicy
#define XtCLayoutPolicy "LayoutPolicy"
#endif                        

#ifndef XtRLayoutPolicy
#define XtRLayoutPolicy "LayoutPolicy"
#endif                        


#ifndef XtNcaptionOn             
#define XtNcaptionOn "captionOn"
#endif

#ifndef XtCCaptionOn             
#define XtCCaptionOn "CaptionOn"
#endif


#ifndef XtNcaptionLabel             
#define XtNcaptionLabel "captionLabel"
#endif

#ifndef XtCCaptionLabel             
#define XtCCaptionLabel "CaptionLabel"
#endif

/*#########################################################################*/
/*#                                                                       #*/
/*#                           Widget Class Pointer                        #*/
/*#                                                                       #*/
/*#########################################################################*/
extern WidgetClass frameWidgetClass;

typedef struct _FrameClassRec *FrameWidgetClass;
typedef struct _FrameRec      *FrameWidget;

typedef enum {
  XawSINGLE = Xraw_FRAME + 10,
  XawFRACTION,
  XawCENTER
}XawLayoutPolicy;

#endif /* _XawFrame_h */
/* DON'T ADD STUFF AFTER THIS #endif */