home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / src / EmacsFrame.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-05  |  6.8 KB  |  301 lines

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