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
|
183
|
28 #define XtNminibuffer "minibuffer"
|
0
|
29 #endif
|
|
30 #ifndef XtCMinibuffer
|
183
|
31 #define XtCMinibuffer "Minibuffer"
|
0
|
32 #endif
|
|
33
|
|
34 #ifndef XtNunsplittable
|
183
|
35 #define XtNunsplittable "unsplittable"
|
0
|
36 #endif
|
|
37 #ifndef XtCUnsplittable
|
183
|
38 #define XtCUnsplittable "Unsplittable"
|
0
|
39 #endif
|
|
40
|
|
41 #ifndef XtNinternalBorderWidth
|
183
|
42 #define XtNinternalBorderWidth "internalBorderWidth"
|
0
|
43 #endif
|
|
44 #ifndef XtCInternalBorderWidth
|
183
|
45 #define XtCInternalBorderWidth "InternalBorderWidth"
|
0
|
46 #endif
|
|
47
|
|
48 #ifndef XtNscrollBarWidth
|
183
|
49 #define XtNscrollBarWidth "scrollBarWidth"
|
0
|
50 #endif
|
|
51 #ifndef XtCScrollBarWidth
|
183
|
52 #define XtCScrollBarWidth "ScrollBarWidth"
|
0
|
53 #endif
|
|
54
|
|
55 #ifndef XtNscrollBarHeight
|
183
|
56 #define XtNscrollBarHeight "scrollBarHeight"
|
0
|
57 #endif
|
|
58 #ifndef XtCScrollBarHeight
|
183
|
59 #define XtCScrollBarHeight "ScrollBarHeight"
|
0
|
60 #endif
|
|
61
|
|
62 #ifndef XtNtopToolBarHeight
|
183
|
63 #define XtNtopToolBarHeight "topToolBarHeight"
|
0
|
64 #endif
|
|
65 #ifndef XtCTopToolBarHeight
|
183
|
66 #define XtCTopToolBarHeight "TopToolBarHeight"
|
0
|
67 #endif
|
|
68
|
|
69 #ifndef XtNbottomToolBarHeight
|
183
|
70 #define XtNbottomToolBarHeight "bottomToolBarHeight"
|
0
|
71 #endif
|
|
72 #ifndef XtCBottomToolBarHeight
|
183
|
73 #define XtCBottomToolBarHeight "BottomToolBarHeight"
|
0
|
74 #endif
|
|
75
|
|
76 #ifndef XtNleftToolBarWidth
|
183
|
77 #define XtNleftToolBarWidth "leftToolBarWidth"
|
0
|
78 #endif
|
|
79 #ifndef XtCLeftToolBarWidth
|
183
|
80 #define XtCLeftToolBarWidth "LeftToolBarWidth"
|
0
|
81 #endif
|
|
82
|
|
83 #ifndef XtNrightToolBarWidth
|
183
|
84 #define XtNrightToolBarWidth "rightToolBarWidth"
|
0
|
85 #endif
|
|
86 #ifndef XtCRightToolBarWidth
|
183
|
87 #define XtCRightToolBarWidth "RightToolBarWidth"
|
0
|
88 #endif
|
|
89
|
215
|
90 #ifndef XtNtopToolBarBorderWidth
|
|
91 #define XtNtopToolBarBorderWidth "topToolBarBorderWidth"
|
|
92 #endif
|
|
93 #ifndef XtCTopToolBarBorderWidth
|
|
94 #define XtCTopToolBarBorderWidth "TopToolBarBorderWidth"
|
|
95 #endif
|
|
96
|
|
97 #ifndef XtNbottomToolBarBorderWidth
|
|
98 #define XtNbottomToolBarBorderWidth "bottomToolBarBorderWidth"
|
|
99 #endif
|
|
100 #ifndef XtCBottomToolBarBorderWidth
|
|
101 #define XtCBottomToolBarBorderWidth "BottomToolBarBorderWidth"
|
|
102 #endif
|
|
103
|
|
104 #ifndef XtNleftToolBarBorderWidth
|
|
105 #define XtNleftToolBarBorderWidth "leftToolBarBorderWidth"
|
|
106 #endif
|
|
107 #ifndef XtCLeftToolBarBorderWidth
|
|
108 #define XtCLeftToolBarBorderWidth "LeftToolBarBorderWidth"
|
|
109 #endif
|
|
110
|
|
111 #ifndef XtNrightToolBarBorderWidth
|
|
112 #define XtNrightToolBarBorderWidth "rightToolBarBorderWidth"
|
|
113 #endif
|
|
114 #ifndef XtCRightToolBarBorderWidth
|
|
115 #define XtCRightToolBarBorderWidth "RightToolBarBorderWidth"
|
|
116 #endif
|
|
117
|
0
|
118 #ifndef XtNtopToolBarShadowColor
|
183
|
119 #define XtNtopToolBarShadowColor "topToolBarShadowColor"
|
0
|
120 #endif
|
|
121 #ifndef XtCTopToolBarShadowColor
|
183
|
122 #define XtCTopToolBarShadowColor "TopToolBarShadowColor"
|
0
|
123 #endif
|
|
124
|
|
125 #ifndef XtNbottomToolBarShadowColor
|
183
|
126 #define XtNbottomToolBarShadowColor "bottomToolBarShadowColor"
|
0
|
127 #endif
|
|
128 #ifndef XtCBottomToolBarShadowColor
|
183
|
129 #define XtCBottomToolBarShadowColor "BottomToolBarShadowColor"
|
0
|
130 #endif
|
|
131
|
|
132 #ifndef XtNbackgroundToolBarColor
|
183
|
133 #define XtNbackgroundToolBarColor "backgroundToolBarColor"
|
0
|
134 #endif
|
|
135 #ifndef XtCBackgroundToolBarColor
|
183
|
136 #define XtCBackgroundToolBarColor "BackgroundToolBarColor"
|
0
|
137 #endif
|
|
138
|
227
|
139 #ifndef XtNforegroundToolBarColor
|
|
140 #define XtNforegroundToolBarColor "foregroundToolBarColor"
|
|
141 #endif
|
|
142 #ifndef XtCForegroundToolBarColor
|
|
143 #define XtCForegroundToolBarColor "ForegroundToolBarColor"
|
|
144 #endif
|
|
145
|
0
|
146 #ifndef XtNtopToolBarShadowPixmap
|
183
|
147 #define XtNtopToolBarShadowPixmap "topToolBarShadowPixmap"
|
0
|
148 #endif
|
|
149 #ifndef XtCTopToolBarShadowPixmap
|
183
|
150 #define XtCTopToolBarShadowPixmap "TopToolBarShadowPixmap"
|
0
|
151 #endif
|
|
152
|
|
153 #ifndef XtNbottomToolBarShadowPixmap
|
183
|
154 #define XtNbottomToolBarShadowPixmap "bottomToolBarShadowPixmap"
|
0
|
155 #endif
|
|
156 #ifndef XtCBottomToolBarShadowPixmap
|
183
|
157 #define XtCBottomToolBarShadowPixmap "BottomToolBarShadowPixmap"
|
0
|
158 #endif
|
|
159
|
|
160 #ifndef XtNtoolBarShadowThickness
|
183
|
161 #define XtNtoolBarShadowThickness "toolBarShadowThickness"
|
0
|
162 #endif
|
|
163 #ifndef XtCToolBarShadowThickness
|
183
|
164 #define XtCToolBarShadowThickness "ToolBarShadowThickness"
|
0
|
165 #endif
|
|
166
|
|
167 #ifndef XtNscrollBarPlacement
|
183
|
168 #define XtNscrollBarPlacement "scrollBarPlacement"
|
0
|
169 #endif
|
|
170 #ifndef XtCScrollBarPlacement
|
183
|
171 #define XtCScrollBarPlacement "ScrollBarPlacement"
|
0
|
172 #endif
|
|
173 #ifndef XtRScrollBarPlacement
|
183
|
174 #define XtRScrollBarPlacement "ScrollBarPlacement"
|
0
|
175 #endif
|
|
176
|
|
177 #ifndef XtNinterline
|
183
|
178 #define XtNinterline "interline"
|
0
|
179 #endif
|
|
180 #ifndef XtCInterline
|
183
|
181 #define XtCInterline "Interline"
|
0
|
182 #endif
|
|
183
|
|
184 #ifndef XtNfont
|
183
|
185 #define XtNfont "font"
|
0
|
186 #endif
|
|
187 #ifndef XtCFont
|
183
|
188 #define XtCFont "Font"
|
0
|
189 #endif
|
|
190
|
|
191 #ifndef XtNforeground
|
183
|
192 #define XtNforeground "foreground"
|
0
|
193 #endif
|
|
194 #ifndef XtCForeground
|
183
|
195 #define XtCForeground "Foreground"
|
0
|
196 #endif
|
|
197
|
215
|
198 #ifndef XtNbackground
|
|
199 #define XtNbackground "background"
|
|
200 #endif
|
|
201 #ifndef XtCBackground
|
|
202 #define XtCBackground "Background"
|
|
203 #endif
|
|
204
|
0
|
205 #ifndef XtNiconic
|
183
|
206 #define XtNiconic "iconic"
|
0
|
207 #endif
|
|
208 #ifndef XtCIconic
|
183
|
209 #define XtCIconic "Iconic"
|
0
|
210 #endif
|
|
211
|
|
212 #ifndef XtNcursorColor
|
183
|
213 #define XtNcursorColor "cursorColor"
|
0
|
214 #endif
|
|
215 #ifndef XtCCursorColor
|
183
|
216 #define XtCCursorColor "CursorColor"
|
0
|
217 #endif
|
|
218
|
|
219 #ifndef XtNbarCursor
|
183
|
220 #define XtNbarCursor "barCursor"
|
0
|
221 #endif
|
|
222 #ifndef XtCBarCursor
|
183
|
223 #define XtCBarCursor "BarCursor"
|
0
|
224 #endif
|
|
225
|
|
226 #ifndef XtNvisualBell
|
183
|
227 #define XtNvisualBell "visualBell"
|
0
|
228 #endif
|
|
229 #ifndef XtCVisualBell
|
183
|
230 #define XtCVisualBell "VisualBell"
|
0
|
231 #endif
|
|
232
|
|
233 #ifndef XtNbellVolume
|
183
|
234 #define XtNbellVolume "bellVolume"
|
0
|
235 #endif
|
|
236 #ifndef XtCBellVolume
|
183
|
237 #define XtCBellVolume "BellVolume"
|
0
|
238 #endif
|
|
239
|
|
240 #ifndef XtNpointerBackground
|
183
|
241 #define XtNpointerBackground "pointerBackground"
|
0
|
242 #endif
|
|
243
|
|
244 #ifndef XtNpointerColor
|
|
245 #define XtNpointerColor "pointerColor"
|
|
246 #endif
|
|
247
|
|
248 #ifndef XtNtextPointer
|
183
|
249 #define XtNtextPointer "textPointer"
|
0
|
250 #endif
|
|
251
|
|
252 #ifndef XtNspacePointer
|
183
|
253 #define XtNspacePointer "spacePointer"
|
0
|
254 #endif
|
|
255
|
|
256 #ifndef XtNmodeLinePointer
|
183
|
257 #define XtNmodeLinePointer "modePointer"
|
0
|
258 #endif
|
|
259
|
|
260 #ifndef XtNgcPointer
|
183
|
261 #define XtNgcPointer "gcPointer"
|
0
|
262 #endif
|
|
263
|
|
264 #ifndef XtNemacsFrame
|
183
|
265 #define XtNemacsFrame "emacsFrame"
|
0
|
266 #endif
|
|
267 #ifndef XtCEmacsFrame
|
183
|
268 #define XtCEmacsFrame "EmacsFrame"
|
0
|
269 #endif
|
|
270
|
|
271 #ifndef XtNgeometry
|
183
|
272 #define XtNgeometry "geometry"
|
0
|
273 #endif
|
|
274 #ifndef XtCGeometry
|
183
|
275 #define XtCGeometry "Geometry"
|
0
|
276 #endif
|
|
277
|
|
278 #ifndef XtNinitialGeometry
|
183
|
279 #define XtNinitialGeometry "initialGeometry"
|
0
|
280 #endif
|
|
281 #ifndef XtCInitialGeometry
|
183
|
282 #define XtCInitialGeometry "InitialGeometry"
|
0
|
283 #endif
|
|
284
|
|
285 #ifndef XtNmenubar
|
183
|
286 #define XtNmenubar "menubar"
|
0
|
287 #endif
|
|
288 #ifndef XtCMenubar
|
183
|
289 #define XtCMenubar "Menubar"
|
0
|
290 #endif
|
|
291
|
|
292 #ifndef XtNinitiallyUnmapped
|
183
|
293 #define XtNinitiallyUnmapped "initiallyUnmapped"
|
0
|
294 #endif
|
|
295 #ifndef XtCInitiallyUnmapped
|
183
|
296 #define XtCInitiallyUnmapped "InitiallyUnmapped"
|
0
|
297 #endif
|
|
298
|
|
299 #ifndef XtNpreferredWidth
|
183
|
300 #define XtNpreferredWidth "preferredWidth"
|
0
|
301 #endif
|
|
302 #ifndef XtCPreferredWidth
|
183
|
303 #define XtCPreferredWidth "PreferredWidth"
|
0
|
304 #endif
|
|
305
|
|
306 #ifndef XtNpreferredHeight
|
183
|
307 #define XtNpreferredHeight "preferredHeight"
|
0
|
308 #endif
|
|
309 #ifndef XtCPreferredHeight
|
183
|
310 #define XtCPreferredHeight "PreferredHeight"
|
0
|
311 #endif
|
|
312
|
|
313 #ifndef XtNuseBackingStore
|
183
|
314 #define XtNuseBackingStore "useBackingStore"
|
0
|
315 #endif
|
|
316 #ifndef XtCUseBackingStore
|
183
|
317 #define XtCUseBackingStore "UseBackingStore"
|
0
|
318 #endif
|
|
319
|
70
|
320 #define XtNximStyles "ximStyles"
|
|
321 #define XtCXimStyles "XimStyles"
|
|
322 #define XtRXimStyles "XimStyles"
|
|
323
|
|
324 #define XtNximForeground "ximForeground"
|
|
325 #define XtNximBackground "ximBackground"
|
|
326
|
0
|
327 /* scrollbar placement types; like in ScrolledW.h */
|
16
|
328 #define EM_TOP 1
|
|
329 #define EM_BOTTOM 0
|
|
330 #define EM_LEFT 2
|
|
331 #define EM_RIGHT 0
|
183
|
332
|
16
|
333 #define XtTOP_LEFT (EM_TOP | EM_LEFT)
|
|
334 #define XtBOTTOM_LEFT (EM_BOTTOM | EM_LEFT)
|
|
335 #define XtTOP_RIGHT (EM_TOP | EM_RIGHT)
|
|
336 #define XtBOTTOM_RIGHT (EM_BOTTOM | EM_RIGHT)
|
183
|
337
|
16
|
338 /* structures */
|
0
|
339 typedef struct _EmacsFrameRec *EmacsFrame;
|
|
340 typedef struct _EmacsFrameClassRec *EmacsFrameClass;
|
|
341
|
|
342 extern WidgetClass emacsFrameClass;
|
|
343
|
|
344 extern struct _DisplayContext* display_context;
|
|
345
|
|
346 /* Special entrypoints */
|
|
347 void EmacsFrameRecomputeCellSize (Widget widget);
|
|
348 void EmacsFrameSetCharSize (Widget widget, int rows, int cols);
|
|
349
|
|
350 #endif /* _EmacsFrame_h */
|