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 SXEmacs
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.
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.
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/>. */
21 /* Synched up with: Not in FSF. */
23 #ifndef INCLUDED_EmacsFrame_h_
24 #define INCLUDED_EmacsFrame_h_
27 #define XtNminibuffer "minibuffer"
30 #define XtCMinibuffer "Minibuffer"
33 #ifndef XtNunsplittable
34 #define XtNunsplittable "unsplittable"
36 #ifndef XtCUnsplittable
37 #define XtCUnsplittable "Unsplittable"
40 #ifndef XtNinternalBorderWidth
41 #define XtNinternalBorderWidth "internalBorderWidth"
43 #ifndef XtCInternalBorderWidth
44 #define XtCInternalBorderWidth "InternalBorderWidth"
47 #ifndef XtNscrollBarWidth
48 #define XtNscrollBarWidth "scrollBarWidth"
50 #ifndef XtCScrollBarWidth
51 #define XtCScrollBarWidth "ScrollBarWidth"
54 #ifndef XtNscrollBarHeight
55 #define XtNscrollBarHeight "scrollBarHeight"
57 #ifndef XtCScrollBarHeight
58 #define XtCScrollBarHeight "ScrollBarHeight"
61 #ifndef XtNtopToolBarHeight
62 #define XtNtopToolBarHeight "topToolBarHeight"
64 #ifndef XtCTopToolBarHeight
65 #define XtCTopToolBarHeight "TopToolBarHeight"
68 #ifndef XtNbottomToolBarHeight
69 #define XtNbottomToolBarHeight "bottomToolBarHeight"
71 #ifndef XtCBottomToolBarHeight
72 #define XtCBottomToolBarHeight "BottomToolBarHeight"
75 #ifndef XtNleftToolBarWidth
76 #define XtNleftToolBarWidth "leftToolBarWidth"
78 #ifndef XtCLeftToolBarWidth
79 #define XtCLeftToolBarWidth "LeftToolBarWidth"
82 #ifndef XtNrightToolBarWidth
83 #define XtNrightToolBarWidth "rightToolBarWidth"
85 #ifndef XtCRightToolBarWidth
86 #define XtCRightToolBarWidth "RightToolBarWidth"
89 #ifndef XtNtopToolBarBorderWidth
90 #define XtNtopToolBarBorderWidth "topToolBarBorderWidth"
92 #ifndef XtCTopToolBarBorderWidth
93 #define XtCTopToolBarBorderWidth "TopToolBarBorderWidth"
96 #ifndef XtNbottomToolBarBorderWidth
97 #define XtNbottomToolBarBorderWidth "bottomToolBarBorderWidth"
99 #ifndef XtCBottomToolBarBorderWidth
100 #define XtCBottomToolBarBorderWidth "BottomToolBarBorderWidth"
103 #ifndef XtNleftToolBarBorderWidth
104 #define XtNleftToolBarBorderWidth "leftToolBarBorderWidth"
106 #ifndef XtCLeftToolBarBorderWidth
107 #define XtCLeftToolBarBorderWidth "LeftToolBarBorderWidth"
110 #ifndef XtNrightToolBarBorderWidth
111 #define XtNrightToolBarBorderWidth "rightToolBarBorderWidth"
113 #ifndef XtCRightToolBarBorderWidth
114 #define XtCRightToolBarBorderWidth "RightToolBarBorderWidth"
117 #ifndef XtNtopToolBarShadowColor
118 #define XtNtopToolBarShadowColor "topToolBarShadowColor"
120 #ifndef XtCTopToolBarShadowColor
121 #define XtCTopToolBarShadowColor "TopToolBarShadowColor"
124 #ifndef XtNbottomToolBarShadowColor
125 #define XtNbottomToolBarShadowColor "bottomToolBarShadowColor"
127 #ifndef XtCBottomToolBarShadowColor
128 #define XtCBottomToolBarShadowColor "BottomToolBarShadowColor"
131 #ifndef XtNbackgroundToolBarColor
132 #define XtNbackgroundToolBarColor "backgroundToolBarColor"
134 #ifndef XtCBackgroundToolBarColor
135 #define XtCBackgroundToolBarColor "BackgroundToolBarColor"
138 #ifndef XtNforegroundToolBarColor
139 #define XtNforegroundToolBarColor "foregroundToolBarColor"
141 #ifndef XtCForegroundToolBarColor
142 #define XtCForegroundToolBarColor "ForegroundToolBarColor"
145 #ifndef XtNtopToolBarShadowPixmap
146 #define XtNtopToolBarShadowPixmap "topToolBarShadowPixmap"
148 #ifndef XtCTopToolBarShadowPixmap
149 #define XtCTopToolBarShadowPixmap "TopToolBarShadowPixmap"
152 #ifndef XtNbottomToolBarShadowPixmap
153 #define XtNbottomToolBarShadowPixmap "bottomToolBarShadowPixmap"
155 #ifndef XtCBottomToolBarShadowPixmap
156 #define XtCBottomToolBarShadowPixmap "BottomToolBarShadowPixmap"
159 #ifndef XtNtoolBarShadowThickness
160 #define XtNtoolBarShadowThickness "toolBarShadowThickness"
162 #ifndef XtCToolBarShadowThickness
163 #define XtCToolBarShadowThickness "ToolBarShadowThickness"
166 #ifndef XtNscrollBarPlacement
167 #define XtNscrollBarPlacement "scrollBarPlacement"
169 #ifndef XtCScrollBarPlacement
170 #define XtCScrollBarPlacement "ScrollBarPlacement"
172 #ifndef XtRScrollBarPlacement
173 #define XtRScrollBarPlacement "ScrollBarPlacement"
177 #define XtNinterline "interline"
180 #define XtCInterline "Interline"
184 #define XtNfont "font"
187 #define XtCFont "Font"
190 #ifndef XtNforeground
191 #define XtNforeground "foreground"
193 #ifndef XtCForeground
194 #define XtCForeground "Foreground"
197 #ifndef XtNbackground
198 #define XtNbackground "background"
200 #ifndef XtCBackground
201 #define XtCBackground "Background"
205 #define XtNiconic "iconic"
208 #define XtCIconic "Iconic"
211 #ifndef XtNcursorColor
212 #define XtNcursorColor "cursorColor"
214 #ifndef XtCCursorColor
215 #define XtCCursorColor "CursorColor"
219 #define XtNbarCursor "barCursor"
222 #define XtCBarCursor "BarCursor"
225 #ifndef XtNvisualBell
226 #define XtNvisualBell "visualBell"
228 #ifndef XtCVisualBell
229 #define XtCVisualBell "VisualBell"
232 #ifndef XtNbellVolume
233 #define XtNbellVolume "bellVolume"
235 #ifndef XtCBellVolume
236 #define XtCBellVolume "BellVolume"
239 #ifndef XtNpointerBackground
240 #define XtNpointerBackground "pointerBackground"
243 #ifndef XtNpointerColor
244 #define XtNpointerColor "pointerColor"
247 #ifndef XtNtextPointer
248 #define XtNtextPointer "textPointer"
251 #ifndef XtNspacePointer
252 #define XtNspacePointer "spacePointer"
255 #ifndef XtNmodeLinePointer
256 #define XtNmodeLinePointer "modePointer"
260 #define XtNgcPointer "gcPointer"
263 #ifndef XtNemacsFrame
264 #define XtNemacsFrame "emacsFrame"
266 #ifndef XtCEmacsFrame
267 #define XtCEmacsFrame "EmacsFrame"
271 #define XtNgeometry "geometry"
274 #define XtCGeometry "Geometry"
277 #ifndef XtNinitialGeometry
278 #define XtNinitialGeometry "initialGeometry"
280 #ifndef XtCInitialGeometry
281 #define XtCInitialGeometry "InitialGeometry"
285 #define XtNmenubar "menubar"
288 #define XtCMenubar "Menubar"
291 #ifndef XtNinitiallyUnmapped
292 #define XtNinitiallyUnmapped "initiallyUnmapped"
294 #ifndef XtCInitiallyUnmapped
295 #define XtCInitiallyUnmapped "InitiallyUnmapped"
298 #ifndef XtNpreferredWidth
299 #define XtNpreferredWidth "preferredWidth"
301 #ifndef XtCPreferredWidth
302 #define XtCPreferredWidth "PreferredWidth"
305 #ifndef XtNpreferredHeight
306 #define XtNpreferredHeight "preferredHeight"
308 #ifndef XtCPreferredHeight
309 #define XtCPreferredHeight "PreferredHeight"
312 #ifndef XtNuseBackingStore
313 #define XtNuseBackingStore "useBackingStore"
315 #ifndef XtCUseBackingStore
316 #define XtCUseBackingStore "UseBackingStore"
319 #define XtNximStyles "ximStyles"
320 #define XtCXimStyles "XimStyles"
321 #define XtRXimStyles "XimStyles"
323 #define XtNximForeground "ximForeground"
324 #define XtNximBackground "ximBackground"
326 /* scrollbar placement types; like in ScrolledW.h */
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)
338 typedef struct _EmacsFrameRec *EmacsFrame;
339 typedef struct _EmacsFrameClassRec *EmacsFrameClass;
341 extern WidgetClass emacsFrameClass;
343 extern struct _DisplayContext *display_context;
345 /* Special entrypoints */
346 void EmacsFrameRecomputeCellSize(Widget widget);
347 void EmacsFrameSetCharSize(Widget widget, int rows, int cols);
349 #endif /* INCLUDED_EmacsFrame_h_ */