0
|
1 /* Public header for the Emacs frame widget.
|
|
2 Copyright (C) 1993-1995 Sun Microsystems, Inc.
|
|
3 Copyright (C) 1995 Ben Wing.
|
|
4
|
|
5 This file is part of XEmacs.
|
|
6
|
|
7 XEmacs is free software; you can redistribute it and/or modify it
|
|
8 under the terms of the GNU General Public License as published by the
|
|
9 Free Software Foundation; either version 2, or (at your option) any
|
|
10 later version.
|
|
11
|
|
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT
|
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
15 for more details.
|
|
16
|
|
17 You should have received a copy of the GNU General Public License
|
|
18 along with XEmacs; see the file COPYING. If not, write to
|
|
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
20 Boston, MA 02111-1307, USA. */
|
|
21
|
|
22 /* Synched up with: Not in FSF. */
|
|
23
|
|
24 #ifndef _EmacsFrame_h
|
|
25 #define _EmacsFrame_h
|
|
26
|
|
27 #ifndef XtNminibuffer
|
2
|
28 #define XtNminibuffer (String) "minibuffer"
|
0
|
29 #endif
|
|
30 #ifndef XtCMinibuffer
|
2
|
31 #define XtCMinibuffer (String) "Minibuffer"
|
0
|
32 #endif
|
|
33
|
|
34 #ifndef XtNunsplittable
|
2
|
35 #define XtNunsplittable (String) "unsplittable"
|
0
|
36 #endif
|
|
37 #ifndef XtCUnsplittable
|
2
|
38 #define XtCUnsplittable (String) "Unsplittable"
|
0
|
39 #endif
|
|
40
|
|
41 #ifndef XtNinternalBorderWidth
|
2
|
42 #define XtNinternalBorderWidth (String) "internalBorderWidth"
|
0
|
43 #endif
|
|
44 #ifndef XtCInternalBorderWidth
|
2
|
45 #define XtCInternalBorderWidth (String) "InternalBorderWidth"
|
0
|
46 #endif
|
|
47
|
|
48 #ifndef XtNscrollBarWidth
|
2
|
49 #define XtNscrollBarWidth (String) "scrollBarWidth"
|
0
|
50 #endif
|
|
51 #ifndef XtCScrollBarWidth
|
2
|
52 #define XtCScrollBarWidth (String) "ScrollBarWidth"
|
0
|
53 #endif
|
|
54
|
|
55 #ifndef XtNscrollBarHeight
|
2
|
56 #define XtNscrollBarHeight (String) "scrollBarHeight"
|
0
|
57 #endif
|
|
58 #ifndef XtCScrollBarHeight
|
2
|
59 #define XtCScrollBarHeight (String) "ScrollBarHeight"
|
0
|
60 #endif
|
|
61
|
|
62 #ifndef XtNtopToolBarHeight
|
2
|
63 #define XtNtopToolBarHeight (String) "topToolBarHeight"
|
0
|
64 #endif
|
|
65 #ifndef XtCTopToolBarHeight
|
2
|
66 #define XtCTopToolBarHeight (String) "TopToolBarHeight"
|
0
|
67 #endif
|
|
68
|
|
69 #ifndef XtNbottomToolBarHeight
|
2
|
70 #define XtNbottomToolBarHeight (String) "bottomToolBarHeight"
|
0
|
71 #endif
|
|
72 #ifndef XtCBottomToolBarHeight
|
2
|
73 #define XtCBottomToolBarHeight (String) "BottomToolBarHeight"
|
0
|
74 #endif
|
|
75
|
|
76 #ifndef XtNleftToolBarWidth
|
2
|
77 #define XtNleftToolBarWidth (String) "leftToolBarWidth"
|
0
|
78 #endif
|
|
79 #ifndef XtCLeftToolBarWidth
|
2
|
80 #define XtCLeftToolBarWidth (String) "LeftToolBarWidth"
|
0
|
81 #endif
|
|
82
|
|
83 #ifndef XtNrightToolBarWidth
|
2
|
84 #define XtNrightToolBarWidth (String) "rightToolBarWidth"
|
0
|
85 #endif
|
|
86 #ifndef XtCRightToolBarWidth
|
2
|
87 #define XtCRightToolBarWidth (String) "RightToolBarWidth"
|
0
|
88 #endif
|
|
89
|
|
90 #ifndef XtNtopToolBarShadowColor
|
2
|
91 #define XtNtopToolBarShadowColor (String) "topToolBarShadowColor"
|
0
|
92 #endif
|
|
93 #ifndef XtCTopToolBarShadowColor
|
2
|
94 #define XtCTopToolBarShadowColor (String) "TopToolBarShadowColor"
|
0
|
95 #endif
|
|
96
|
|
97 #ifndef XtNbottomToolBarShadowColor
|
2
|
98 #define XtNbottomToolBarShadowColor (String) "bottomToolBarShadowColor"
|
0
|
99 #endif
|
|
100 #ifndef XtCBottomToolBarShadowColor
|
2
|
101 #define XtCBottomToolBarShadowColor (String) "BottomToolBarShadowColor"
|
0
|
102 #endif
|
|
103
|
|
104 #ifndef XtNbackgroundToolBarColor
|
2
|
105 #define XtNbackgroundToolBarColor (String) "backgroundToolBarColor"
|
0
|
106 #endif
|
|
107 #ifndef XtCBackgroundToolBarColor
|
2
|
108 #define XtCBackgroundToolBarColor (String) "BackgroundToolBarColor"
|
0
|
109 #endif
|
|
110
|
|
111 #ifndef XtNtopToolBarShadowPixmap
|
2
|
112 #define XtNtopToolBarShadowPixmap (String) "topToolBarShadowPixmap"
|
0
|
113 #endif
|
|
114 #ifndef XtCTopToolBarShadowPixmap
|
2
|
115 #define XtCTopToolBarShadowPixmap (String) "TopToolBarShadowPixmap"
|
0
|
116 #endif
|
|
117
|
|
118 #ifndef XtNbottomToolBarShadowPixmap
|
2
|
119 #define XtNbottomToolBarShadowPixmap (String) "bottomToolBarShadowPixmap"
|
0
|
120 #endif
|
|
121 #ifndef XtCBottomToolBarShadowPixmap
|
2
|
122 #define XtCBottomToolBarShadowPixmap (String) "BottomToolBarShadowPixmap"
|
0
|
123 #endif
|
|
124
|
|
125 #ifndef XtNtoolBarShadowThickness
|
2
|
126 #define XtNtoolBarShadowThickness (String) "toolBarShadowThickness"
|
0
|
127 #endif
|
|
128 #ifndef XtCToolBarShadowThickness
|
2
|
129 #define XtCToolBarShadowThickness (String) "ToolBarShadowThickness"
|
0
|
130 #endif
|
|
131
|
|
132 #ifndef XtNscrollBarPlacement
|
2
|
133 #define XtNscrollBarPlacement (String) "scrollBarPlacement"
|
0
|
134 #endif
|
|
135 #ifndef XtCScrollBarPlacement
|
2
|
136 #define XtCScrollBarPlacement (String) "ScrollBarPlacement"
|
0
|
137 #endif
|
|
138 #ifndef XtRScrollBarPlacement
|
2
|
139 #define XtRScrollBarPlacement (String) "ScrollBarPlacement"
|
0
|
140 #endif
|
|
141
|
|
142 #ifndef XtNinterline
|
2
|
143 #define XtNinterline (String) "interline"
|
0
|
144 #endif
|
|
145 #ifndef XtCInterline
|
2
|
146 #define XtCInterline (String) "Interline"
|
0
|
147 #endif
|
|
148
|
|
149 #ifndef XtNfont
|
2
|
150 #define XtNfont (String) "font"
|
0
|
151 #endif
|
|
152 #ifndef XtCFont
|
2
|
153 #define XtCFont (String) "Font"
|
0
|
154 #endif
|
|
155
|
|
156 #ifndef XtNforeground
|
2
|
157 #define XtNforeground (String) "foreground"
|
0
|
158 #endif
|
|
159 #ifndef XtCForeground
|
2
|
160 #define XtCForeground (String) "Foreground"
|
0
|
161 #endif
|
|
162
|
|
163 #ifndef XtNiconic
|
2
|
164 #define XtNiconic (String) "iconic"
|
0
|
165 #endif
|
|
166 #ifndef XtCIconic
|
2
|
167 #define XtCIconic (String) "Iconic"
|
0
|
168 #endif
|
|
169
|
|
170 #ifndef XtNcursorColor
|
2
|
171 #define XtNcursorColor (String) "cursorColor"
|
0
|
172 #endif
|
|
173 #ifndef XtCCursorColor
|
2
|
174 #define XtCCursorColor (String) "CursorColor"
|
0
|
175 #endif
|
|
176
|
|
177 #ifndef XtNbarCursor
|
2
|
178 #define XtNbarCursor (String) "barCursor"
|
0
|
179 #endif
|
|
180 #ifndef XtCBarCursor
|
2
|
181 #define XtCBarCursor (String) "BarCursor"
|
0
|
182 #endif
|
|
183
|
|
184 #ifndef XtNvisualBell
|
2
|
185 #define XtNvisualBell (String) "visualBell"
|
0
|
186 #endif
|
|
187 #ifndef XtCVisualBell
|
2
|
188 #define XtCVisualBell (String) "VisualBell"
|
0
|
189 #endif
|
|
190
|
|
191 #ifndef XtNbellVolume
|
2
|
192 #define XtNbellVolume (String) "bellVolume"
|
0
|
193 #endif
|
|
194 #ifndef XtCBellVolume
|
2
|
195 #define XtCBellVolume (String) "BellVolume"
|
0
|
196 #endif
|
|
197
|
|
198 #ifndef XtNpointerBackground
|
2
|
199 #define XtNpointerBackground (String) "pointerBackground"
|
0
|
200 #endif
|
|
201
|
|
202 #ifndef XtNpointerColor
|
|
203 #define XtNpointerColor "pointerColor"
|
|
204 #endif
|
|
205
|
|
206 #ifndef XtNtextPointer
|
2
|
207 #define XtNtextPointer (String) "textPointer"
|
0
|
208 #endif
|
|
209
|
|
210 #ifndef XtNspacePointer
|
2
|
211 #define XtNspacePointer (String) "spacePointer"
|
0
|
212 #endif
|
|
213
|
|
214 #ifndef XtNmodeLinePointer
|
2
|
215 #define XtNmodeLinePointer (String) "modePointer"
|
0
|
216 #endif
|
|
217
|
|
218 #ifndef XtNgcPointer
|
2
|
219 #define XtNgcPointer (String) "gcPointer"
|
0
|
220 #endif
|
|
221
|
|
222 #ifndef XtNemacsFrame
|
2
|
223 #define XtNemacsFrame (String) "emacsFrame"
|
0
|
224 #endif
|
|
225 #ifndef XtCEmacsFrame
|
2
|
226 #define XtCEmacsFrame (String) "EmacsFrame"
|
0
|
227 #endif
|
|
228
|
|
229 #ifndef XtNgeometry
|
2
|
230 #define XtNgeometry (String) "geometry"
|
0
|
231 #endif
|
|
232 #ifndef XtCGeometry
|
2
|
233 #define XtCGeometry (String) "Geometry"
|
0
|
234 #endif
|
|
235
|
|
236 #ifndef XtNinitialGeometry
|
2
|
237 #define XtNinitialGeometry (String) "initialGeometry"
|
0
|
238 #endif
|
|
239 #ifndef XtCInitialGeometry
|
2
|
240 #define XtCInitialGeometry (String) "InitialGeometry"
|
0
|
241 #endif
|
|
242
|
|
243 #ifndef XtNmenubar
|
2
|
244 #define XtNmenubar (String) "menubar"
|
0
|
245 #endif
|
|
246 #ifndef XtCMenubar
|
2
|
247 #define XtCMenubar (String) "Menubar"
|
0
|
248 #endif
|
|
249
|
|
250 #ifndef XtNinitiallyUnmapped
|
2
|
251 #define XtNinitiallyUnmapped (String) "initiallyUnmapped"
|
0
|
252 #endif
|
|
253 #ifndef XtCInitiallyUnmapped
|
2
|
254 #define XtCInitiallyUnmapped (String) "InitiallyUnmapped"
|
0
|
255 #endif
|
|
256
|
|
257 #ifndef XtNpreferredWidth
|
2
|
258 #define XtNpreferredWidth (String) "preferredWidth"
|
0
|
259 #endif
|
|
260 #ifndef XtCPreferredWidth
|
2
|
261 #define XtCPreferredWidth (String) "PreferredWidth"
|
0
|
262 #endif
|
|
263
|
|
264 #ifndef XtNpreferredHeight
|
2
|
265 #define XtNpreferredHeight (String) "preferredHeight"
|
0
|
266 #endif
|
|
267 #ifndef XtCPreferredHeight
|
2
|
268 #define XtCPreferredHeight (String) "PreferredHeight"
|
0
|
269 #endif
|
|
270
|
|
271 #ifndef XtNuseBackingStore
|
2
|
272 #define XtNuseBackingStore (String) "useBackingStore"
|
0
|
273 #endif
|
|
274 #ifndef XtCUseBackingStore
|
2
|
275 #define XtCUseBackingStore (String) "UseBackingStore"
|
0
|
276 #endif
|
|
277
|
70
|
278 #define XtNximStyles "ximStyles"
|
|
279 #define XtCXimStyles "XimStyles"
|
|
280 #define XtRXimStyles "XimStyles"
|
|
281
|
|
282 #define XtNximForeground "ximForeground"
|
|
283 #define XtNximBackground "ximBackground"
|
|
284
|
0
|
285 /* scrollbar placement types; like in ScrolledW.h */
|
16
|
286 #define EM_TOP 1
|
|
287 #define EM_BOTTOM 0
|
|
288 #define EM_LEFT 2
|
|
289 #define EM_RIGHT 0
|
0
|
290
|
16
|
291 #define XtTOP_LEFT (EM_TOP | EM_LEFT)
|
|
292 #define XtBOTTOM_LEFT (EM_BOTTOM | EM_LEFT)
|
|
293 #define XtTOP_RIGHT (EM_TOP | EM_RIGHT)
|
|
294 #define XtBOTTOM_RIGHT (EM_BOTTOM | EM_RIGHT)
|
0
|
295
|
16
|
296 /* structures */
|
0
|
297 typedef struct _EmacsFrameRec *EmacsFrame;
|
|
298 typedef struct _EmacsFrameClassRec *EmacsFrameClass;
|
|
299
|
|
300 extern WidgetClass emacsFrameClass;
|
|
301
|
|
302 extern struct _DisplayContext* display_context;
|
|
303
|
|
304 /* Special entrypoints */
|
|
305 void EmacsFrameRecomputeCellSize (Widget widget);
|
|
306 void EmacsFrameSetCharSize (Widget widget, int rows, int cols);
|
|
307
|
|
308 #endif /* _EmacsFrame_h */
|