1 /* Public header for the Emacs frame widget.
2 Copyright (C) 1993-1995 Sun Microsystems, Inc.
3 Copyright (C) 1995 Ben Wing.
5 This file is part of XEmacs.
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
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
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. */
22 /* Synched up with: Not in FSF. */
24 #ifndef INCLUDED_EmacsFrame_h_
25 #define INCLUDED_EmacsFrame_h_
28 #define XtNminibuffer "minibuffer"
31 #define XtCMinibuffer "Minibuffer"
34 #ifndef XtNunsplittable
35 #define XtNunsplittable "unsplittable"
37 #ifndef XtCUnsplittable
38 #define XtCUnsplittable "Unsplittable"
41 #ifndef XtNinternalBorderWidth
42 #define XtNinternalBorderWidth "internalBorderWidth"
44 #ifndef XtCInternalBorderWidth
45 #define XtCInternalBorderWidth "InternalBorderWidth"
48 #ifndef XtNscrollBarWidth
49 #define XtNscrollBarWidth "scrollBarWidth"
51 #ifndef XtCScrollBarWidth
52 #define XtCScrollBarWidth "ScrollBarWidth"
55 #ifndef XtNscrollBarHeight
56 #define XtNscrollBarHeight "scrollBarHeight"
58 #ifndef XtCScrollBarHeight
59 #define XtCScrollBarHeight "ScrollBarHeight"
62 #ifndef XtNtopToolBarHeight
63 #define XtNtopToolBarHeight "topToolBarHeight"
65 #ifndef XtCTopToolBarHeight
66 #define XtCTopToolBarHeight "TopToolBarHeight"
69 #ifndef XtNbottomToolBarHeight
70 #define XtNbottomToolBarHeight "bottomToolBarHeight"
72 #ifndef XtCBottomToolBarHeight
73 #define XtCBottomToolBarHeight "BottomToolBarHeight"
76 #ifndef XtNleftToolBarWidth
77 #define XtNleftToolBarWidth "leftToolBarWidth"
79 #ifndef XtCLeftToolBarWidth
80 #define XtCLeftToolBarWidth "LeftToolBarWidth"
83 #ifndef XtNrightToolBarWidth
84 #define XtNrightToolBarWidth "rightToolBarWidth"
86 #ifndef XtCRightToolBarWidth
87 #define XtCRightToolBarWidth "RightToolBarWidth"
90 #ifndef XtNtopToolBarBorderWidth
91 #define XtNtopToolBarBorderWidth "topToolBarBorderWidth"
93 #ifndef XtCTopToolBarBorderWidth
94 #define XtCTopToolBarBorderWidth "TopToolBarBorderWidth"
97 #ifndef XtNbottomToolBarBorderWidth
98 #define XtNbottomToolBarBorderWidth "bottomToolBarBorderWidth"
100 #ifndef XtCBottomToolBarBorderWidth
101 #define XtCBottomToolBarBorderWidth "BottomToolBarBorderWidth"
104 #ifndef XtNleftToolBarBorderWidth
105 #define XtNleftToolBarBorderWidth "leftToolBarBorderWidth"
107 #ifndef XtCLeftToolBarBorderWidth
108 #define XtCLeftToolBarBorderWidth "LeftToolBarBorderWidth"
111 #ifndef XtNrightToolBarBorderWidth
112 #define XtNrightToolBarBorderWidth "rightToolBarBorderWidth"
114 #ifndef XtCRightToolBarBorderWidth
115 #define XtCRightToolBarBorderWidth "RightToolBarBorderWidth"
118 #ifndef XtNtopToolBarShadowColor
119 #define XtNtopToolBarShadowColor "topToolBarShadowColor"
121 #ifndef XtCTopToolBarShadowColor
122 #define XtCTopToolBarShadowColor "TopToolBarShadowColor"
125 #ifndef XtNbottomToolBarShadowColor
126 #define XtNbottomToolBarShadowColor "bottomToolBarShadowColor"
128 #ifndef XtCBottomToolBarShadowColor
129 #define XtCBottomToolBarShadowColor "BottomToolBarShadowColor"
132 #ifndef XtNbackgroundToolBarColor
133 #define XtNbackgroundToolBarColor "backgroundToolBarColor"
135 #ifndef XtCBackgroundToolBarColor
136 #define XtCBackgroundToolBarColor "BackgroundToolBarColor"
139 #ifndef XtNforegroundToolBarColor
140 #define XtNforegroundToolBarColor "foregroundToolBarColor"
142 #ifndef XtCForegroundToolBarColor
143 #define XtCForegroundToolBarColor "ForegroundToolBarColor"
146 #ifndef XtNtopToolBarShadowPixmap
147 #define XtNtopToolBarShadowPixmap "topToolBarShadowPixmap"
149 #ifndef XtCTopToolBarShadowPixmap
150 #define XtCTopToolBarShadowPixmap "TopToolBarShadowPixmap"
153 #ifndef XtNbottomToolBarShadowPixmap
154 #define XtNbottomToolBarShadowPixmap "bottomToolBarShadowPixmap"
156 #ifndef XtCBottomToolBarShadowPixmap
157 #define XtCBottomToolBarShadowPixmap "BottomToolBarShadowPixmap"
160 #ifndef XtNtoolBarShadowThickness
161 #define XtNtoolBarShadowThickness "toolBarShadowThickness"
163 #ifndef XtCToolBarShadowThickness
164 #define XtCToolBarShadowThickness "ToolBarShadowThickness"
167 #ifndef XtNscrollBarPlacement
168 #define XtNscrollBarPlacement "scrollBarPlacement"
170 #ifndef XtCScrollBarPlacement
171 #define XtCScrollBarPlacement "ScrollBarPlacement"
173 #ifndef XtRScrollBarPlacement
174 #define XtRScrollBarPlacement "ScrollBarPlacement"
178 #define XtNinterline "interline"
181 #define XtCInterline "Interline"
185 #define XtNfont "font"
188 #define XtCFont "Font"
191 #ifndef XtNforeground
192 #define XtNforeground "foreground"
194 #ifndef XtCForeground
195 #define XtCForeground "Foreground"
198 #ifndef XtNbackground
199 #define XtNbackground "background"
201 #ifndef XtCBackground
202 #define XtCBackground "Background"
206 #define XtNiconic "iconic"
209 #define XtCIconic "Iconic"
212 #ifndef XtNcursorColor
213 #define XtNcursorColor "cursorColor"
215 #ifndef XtCCursorColor
216 #define XtCCursorColor "CursorColor"
220 #define XtNbarCursor "barCursor"
223 #define XtCBarCursor "BarCursor"
226 #ifndef XtNvisualBell
227 #define XtNvisualBell "visualBell"
229 #ifndef XtCVisualBell
230 #define XtCVisualBell "VisualBell"
233 #ifndef XtNbellVolume
234 #define XtNbellVolume "bellVolume"
236 #ifndef XtCBellVolume
237 #define XtCBellVolume "BellVolume"
240 #ifndef XtNpointerBackground
241 #define XtNpointerBackground "pointerBackground"
244 #ifndef XtNpointerColor
245 #define XtNpointerColor "pointerColor"
248 #ifndef XtNtextPointer
249 #define XtNtextPointer "textPointer"
252 #ifndef XtNspacePointer
253 #define XtNspacePointer "spacePointer"
256 #ifndef XtNmodeLinePointer
257 #define XtNmodeLinePointer "modePointer"
261 #define XtNgcPointer "gcPointer"
264 #ifndef XtNemacsFrame
265 #define XtNemacsFrame "emacsFrame"
267 #ifndef XtCEmacsFrame
268 #define XtCEmacsFrame "EmacsFrame"
272 #define XtNgeometry "geometry"
275 #define XtCGeometry "Geometry"
278 #ifndef XtNinitialGeometry
279 #define XtNinitialGeometry "initialGeometry"
281 #ifndef XtCInitialGeometry
282 #define XtCInitialGeometry "InitialGeometry"
286 #define XtNmenubar "menubar"
289 #define XtCMenubar "Menubar"
292 #ifndef XtNinitiallyUnmapped
293 #define XtNinitiallyUnmapped "initiallyUnmapped"
295 #ifndef XtCInitiallyUnmapped
296 #define XtCInitiallyUnmapped "InitiallyUnmapped"
299 #ifndef XtNpreferredWidth
300 #define XtNpreferredWidth "preferredWidth"
302 #ifndef XtCPreferredWidth
303 #define XtCPreferredWidth "PreferredWidth"
306 #ifndef XtNpreferredHeight
307 #define XtNpreferredHeight "preferredHeight"
309 #ifndef XtCPreferredHeight
310 #define XtCPreferredHeight "PreferredHeight"
313 #ifndef XtNuseBackingStore
314 #define XtNuseBackingStore "useBackingStore"
316 #ifndef XtCUseBackingStore
317 #define XtCUseBackingStore "UseBackingStore"
320 #define XtNximStyles "ximStyles"
321 #define XtCXimStyles "XimStyles"
322 #define XtRXimStyles "XimStyles"
324 #define XtNximForeground "ximForeground"
325 #define XtNximBackground "ximBackground"
327 /* scrollbar placement types; like in ScrolledW.h */
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)
339 typedef struct _EmacsFrameRec *EmacsFrame;
340 typedef struct _EmacsFrameClassRec *EmacsFrameClass;
342 extern WidgetClass emacsFrameClass;
344 extern struct _DisplayContext* display_context;
346 /* Special entrypoints */
347 void EmacsFrameRecomputeCellSize (Widget widget);
348 void EmacsFrameSetCharSize (Widget widget, int rows, int cols);
350 #endif /* INCLUDED_EmacsFrame_h_ */