home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / Microline3.0 / XmL / XmL.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  20.9 KB  |  629 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. /*
  20.  * The following source code is part of the Microline Widget Library.
  21.  * The Microline widget library is made available to Mozilla developers
  22.  * under the Netscape Public License (NPL) by Neuron Data.  To learn
  23.  * more about Neuron Data, please visit the Neuron Data Home Page at
  24.  * http://www.neurondata.com.
  25.  */
  26.  
  27.  
  28. #ifndef XmLH
  29. #define XmLH
  30.  
  31. #include <Xm/Xm.h>
  32.  
  33. #if defined(__cplusplus) || defined(c_plusplus)
  34. #define XmL_CPP 1
  35. #endif
  36.  
  37. #if defined(_STDC_) || defined(__STDC__) || defined(XmL_CPP)
  38. #ifndef _NO_PROTO
  39. #define XmL_ANSIC 1
  40. #endif
  41. #endif
  42.  
  43. #define XmLVERSION_301
  44.  
  45. #ifdef XmL_CPP
  46. extern "C" {
  47. #endif
  48.  
  49. /* shared resources */
  50.  
  51. #define XmNautoSelect "autoSelect"
  52. #define XmCAutoSelect "AutoSelect"
  53. #define XmNblankBackground "blankBackground"
  54. #define XmCBlankBackground "BlankBackground"
  55. #define XmNdebugLevel "debugLevel"
  56. #define XmCDebugLevel "DebugLevel"
  57.  
  58. /* Folder resources */
  59.  
  60. #define XmNacceptResize "acceptResize"
  61. #define XmCAcceptResize "AcceptResize"
  62. #define XmNactiveTab "activeTab"
  63. #define XmCActiveTab "ActiveTab"
  64. #define XmNblankBackgroundPixmap "blankBackgroundPixmap"
  65. #define XmCBlankBackgroundPixmap "BlankBackgroundPixmap"
  66. #define XmNcornerDimension "cornerDimension"
  67. #define XmCCornerDimension "CornerDimension"
  68. #define XmNcornerStyle "cornerStyle"
  69. #define XmCCornerStyle "CornerStyle"
  70. #define XmRCornerStyle "CornerStyle"
  71. #define XmNinactiveBackground "inactiveBackground"
  72. #define XmCInactiveBackground "InactiveBackground"
  73. #define XmNinactiveForeground "inactiveForeground"
  74. #define XmCInactiveForeground "InactiveForeground"
  75. #define XmNpixmapMargin "pixmapMargin"
  76. #define XmCPixmapMargin "PixmapMargin"
  77. #define XmCFolderResizePolicy "FolderResizePolicy"
  78. #define XmRFolderResizePolicy "FolderResizePolicy"
  79. #define XmNrotateWhenLeftRight "rotateWhenLeftRight"
  80. #define XmCRotateWhenLeftRight "RotateWhenLeftRight"
  81. #define XmNtabBarHeight "tabBarHeight"
  82. #define XmCTabBarHeight "TabBarHeight"
  83. #define XmNtabCount "tabCount"
  84. #define XmCTabCount "TabCount"
  85. #define XmNtabPlacement "tabPlacement"
  86. #define XmCTabPlacement "TabPlacement"
  87. #define XmRTabPlacement "TabPlacement"
  88. #define XmNtabsPerRow "tabsPerRow"
  89. #define XmCTabsPerRow "TabsPerRow"
  90. #define XmNtabTranslations "tabTranslations"
  91. #define XmNtabWidgetList "tabWidgetList"
  92. #define XmNtabWidgetClass "tabWidgetClass"
  93. #define XmCTabWidgetClass "TabWidgetClass"
  94.  
  95. /* Folder Constraint resources */
  96.  
  97. #define XmNtabFreePixmaps "tabFreePixmaps"
  98. #define XmCTabFreePixmaps "TabFreePixmaps"
  99. #define XmNtabInactivePixmap "tabInactivePixmap"
  100. #define XmCTabInactivePixmap "TabInactivePixmap"
  101. #define XmNtabManagedName "tabManagedName"
  102. #define XmCTabManagedName "TabManagedName"
  103. #define XmNtabManagedWidget "tabManagedWidget"
  104. #define XmCTabManagedWidget "TabManagedWidget"
  105. #define XmNtabPixmap "tabPixmap"
  106. #define XmCTabPixmap "TabPixmap"
  107.  
  108. /* Folder callbacks */
  109.  
  110. typedef struct
  111.     {
  112.     int reason;
  113.     XEvent *event;
  114.     int pos;
  115.     int allowActivate;
  116.     int layoutNeeded;
  117.     } XmLFolderCallbackStruct;
  118.  
  119. /* Folder defines */
  120.  
  121. #define XmCORNER_NONE 0
  122. #define XmCORNER_LINE 1
  123. #define XmCORNER_ARC  2
  124.  
  125. #define XmFOLDER_TOP    0
  126. #define XmFOLDER_LEFT   1
  127. #define XmFOLDER_BOTTOM 2
  128. #define XmFOLDER_RIGHT  3
  129.  
  130. #define XmRESIZE_STATIC  10
  131. #define XmRESIZE_DYNAMIC 11
  132.  
  133. /* Grid resources */
  134.  
  135. #define XmNaddCallback "addCallback"
  136. #define XmNallowColumnHide "allowColumnHide"
  137. #define XmCAllowColumnHide "AllowColumnHide"
  138. #define XmNallowColumnResize "allowColumnResize"
  139. #define XmCAllowColumnResize "AllowColumnResize"
  140. #define XmNallowDragSelected "allowDragSelected"
  141. #define XmCAllowDragSelected "AllowDragSelected"
  142. #define XmNallowDrop "allowDrop"
  143. #define XmCAllowDrop "AllowDrop"
  144. #define XmNallowRowHide "allowRowHide"
  145. #define XmCAllowRowHide "AllowRowHide"
  146. #define XmNallowRowResize "allowRowResize"
  147. #define XmCAllowRowResize "AllowRowResize"
  148. #define XmNbottomFixedCount "bottomFixedCount"
  149. #define XmCBottomFixedCount "BottomFixedCount"
  150. #define XmNbottomFixedMargin "bottomFixedMargin"
  151. #define XmCBottomFixedMargin "BottomFixedMargin"
  152. #define XmNcellDefaults "cellDefaults"
  153. #define XmCCellDefaults "CellDefaults"
  154. #define XmNcellDrawCallback "cellDrawCallback"
  155. #define XmNcellDropCallback "cellDropCallback"
  156. #define XmNcellFocusCallback "cellFocusCallback"
  157. #define XmNcellPasteCallback "cellPasteCallback"
  158. #define XmNdeleteCallback "deleteCallback"
  159. #define XmNdeselectCallback "deselectCallback"
  160. #define XmNeditCallback "editCallback"
  161. #define XmNeditTranslations "editTranslations"
  162. #define XmNfooterColumns "footerColumns"
  163. #define XmCFooterColumns "FooterColumns"
  164. #define XmNfooterRows "footerRows"
  165. #define XmCFooterRows "FooterRows"
  166. #define XmNglobalPixmapHeight "globalPixmapHeight"
  167. #define XmCGlobalPixmapHeight "GlobalPixmapHeight"
  168. #define XmNglobalPixmapWidth "globalPixmapWidth"
  169. #define XmCGlobalPixmapWidth "GlobalPixmapWidth"
  170. #define XmCGridSelectionPolicy "GridSelectionPolicy"
  171. #define XmRGridSelectionPolicy "GridSelectionPolicy"
  172. #define XmRGridSizePolicy "GridSizePolicy"
  173. #define XmNheadingColumns "headingColumns"
  174. #define XmCHeadingColumns "HeadingColumns"
  175. #define XmNheadingRows "headingRows"
  176. #define XmCHeadingRows "HeadingRows"
  177. #define XmNhiddenColumns "hiddenColumns"
  178. #define XmCHiddenColumns "HiddenColumns"
  179. #define XmNhiddenRows "hiddenRows"
  180. #define XmCHiddenRows "HiddenRows"
  181. #define XmNhighlightRowMode "highlightRowMode"
  182. #define XmCHighlightRowMode "HighlightRowMode"
  183. #define XmNhorizontalSizePolicy "horizontalSizePolicy"
  184. #define XmCHorizontalSizePolicy "HorizontalSizePolicy"
  185. #define XmNhsbDisplayPolicy "hsbDisplayPolicy"
  186. #define XmCHsbDisplayPolicy "HsbDisplayPolicy"
  187. #define XmNimmediateDraw "immediateDraw"
  188. #define XmCImmediateDraw "ImmediateDraw"
  189. #define XmNlayoutFrozen "layoutFrozen"
  190. #define XmCLayoutFrozen "LayoutFrozen"
  191. #define XmNleftFixedCount "leftFixedCount"
  192. #define XmCLeftFixedCount "LeftFixedCount"
  193. #define XmNleftFixedMargin "leftFixedMargin"
  194. #define XmCLeftFixedMargin "LeftFixedMargin"
  195. #define XmNrightFixedCount "rightFixedCount"
  196. #define XmCRightFixedCount "RightFixedCount"
  197. #define XmNrightFixedMargin "rightFixedMargin"
  198. #define XmCRightFixedMargin "RightFixedMargin"
  199. #define XmNscrollBarMargin "scrollBarMargin"
  200. #define XmCScrollBarMargin "ScrollBarMargin"
  201. #define XmNscrollCallback "scrollCallback"
  202. #define XmNscrollColumn "scrollColumn"
  203. #define XmCScrollColumn "ScrollColumn"
  204. #define XmNscrollRow "scrollRow"
  205. #define XmCScrollRow "ScrollRow"
  206. #define XmNsimpleHeadings "simpleHeadings"
  207. #define XmCSimpleHeadings "SimpleHeadings"
  208. #define XmNsimpleWidths "simpleWidths"
  209. #define XmCSimpleWidths "SimpleWidths"
  210. #define XmNselectCallback "selectCallback"
  211. #define XmNselectForeground "selectForeground"
  212. #define XmCSelectForeground "SelectForeground"
  213. #define XmNselectBackground "selectBackground"
  214. #define XmCSelectBackground "SelectBackground"
  215. #define XmNshadowRegions "shadowRegions"
  216. #define XmCShadowRegions "ShadowRegions"
  217. #define XmNtextWidget "textWidget"
  218. #define XmCTextWidget "TextWidget"
  219. #define XmNtoggleTopColor "toggleTopColor"
  220. #define XmCToggleTopColor "ToggleTopColor"
  221. #define XmNtoggleBottomColor "toggleBottomColor"
  222. #define XmCToggleBottomColor "ToggleBottomColor"
  223. #define XmNtoggleSize "toggleSize"
  224. #define XmCToggleSize "ToggleSize"
  225. #define XmNtopFixedCount "topFixedCount"
  226. #define XmCTopFixedCount "TopFixedCount"
  227. #define XmNtopFixedMargin "topFixedMargin"
  228. #define XmCTopFixedMargin "TopFixedMargin"
  229. #define XmNtraverseTranslations "traverseTranslations"
  230. #define XmNuseAverageFontWidth "useAverageFontWidth"
  231. #define XmCUseAverageFontWidth "UseAverageFontWidth"
  232. #define XmNverticalSizePolicy "verticalSizePolicy"
  233. #define XmCVerticalSizePolicy "VerticalSizePolicy"
  234. #define XmNvisibleColumns "visibleColumns"
  235. #define XmCVisibleColumns "VisibleColumns"
  236. #define XmNvisibleRows "visibleRows"
  237. #define XmCVisibleRows "VisibleRows"
  238. #define XmNvsbDisplayPolicy "vsbDisplayPolicy"
  239. #define XmCVsbDisplayPolicy "VsbDisplayPolicy"
  240. #define XmNiconSpacing "iconSpacing"
  241. #define XmCIconSpacing "IconSpacing"
  242.  
  243.  
  244. /* XFE Additions */
  245. #define XmNshowHideButton "showHideButton"
  246. #define XmCShowHideButton "ShowHideButton"
  247. #define XmNuseTextWidget "useTextWidget"
  248. #define XmCUseTextWidget "UseTextWidget"
  249. #define XmNhideButtonTranslations "hideButtonTranslations"
  250.  
  251.  
  252. /* Grid Row/Column/Cell resources */
  253.  
  254. #define XmNrow "row"
  255. #define XmCGridRow "row"
  256. #define XmNrowHeight "rowHeight"
  257. #define XmCRowHeight "RowHeight"
  258. #define XmNrowPtr "rowPtr"
  259. #define XmNrowRangeEnd "rowRangeEnd"
  260. #define XmCRowRangeEnd "RowRangeEnd"
  261. #define XmNrowRangeStart "rowRangeStart"
  262. #define XmCRowRangeStart "RowRangeStart"
  263. #define XmNrowSizePolicy "rowSizePolicy"
  264. #define XmCRowSizePolicy "RowSizePolicy"
  265. #define XmNrowStep "rowStep"
  266. #define XmCRowStep "RowStep"
  267. #define XmNrowType "rowType"
  268. #define XmCRowType "RowType"
  269. #define XmRRowType "RowType"
  270. #define XmNrowUserData "rowUserData"
  271.  
  272. #define XmNcolumn "column"
  273. #define XmCGridColumn "Column"
  274. #define XmNcolumnPtr "columnPtr"
  275. #define XmNcolumnRangeEnd "columnRangeEnd"
  276. #define XmCColumnRangeEnd "ColumnRangeEnd"
  277. #define XmNcolumnRangeStart "columnRangeStart"
  278. #define XmCColumnRangeStart "ColumnRangeStart"
  279. #define XmNcolumnResizable "columnResizable"
  280. #define XmCColumnResizable "ColumnResizable"
  281. #define XmNcolumnSizePolicy "columnSizePolicy"
  282. #define XmCColumnSizePolicy "ColumnSizePolicy"
  283. #define XmNcolumnStep "columnStep"
  284. #define XmCColumnStep "ColumnStep"
  285. #define XmNcolumnType "columnType"
  286. #define XmCColumnType "ColumnType"
  287. #define XmRColumnType "ColumnType"
  288. #define XmNcolumnWidth "columnWidth"
  289. #define XmCColumnWidth "ColumnWidth"
  290. #define XmNcolumnUserData "columnUserData"
  291.  
  292. #define XmNcellAlignment "cellAlignment"
  293. #define XmCCellAlignment "CellAlignment"
  294. #define XmRCellAlignment "CellAlignment"
  295. #define XmNcellBackground "cellBackground"
  296. #define XmCCellBackground "CellBackground"
  297. #define XmRCellBorderType "CellBorderType"
  298. #define XmNcellBottomBorderType "cellBottomBorderType"
  299. #define XmCCellBottomBorderType "CellBottomBorderType"
  300. #define XmNcellBottomBorderColor "cellBottomBorderColor"
  301. #define XmCCellBottomBorderColor "CellBottomBorderColor"
  302. #define XmNcellColumnSpan "cellColumnSpan"
  303. #define XmCCellColumnSpan "CellColumnSpan"
  304. #define XmNcellEditable "cellEditable"
  305. #define XmCCellEditable "CellEditable"
  306. #define XmNcellForeground "cellForeground"
  307. #define XmCCellForeground "CellForeground"
  308. #define XmNcellFontList "cellFontList"
  309. #define XmCCellFontList "CellFontList"
  310. #define XmNcellLeftBorderType "cellLeftBorderType"
  311. #define XmCCellLeftBorderType "CellLeftBorderType"
  312. #define XmNcellLeftBorderColor "cellLeftBorderColor"
  313. #define XmCCellLeftBorderColor "CellLeftBorderColor"
  314. #define XmNcellMarginBottom "cellMarginBottom"
  315. #define XmCCellMarginBottom "CellMarginBottom"
  316. #define XmNcellMarginLeft "cellMarginLeft"
  317. #define XmCCellMarginLeft "CellMarginLeft"
  318. #define XmNcellMarginRight "cellMarginRight"
  319. #define XmCCellMarginRight "CellMarginRight"
  320. #define XmNcellMarginTop "cellMarginTop"
  321. #define XmCCellMarginTop "CellMarginTop"
  322. #define XmNcellPixmap "cellPixmap"
  323. #define XmCCellPixmap "CellPixmap"
  324. #define XmNcellPixmapMask "cellPixmapMask"
  325. #define XmCCellPixmapMask "CellPixmapMask"
  326. #define XmNcellRightBorderType "cellRightBorderType"
  327. #define XmCCellRightBorderType "CellRightBorderType"
  328. #define XmNcellRightBorderColor "cellRightBorderColor"
  329. #define XmCCellRightBorderColor "CellRightBorderColor"
  330. #define XmNcellRowSpan "cellRowSpan"
  331. #define XmCCellRowSpan "CellRowSpan"
  332. #define XmNcellString "cellString"
  333. #define XmNcellToggleSet "cellToggleSet"
  334. #define XmCCellToggleSet "CellToggleSet"
  335. #define XmNcellTopBorderType "cellTopBorderType"
  336. #define XmCCellTopBorderType "CellTopBorderType"
  337. #define XmNcellTopBorderColor "cellTopBorderColor"
  338. #define XmCCellTopBorderColor "CellTopBorderColor"
  339. #define XmNcellType "cellType"
  340. #define XmCCellType "CellType"
  341. #define XmRCellType "CellType"
  342. #define XmNcellUserData "cellUserData"
  343.  
  344. /* Grid callbacks */
  345.  
  346. typedef struct _XmLGridDrawStruct
  347.     {
  348.     GC gc;
  349.     XRectangle *cellRect;
  350.     Dimension topMargin;
  351.     Dimension bottomMargin;
  352.     Dimension leftMargin;
  353.     Dimension rightMargin;
  354.     Pixel foreground;
  355.     Pixel background;
  356.     Pixel selectForeground;
  357.     Pixel selectBackground;
  358.     XmFontList fontList;
  359.     unsigned char alignment;
  360.     Boolean drawSelected;
  361.     int drawFocusType;
  362.     XmStringDirection stringDirection;
  363.     } XmLGridDrawStruct;
  364.  
  365. typedef struct _XmLGridCallbackStruct
  366.     {
  367.     int reason;
  368.     XEvent *event;
  369.     unsigned char rowType, columnType;
  370.     int row, column;
  371.     XRectangle *clipRect;
  372.     XmLGridDrawStruct *drawInfo;
  373.     void *object;
  374.     } XmLGridCallbackStruct;
  375.  
  376. #define XmCR_ADD_ROW         900
  377. #define XmCR_ADD_COLUMN      901
  378. #define XmCR_ADD_CELL        902
  379. #define XmCR_CELL_DRAW       903
  380. #define XmCR_CELL_DROP       904
  381. #define XmCR_CELL_FOCUS_IN   905
  382. #define XmCR_CELL_FOCUS_OUT  906
  383. #define XmCR_CELL_PASTE      907
  384. #define XmCR_CONF_TEXT       908
  385. #define XmCR_PREF_WIDTH      909
  386. #define XmCR_DELETE_ROW      910
  387. #define XmCR_DELETE_COLUMN   911
  388. #define XmCR_DELETE_CELL     912
  389. #define XmCR_EDIT_BEGIN      913
  390. #define XmCR_EDIT_INSERT     914
  391. #define XmCR_EDIT_CANCEL     915
  392. #define XmCR_EDIT_COMPLETE   916
  393. #define XmCR_FREE_VALUE      917
  394. #define XmCR_RESIZE_ROW      918
  395. #define XmCR_RESIZE_COLUMN   919
  396. #define XmCR_PREF_HEIGHT     920
  397. #define XmCR_SCROLL_ROW      921
  398. #define XmCR_SCROLL_COLUMN   922
  399. #define XmCR_SELECT_CELL     923
  400. #define XmCR_SELECT_COLUMN   924
  401. #define XmCR_SELECT_ROW      925
  402. #define XmCR_DESELECT_CELL   926
  403. #define XmCR_DESELECT_COLUMN 927
  404. #define XmCR_DESELECT_ROW    928
  405.  
  406.     /* xfe added callback reason */
  407. #define XmCR_RESIZE_GRID 929
  408.  
  409. /* Grid defines */
  410.  
  411. #define XmCONTENT      0
  412. #define XmHEADING      1
  413. #define XmFOOTER       2
  414. #define XmALL_TYPES    3
  415. #define XmINVALID_TYPE 4
  416.  
  417. #define XmICON_CELL   0
  418. #define XmPIXMAP_CELL 1
  419. #define XmSTRING_CELL 2
  420.  
  421. #define XmBORDER_NONE 0
  422. #define XmBORDER_LINE 1
  423. #define XmBORDER_DASH 2
  424.  
  425. #define XmFORMAT_DELIMITED 1
  426. #define XmFORMAT_XL        2
  427. #define XmFORMAT_PAD       3
  428. #define XmFORMAT_PASTE     4
  429. #define XmFORMAT_DROP      5
  430.  
  431. #define XmSELECT_NONE         1
  432. #define XmSELECT_SINGLE_ROW   2
  433. #define XmSELECT_BROWSE_ROW   3
  434. #define XmSELECT_MULTIPLE_ROW 4
  435. #define XmSELECT_CELL         5
  436.  
  437. #define XmDRAW_FOCUS_NONE  1
  438. #define XmDRAW_FOCUS_CELL  2
  439. #define XmDRAW_FOCUS_LEFT  3
  440. #define XmDRAW_FOCUS_MID   4
  441. #define XmDRAW_FOCUS_RIGHT 5
  442.  
  443. #define XmTRAVERSE_EXTEND_DOWN  20
  444. #define XmTRAVERSE_EXTEND_LEFT  21
  445. #define XmTRAVERSE_EXTEND_RIGHT 22
  446. #define XmTRAVERSE_EXTEND_UP    23
  447. #define XmTRAVERSE_PAGE_DOWN    24
  448. #define XmTRAVERSE_PAGE_LEFT    25
  449. #define XmTRAVERSE_PAGE_RIGHT   26
  450. #define XmTRAVERSE_PAGE_UP      27
  451. #define XmTRAVERSE_TO_BOTTOM    28
  452. #define XmTRAVERSE_TO_TOP       29
  453.  
  454. #define XmALIGNMENT_LEFT         0
  455. #ifndef XmALIGNMENT_CENTER
  456. #define XmALIGNMENT_CENTER       1
  457. #endif
  458. #define XmALIGNMENT_RIGHT        2
  459. #define XmALIGNMENT_TOP_LEFT     3
  460. #define XmALIGNMENT_TOP          4
  461. #define XmALIGNMENT_TOP_RIGHT    5
  462. #define XmALIGNMENT_BOTTOM_LEFT  6
  463. #define XmALIGNMENT_BOTTOM       7
  464. #define XmALIGNMENT_BOTTOM_RIGHT 8
  465.  
  466. /* Progress resources */
  467.  
  468. #define XmNcompleteValue "completeValue"
  469. #define XmCCompleteValue "CompleteValue"
  470. #define XmNnumBoxes "numBoxes"
  471. #define XmCNumBoxes "NumBoxes"
  472. #define XmNmeterStyle "meterStyle"
  473. #define XmCMeterStyle "MeterStyle"
  474. #define XmRMeterStyle "MeterStyle"
  475. #define XmNshowPercentage "showPercentage"
  476. #define XmCShowPercentage "ShowPercentage"
  477. #define XmNshowTime "showTime"
  478. #define XmCShowTime "ShowTime"
  479.  
  480. /* Progress defines */
  481.  
  482. #define XmMETER_BAR 0
  483. #define XmMETER_BOXES 1
  484.  
  485. /* Tree resources */
  486.  
  487. #define XmNcollapseCallback "collapseCallback"
  488. #define XmNconnectingLineColor "connectingLineColor"
  489. #define XmCConnectingLineColor "ConnectingLineColor"
  490. #define XmNexpandCallback "expandCallback"
  491. #define XmNlevelSpacing "levelSpacing"
  492. #define XmCLevelSpacing "LevelSpacing"
  493. #define XmNplusMinusColor "plusMinusColor"
  494. #define XmCPlusMinusColor "PlusMinusColor"
  495. #define XmNrowExpands "rowExpands"
  496. #define XmCRowExpands "RowExpands"
  497. #define XmNrowIsExpanded "rowIsExpanded"
  498. #define XmCRowIsExpanded "RowIsExpanded"
  499. #define XmNrowLevel "rowLevel"
  500. #define XmCRowLevel "RowLevel"
  501. #define XmNignorePixmaps "ignorePixmaps"
  502. #define XmCIgnorePixmaps "IgnorePixmaps"
  503.  
  504. /* Tree callbacks */
  505.  
  506. typedef struct
  507.     {
  508.     int level;
  509.     Boolean expands;
  510.     Boolean isExpanded;
  511.     Pixmap pixmap, pixmask;
  512.     XmString string;
  513.     } XmLTreeRowDefinition;
  514.  
  515. #define XmCR_COLLAPSE_ROW 950
  516. #define XmCR_EXPAND_ROW   951
  517.  
  518. /* Backwards compatibility */
  519.  
  520. #ifdef XmLBACKWARDS_COMPATIBILITY
  521.  
  522. #define XmNfooterColumnCount "footerColumns"
  523. #define XmNfooterRowCount "footerRows"
  524. #define XmNheadingColumnCount "headingColumns"
  525. #define XmNheadingRowCount "headingRows"
  526. #define XmNcellBottomBorderPixel "cellBottomBorderColor"
  527. #define XmCCellBottomBorderPixel "CellBottomBorderColor"
  528. #define XmNcellLeftBorderPixel "cellLeftBorderColor"
  529. #define XmCCellLeftBorderPixel "CellLeftBorderColor"
  530. #define XmNcellRightBorderPixel "cellRightBorderColor"
  531. #define XmCCellRightBorderPixel "CellRightBorderColor"
  532. #define XmNcellTopBorderPixel "cellTopBorderColor"
  533. #define XmCCellTopBorderPixel "CellTopBorderColor"
  534.  
  535. #define XmTEXT_CELL  250
  536. #define XmLABEL_CELL 251
  537.  
  538. typedef void XmLCGridRow;
  539. typedef void XmLCGridColumn;
  540. typedef void XmLCGridCell;
  541.  
  542. #endif
  543.  
  544. /* Utility defines */
  545.  
  546. #define XmDRAWNB_ARROW       0
  547. #define XmDRAWNB_ARROWLINE   1
  548. #define XmDRAWNB_DOUBLEARROW 2
  549. #define XmDRAWNB_SQUARE      3
  550. #define XmDRAWNB_DOUBLEBAR   4
  551. #define XmDRAWNB_STRING      5
  552.  
  553. #define XmDRAWNB_RIGHT 0
  554. #define XmDRAWNB_LEFT  1
  555. #define XmDRAWNB_UP    2
  556. #define XmDRAWNB_DOWN  3
  557.  
  558. #define XmSTRING_RIGHT 0
  559. #define XmSTRING_LEFT  1
  560. #define XmSTRING_UP    2
  561. #define XmSTRING_DOWN  3
  562.  
  563. enum { XmLRectInside, XmLRectOutside, XmLRectPartial };
  564.  
  565. typedef struct
  566.     {
  567.     int pos;
  568.     } XmLArrayItem;
  569.  
  570. typedef struct _XmLArrayRec *XmLArray;
  571.  
  572. typedef struct
  573.     {
  574.     char *name;
  575.     unsigned char value;
  576.     } XmLStringToUCharMap;
  577.  
  578. /* Utility functions */
  579.  
  580. typedef int (*XmLSortCompareFunc)(void *userData, void *l, void *r);
  581. typedef int (*XmLArrayCompareFunc)(void *, void **, void **);
  582.  
  583. XmLArray XmLArrayNew(char autonumber, char growFast);
  584. void XmLArrayFree(XmLArray array);
  585. void XmLArrayAdd(XmLArray array, int pos, int count);
  586. int XmLArrayDel(XmLArray array, int pos, int count);
  587. int XmLArraySet(XmLArray array, int pos, void *item);
  588. void *XmLArrayGet(XmLArray array, int pos);
  589. int XmLArrayGetCount(XmLArray array);
  590. int XmLArrayMove(XmLArray array, int newPos, int pos, int count);
  591. int XmLArrayReorder(XmLArray array, int *newPositions,
  592.     int pos, int count);
  593. int XmLArraySort(XmLArray array, XmLArrayCompareFunc compare,
  594.     void *userData, int pos, int count);
  595. Boolean XmLCvtStringToUChar(Display *dpy, char *resname,
  596.     XmLStringToUCharMap *map, XrmValuePtr fromVal, XrmValuePtr toVal);
  597. int XmLDateDaysInMonth(int m, int y);
  598. int XmLDateWeekDay(int m, int d, int y);
  599. void XmLDrawnButtonSetType(Widget w, int drawnType, int drawnDir);
  600. void XmLDrawToggle(Widget w, Boolean state, Dimension size,
  601.     unsigned char alignment, GC gc, Pixel backgroundColor,
  602.     Pixel topColor, Pixel bottomColor, Pixel checkColor,
  603.     XRectangle *rect, XRectangle *clipRect);
  604. XmFontList XmLFontListCopyDefault(Widget widget);
  605. void XmLFontListGetDimensions(XmFontList fontList, short *width,
  606.     short *height, Boolean useAverageWidth);
  607. void XmLInitialize(void);
  608. int XmLMessageBox(Widget w, char *string, Boolean okOnly);
  609. void XmLPixmapDraw(Widget w, Pixmap pixmap, Pixmap pixmask,
  610.     int pixmapWidth, int pixmapHeight, unsigned char alignment,
  611.     GC gc, XRectangle *rect, XRectangle *clipRect);
  612. int XmLRectIntersect(XRectangle *r1, XRectangle *r2);
  613. Widget XmLShellOfWidget(Widget w);
  614. void XmLSort(void *base, int numItems, unsigned int itemSize,
  615.     XmLSortCompareFunc, void *userData);
  616. void XmLStringDraw(Widget w, XmString string, XmStringDirection stringDir,
  617.     XmFontList fontList, unsigned char alignment, GC gc,
  618.     XRectangle *rect, XRectangle *clipRect);
  619. void XmLStringDrawDirection(Display *dpy, Window win, XmFontList fontlist,
  620.     XmString string, GC gc, int x, int y, Dimension width,
  621.     unsigned char alignment, unsigned char layout_direction,
  622.     unsigned char drawing_direction);
  623. void XmLWarning(Widget w, char *msg);
  624.  
  625. #ifdef XmL_CPP
  626. }
  627. #endif
  628. #endif
  629.