home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xcu16.zip / clients / xcell / Cell.h < prev    next >
C/C++ Source or Header  |  1991-10-03  |  4KB  |  138 lines

  1. /*
  2.  * Copyright 1991 Cornell University
  3.  *
  4.  * Permission to use, copy, modify, and distribute this software and its
  5.  * documentation for any purpose and without fee is hereby granted, provided
  6.  * that the above copyright notice appear in all copies and that both that
  7.  * copyright notice and this permission notice appear in supporting
  8.  * documentation, and that the name of Cornell U. not be used in advertising
  9.  * or publicity pertaining to distribution of the software without specific,
  10.  * written prior permission.  Cornell U. makes no representations about the
  11.  * suitability of this software for any purpose.  It is provided "as is"
  12.  * without express or implied warranty.
  13.  *
  14.  * CORNELL UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  15.  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  16.  * EVENT SHALL CORNELL UNIVERSITY BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  17.  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  18.  * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  19.  * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  20.  * PERFORMANCE OF THIS SOFTWARE.
  21.  *
  22.  * Author:  Gene W. Dykes, Program of Computer Graphics
  23.  *          580 Theory Center, Cornell University, Ithaca, NY 14853
  24.  *          (607) 255-6713   gwd@graphics.cornell.edu
  25.  */
  26.  
  27. #ifndef _Xcu_Cell_h
  28. #define _Xcu_Cell_h
  29.  
  30. #include <X11/Xcu/Simple.h>
  31.  
  32. #define XtNnColors        "nColors"
  33. #define XtRNColors        "NColors"
  34. #define XtCCellNColors        "CellNColors"
  35.  
  36. #define XtNcolors        "colors"
  37. #define XtRColors        "Colors"
  38. #define XtCCellColors        "CellColors"
  39.  
  40. #define XtNcolor0        "color0"
  41. #define XtNcolor1        "color1"
  42. #define XtNcolor2        "color2"
  43. #define XtNcolor3        "color3"
  44. #define XtNcolor4        "color4"
  45. #define XtNcolor5        "color5"
  46. #define XtNcolor6        "color6"
  47. #define XtNcolor7        "color7"
  48. #define XtCCellColor        "CellColor"
  49.  
  50. #define XtCCellDirectory    "CellDirectory"
  51. #define XtNdirectory        "directory"
  52.  
  53. #define XtCCellRulesFile    "CellRulesFile"
  54. #define XtNrulesFile        "rulesFile"
  55.  
  56. #define XtCCellPerturb        "CellPerturb"
  57. #define XtNperturb        "perturb"
  58.  
  59. #define XtCCellAlternating    "CellAlternating"
  60. #define XtNalternating        "alternating"
  61.  
  62. #define XtCCellPickFile        "CellPickFile"
  63. #define XtNpickFile        "pickFile"
  64.  
  65. #define XtCCellSeed        "CellSeed"
  66. #define XtNseed            "seed"
  67.  
  68. #define XtCCellType        "CellType"
  69. #define XtNcellType        "cellType"
  70.  
  71. #define XtCCellPerRow        "CellPerRow"
  72. #define XtNperRow        "perRow"
  73.  
  74. #define XtCCellPerCol        "CellPerCol"
  75. #define XtNperCol        "perCol"
  76.  
  77. #define XtCCellVerticalMerge    "CellVerticalMerge"
  78. #define XtNverticalMerge    "verticalMerge"
  79.  
  80. #define XtCCellHorizontalMerge    "CellHorizontalMerge"
  81. #define XtNhorizontalMerge    "horizontalMerge"
  82.  
  83. #define XtCCellRuleIndex    "CellRuleIndex"
  84. #define XtNruleIndex        "ruleIndex"
  85.  
  86. #define XtCCellIgnoreColors    "CellIgnoreColors"
  87. #define XtNignoreColors        "ignoreColors"
  88.  
  89. #define XtCCellOrderedRules    "CellOrderedRules"
  90. #define XtNorderedRules        "orderedRules"
  91.  
  92. #define XtRXcuCellSequence    "XcuCellSequence"
  93. #define XtCCellSequence        "CellSequence"
  94. #define XtNsequence        "sequence"
  95.  
  96. #define XtRXcuCellFrequency    "XcuCellFrequency"
  97. #define XtCCellFrequency    "CellFrequency"
  98. #define XtNfrequency        "frequency"
  99.  
  100. #define XtCBeep            "Beep"
  101. #define XtNbeep            "beep"
  102.  
  103. #define XtCMutate        "Mutate"
  104. #define XtNmutate        "mutate"
  105.  
  106. /* Class record constants */
  107.  
  108. extern WidgetClass xcuCellWidgetClass;
  109.  
  110. typedef struct _XcuCellClassRec *XcuCellWidgetClass;
  111. typedef struct _XcuCellRec      *XcuCellWidget;
  112.  
  113. /* Public Functions */
  114.  
  115. typedef enum 
  116.     {
  117.      XcuORDERED_PERMUTE
  118.     ,XcuRANDOM_PERMUTE
  119.     ,XcuRANDOM_COLOR
  120.     }
  121.     XcuCellSequenceType ;
  122.  
  123. typedef enum 
  124.     {
  125.      XcuFIXED_FREQUENCY
  126.     ,XcuPAGE_FREQUENCY
  127.     ,XcuRULE_FREQUENCY
  128.     ,XcuLINE_FREQUENCY
  129.     }
  130.     XcuCellFrequencyType ;
  131.  
  132. void XcuCellPickRule () ;
  133. void XcuCellStep () ;
  134. void XcuCellNextMap () ;
  135. void XcuCellFirstMap () ;
  136.  
  137. #endif _Xcu_Cell_h
  138.