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