home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / x / x11p-13.zip / do_tests.c < prev    next >
C/C++ Source or Header  |  1991-06-20  |  35KB  |  1,023 lines

  1. /*****************************************************************************
  2. Copyright 1988, 1989 by Digital Equipment Corporation, Maynard, Massachusetts.
  3.  
  4.                         All Rights Reserved
  5.  
  6. Permission to use, copy, modify, and distribute this software and its 
  7. documentation for any purpose and without fee is hereby granted, 
  8. provided that the above copyright notice appear in all copies and that
  9. both that copyright notice and this permission notice appear in 
  10. supporting documentation, and that the name of Digital not be
  11. used in advertising or publicity pertaining to distribution of the
  12. software without specific, written prior permission.  
  13.  
  14. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  15. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  16. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  17. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  18. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  19. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  20. SOFTWARE.
  21.  
  22. ******************************************************************************/
  23.  
  24. #include "x11perf.h"
  25.  
  26. extern void DoGetAtom();
  27.  
  28. extern void DoNoOp();
  29.  
  30. extern Bool InitGetProperty();
  31. extern void DoGetProperty();
  32.  
  33. extern Bool InitRectangles();
  34. extern void DoRectangles();
  35. extern void DoOutlineRectangles();
  36. extern void EndRectangles();
  37.  
  38. extern Bool InitGC();
  39. extern void DoChangeGC();
  40. extern void EndGC();
  41.  
  42. extern Bool InitSegments();
  43. extern Bool InitHorizSegments();
  44. extern Bool InitVertSegments();
  45. extern Bool InitWideHorizSegments();
  46. extern Bool InitWideVertSegments();
  47. extern Bool InitDashedSegments();
  48. extern Bool InitDoubleDashedSegments();
  49. extern void DoSegments();
  50. extern void EndSegments();
  51.  
  52. extern Bool InitLines();
  53. extern Bool InitWideLines();
  54. extern Bool InitDashedLines();
  55. extern Bool InitWideDashedLines();
  56. extern Bool InitDoubleDashedLines();
  57. extern Bool InitWideDoubleDashedLines();
  58. extern void DoLines();
  59. extern void EndLines();
  60.  
  61.  
  62. extern Bool InitCircles();
  63. extern Bool InitPartCircles();
  64. extern Bool InitWideCircles();
  65. extern Bool InitPartWideCircles();
  66. extern Bool InitDashedCircles();
  67. extern Bool InitWideDashedCircles();
  68. extern Bool InitDoubleDashedCircles();
  69. extern Bool InitWideDoubleDashedCircles();
  70. extern Bool InitChordPartCircles();
  71. extern Bool InitSlicePartCircles();
  72.  
  73. extern Bool InitEllipses();
  74. extern Bool InitPartEllipses();
  75. extern Bool InitWideEllipses();
  76. extern Bool InitPartWideEllipses();
  77. extern Bool InitDashedEllipses();
  78. extern Bool InitWideDashedEllipses();
  79. extern Bool InitDoubleDashedEllipses();
  80. extern Bool InitWideDoubleDashedEllipses();
  81. extern Bool InitChordPartEllipses();
  82. extern Bool InitSlicePartEllipses();
  83. extern void DoArcs();
  84. extern void DoFilledArcs();
  85. extern void EndArcs();
  86.  
  87. extern Bool InitDots();
  88. extern void DoDots();
  89. extern void EndDots();
  90.  
  91. extern Bool InitCreate();
  92. extern void CreateChildren();
  93. extern void DestroyChildren();
  94. extern void EndCreate();
  95.  
  96. extern Bool InitMap();
  97. extern void MapParents();
  98. extern void UnmapParents();
  99.  
  100. extern Bool InitDestroy();
  101. extern void DestroyParents();
  102. extern void RenewParents();
  103.  
  104. extern Bool InitMoveWindows();
  105. extern void DoMoveWindows();
  106. extern void EndMoveWindows();
  107.  
  108. extern void DoResizeWindows();
  109.  
  110. extern Bool InitCircWindows();
  111. extern void DoCircWindows();
  112. extern void EndCircWindows();
  113.  
  114. extern Bool InitMoveTree();
  115. extern void DoMoveTree();
  116. extern void EndMoveTree();
  117.  
  118. extern Bool InitText();
  119. extern Bool InitText16();
  120. extern void DoText();
  121. extern void DoText16();
  122. extern void DoImageText();
  123. extern void DoImageText16();
  124. extern void DoPolyText();
  125. extern void DoPolyText16();
  126. extern void ClearTextWin();
  127. extern void EndText();
  128. extern void EndText16();
  129.  
  130. extern Bool InitCopyPlane();
  131. extern void DoCopyPlane();
  132. extern void EndCopyPlane();
  133.  
  134. extern Bool InitPopups();
  135. extern void DoPopUps();
  136. extern void EndPopups();
  137.  
  138. extern Bool InitScroll();
  139. extern void DoScroll();
  140. extern void MidScroll();
  141. extern void EndScroll();
  142.  
  143. extern Bool InitCopyWin();
  144. extern Bool InitCopyPix();
  145. extern void DoCopyWinWin();
  146. extern void DoCopyPixWin();
  147. extern void DoCopyWinPix();
  148. extern void DoCopyPixPix();
  149. extern void MidCopyPix();
  150. extern void EndCopyWin();
  151. extern void EndCopyPix();
  152.  
  153. extern Bool InitGetImage();
  154. extern void DoGetImage();
  155. extern void EndGetImage();
  156.  
  157. extern Bool InitPutImage();
  158. extern void DoPutImage();
  159.  
  160. #ifdef MITSHM
  161. extern Bool InitShmPutImage();
  162. extern void DoShmPutImage();
  163. extern void EndShmPutImage();
  164. #endif
  165.  
  166. extern Bool InitTriangles();
  167. extern void DoTriangles();
  168. extern void EndTriangles();
  169.  
  170. extern Bool InitTrapezoids();
  171. extern void DoTrapezoids();
  172. extern void EndTrapezoids();
  173.  
  174. extern Bool InitComplexPoly();
  175. extern void DoComplexPoly();
  176. extern void EndComplexPoly();
  177.  
  178. /*
  179.  * some test must be done a certain multiple of times. That multiple is
  180.  * in the second half of the products below. You can edit the multiplier,
  181.  * just not the multiplicand.
  182.  */
  183.  
  184. Test test[] = {
  185.   {"-dot",      "Dot",
  186.         InitDots, DoDots, NullProc, EndDots,
  187.         VALL, ROP, 0,
  188.         {POLY}},
  189.   {"-rect1",    "1x1 rectangle",
  190.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  191.         VALL, ROP, 0,
  192.         {POLY, 1, NULL, NULL, FillSolid}},
  193.   {"-rect10",   "10x10 rectangle",
  194.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  195.         VALL, ROP, 0,
  196.         {POLY, 10, NULL, NULL, FillSolid}},
  197.   {"-rect100",  "100x100 rectangle",
  198.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  199.         VALL, ROP, 0,
  200.         {36, 100, NULL, NULL, FillSolid}},
  201.   {"-rect500",  "500x500 rectangle",
  202.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  203.         VALL, ROP, 0,
  204.         {1, 500, NULL, NULL, FillSolid}},
  205.   {"-srect1",  "1x1 stippled rectangle",
  206.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  207.         VALL, ROP, 0,
  208.         {POLY, 1, NULL, NULL, FillStippled}},
  209.   {"-srect10", "10x10 stippled rectangle",
  210.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  211.         VALL, ROP, 0,
  212.         {POLY, 10, NULL, NULL, FillStippled}},
  213.   {"-srect100", "100x100 stippled rectangle",
  214.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  215.         VALL, ROP, 0,
  216.         {36, 100, NULL, NULL, FillStippled}},
  217.   {"-srect500", "500x500 stippled rectangle",
  218.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  219.         VALL, ROP, 0,
  220.         {1, 500, NULL, NULL, FillStippled}},
  221.   {"-osrect1",  "1x1 opaque stippled rectangle",
  222.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  223.         VALL, ROP, 0,
  224.         {POLY, 1, NULL, NULL, FillOpaqueStippled}},
  225.   {"-osrect10", "10x10 opaque stippled rectangle",
  226.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  227.         VALL, ROP, 0,
  228.         {POLY, 10, NULL, NULL, FillOpaqueStippled}},
  229.   {"-osrect100", "100x100 opaque stippled rectangle",
  230.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  231.         VALL, ROP, 0,
  232.         {36, 100, NULL, NULL, FillOpaqueStippled}},
  233.   {"-osrect500", "500x500 opaque stippled rectangle",
  234.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  235.         VALL, ROP, 0,
  236.         {1, 500, NULL, NULL, FillOpaqueStippled}},
  237.   {"-tilerect1", "1x1 4x4 tiled rectangle",
  238.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  239.         VALL, ROP, 0,
  240.         {POLY, 1, NULL, NULL, FillTiled}},
  241.   {"-tilerect10", "10x10 4x4 tiled rectangle",
  242.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  243.         VALL, ROP, 0,
  244.         {POLY, 10, NULL, NULL, FillTiled}},
  245.   {"-tilerect100", "100x100 4x4 tiled rectangle",
  246.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  247.         VALL, ROP, 0,
  248.         {36, 100, NULL, NULL, FillTiled}},
  249.   {"-tilerect500", "500x500 4x4 tiled rectangle",
  250.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  251.         VALL, ROP, 0,
  252.         {1, 500, NULL, NULL, FillTiled}},
  253.   {"-bigsrect1",  "1x1 161x145 stippled rectangle",
  254.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  255.         VERSION1_3, ROP, 0,
  256.         {POLY, 1, "mensetmanus", NULL, FillStippled}},
  257.   {"-bigsrect10", "10x10 161x145 stippled rectangle",
  258.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  259.         VERSION1_3, ROP, 0,
  260.         {POLY, 10, "mensetmanus", NULL, FillStippled}},
  261.   {"-bigsrect100", "100x100 161x145 stippled rectangle",
  262.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  263.         VERSION1_3, ROP, 0,
  264.         {36, 100, "mensetmanus", NULL, FillStippled}},
  265.   {"-bigsrect500", "500x500 161x145 stippled rectangle",
  266.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  267.         VERSION1_3, ROP, 0,
  268.         {1, 500, "mensetmanus", NULL, FillStippled}},
  269.   {"-bigosrect",  "1x1 161x145 opaque stippled rectangle",
  270.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  271.         VERSION1_3, ROP, 0,
  272.         {POLY, 1, "mensetmanus", NULL, FillOpaqueStippled}},
  273.   {"-bigosrect10", "10x10 161x145 opaque stippled rectangle",
  274.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  275.         VERSION1_3, ROP, 0,
  276.         {POLY, 10, "mensetmanus", NULL, FillOpaqueStippled}},
  277.   {"-bigosrect100", "100x100 161x145 opaque stippled rectangle",
  278.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  279.         VERSION1_3, ROP, 0,
  280.         {36, 100, "mensetmanus", NULL, FillOpaqueStippled}},
  281.   {"-bigosrect500", "500x500 161x145 opaque stippled rectangle",
  282.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  283.         VERSION1_3, ROP, 0,
  284.         {1, 500, "mensetmanus", NULL, FillOpaqueStippled}},
  285.   {"-bigtilerect1", "1x1 161x145 tiled rectangle",
  286.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  287.         VALL, ROP, 0,
  288.         {POLY, 1, "mensetmanus", NULL, FillTiled}},
  289.   {"-bigtilerect10", "10x10 161x145 tiled rectangle",
  290.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  291.         VALL, ROP, 0,
  292.         {POLY, 10, "mensetmanus", NULL, FillTiled}},
  293.   {"-bigtilerect100", "100x100 161x145 tiled rectangle",
  294.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  295.         VALL, ROP, 0,
  296.         {36, 100, "mensetmanus", NULL, FillTiled}},
  297.   {"-bigtilerect500", "500x500 161x145 tiled rectangle",
  298.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  299.         VALL, ROP, 0,
  300.         {1, 500, "mensetmanus", NULL, FillTiled}},
  301.   {"-eschertilerect1", "1x1 216x208 tiled rectangle",
  302.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  303.         VERSION1_3, ROP, 0,
  304.         {POLY, 1, "escherknot", NULL, FillTiled}},
  305.   {"-eschertilerect10", "10x10 216x208 tiled rectangle",
  306.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  307.         VERSION1_3, ROP, 0,
  308.         {POLY, 10, "escherknot", NULL, FillTiled}},
  309.   {"-eschertilerect100", "100x100 216x208 tiled rectangle",
  310.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  311.         VERSION1_3, ROP, 0,
  312.         {36, 100, "escherknot", NULL, FillTiled}},
  313.   {"-eschertilerect500", "500x500 216x208 tiled rectangle",
  314.         InitRectangles, DoRectangles, NullProc, EndRectangles,
  315.         VERSION1_3, ROP, 0,
  316.         {1, 500, "escherknot", NULL, FillTiled}},
  317.   {"-seg1",     "1-pixel line segment",
  318.         InitSegments, DoSegments, NullProc, EndSegments,
  319.         VALL, ROP, 0,
  320.         {POLY, 1}},
  321.   {"-seg10",    "10-pixel line segment",
  322.         InitSegments, DoSegments, NullProc, EndSegments,
  323.         VALL, ROP, 0,
  324.         {POLY, 10}},
  325.   {"-seg100",   "100-pixel line segment",
  326.         InitSegments, DoSegments, NullProc, EndSegments,
  327.         VALL, ROP, 0,
  328.         {POLY, 100}},
  329.   {"-seg500",   "500-pixel line segment",
  330.         InitSegments, DoSegments, NullProc, EndSegments,
  331.         VALL, ROP, 0,
  332.         {POLY, 500}},
  333.   {"-seg100c1", "100-pixel line segment (1 kid)",
  334.         InitSegments, DoSegments, NullProc, EndSegments,
  335.         VALL, ROP, 1,
  336.         {POLY, 100}},
  337.   {"-seg100c2", "100-pixel line segment (2 kids)",
  338.         InitSegments, DoSegments, NullProc, EndSegments,
  339.         VALL, ROP, 2,
  340.         {POLY, 100}},
  341.   {"-seg100c3", "100-pixel line segment (3 kids)",
  342.         InitSegments, DoSegments, NullProc, EndSegments,
  343.         VALL, ROP, 3,
  344.         {POLY, 100}},
  345.   {"-dseg10",   "10-pixel dashed segment",
  346.         InitDashedSegments, DoSegments, NullProc, EndSegments,
  347.         VALL, ROP, 0,
  348.         {POLY, 10}},
  349.   {"-dseg100", "100-pixel dashed segment",
  350.         InitDashedSegments, DoSegments, NullProc, EndSegments,
  351.         VALL, ROP, 0,
  352.         {POLY, 100}},
  353.   {"-ddseg100", "100-pixel double-dashed segment",
  354.         InitDoubleDashedSegments, DoSegments, NullProc, EndSegments,
  355.         VALL, ROP, 0,
  356.         {POLY, 100}},
  357.   {"-hseg10",   "10-pixel horizontal line segment",
  358.         InitHorizSegments, DoSegments, NullProc, EndSegments,
  359.         VERSION1_3, ROP, 0,
  360.         {POLY, 10}},
  361.   {"-hseg100",  "100-pixel horizontal line segment",
  362.         InitHorizSegments, DoSegments, NullProc, EndSegments,
  363.         VERSION1_3, ROP, 0,
  364.         {POLY, 100}},
  365.   {"-hseg500",  "500-pixel horizontal line segment",
  366.         InitHorizSegments, DoSegments, NullProc, EndSegments,
  367.         VERSION1_3, ROP, 0,
  368.         {POLY, 500}},
  369.   {"-vseg10",   "10-pixel vertical line segment",
  370.         InitVertSegments, DoSegments, NullProc, EndSegments,
  371.         VERSION1_3, ROP, 0,
  372.         {POLY, 10}},
  373.   {"-vseg100",  "100-pixel vertical line segment",
  374.         InitVertSegments, DoSegments, NullProc, EndSegments,
  375.         VERSION1_3, ROP, 0,
  376.         {POLY, 100}},
  377.   {"-vseg500",  "500-pixel vertical line segment",
  378.         InitVertSegments, DoSegments, NullProc, EndSegments,
  379.         VERSION1_3, ROP, 0,
  380.         {POLY, 500}},
  381.   {"-whseg10",  "10x1 wide horizontal line segment",
  382.         InitWideHorizSegments, DoSegments, NullProc, EndSegments,
  383.         VERSION1_3, ROP, 0,
  384.         {200, 10}},
  385.   {"-whseg100", "100x10 wide horizontal line segment",
  386.         InitWideHorizSegments, DoSegments, NullProc, EndSegments,
  387.         VERSION1_3, ROP, 0,
  388.         {100, 100}},
  389.   {"-whseg500", "500x50 wide horizontal line segment",
  390.         InitWideHorizSegments, DoSegments, NullProc, EndSegments,
  391.         VERSION1_3, ROP, 0,
  392.         {50, 500}},
  393.   {"-wvseg10",  "10x1 wide vertical line segment",
  394.         InitWideVertSegments, DoSegments, NullProc, EndSegments,
  395.         VERSION1_3, ROP, 0,
  396.         {200, 10}},
  397.   {"-wvseg100", "100x10 wide vertical line segment",
  398.         InitWideVertSegments, DoSegments, NullProc, EndSegments,
  399.         VERSION1_3, ROP, 0,
  400.         {100, 100}},
  401.   {"-wvseg500", "500x50 wide vertical line segment",
  402.         InitWideVertSegments, DoSegments, NullProc, EndSegments,
  403.         VERSION1_3, ROP, 0,
  404.         {50, 500}},
  405.   {"-line1",   "1-pixel line",
  406.         InitLines, DoLines, NullProc, EndLines,
  407.         VALL, ROP, 0,
  408.         {POLY, 1}},
  409.   {"-line10",   "10-pixel line",
  410.         InitLines, DoLines, NullProc, EndLines,
  411.         VALL, ROP, 0,
  412.         {POLY, 10}},
  413.   {"-line100",  "100-pixel line",
  414.         InitLines, DoLines, NullProc, EndLines,
  415.         VALL, ROP, 0,
  416.         {POLY, 100}},
  417.   {"-line500", "500-pixel line",
  418.         InitLines, DoLines, NullProc, EndLines,
  419.         VALL, ROP, 0,
  420.         {POLY, 500}},
  421.   {"-dline10",  "10-pixel dashed line",
  422.         InitDashedLines, DoLines, NullProc, EndLines,
  423.         VALL, ROP, 0,
  424.         {POLY, 10}},
  425.   {"-dline100", "100-pixel dashed line",
  426.         InitDashedLines, DoLines, NullProc, EndLines,
  427.         VALL, ROP, 0,
  428.         {POLY, 100}},
  429.   {"-ddline100", "100-pixel double-dashed line",
  430.         InitDoubleDashedLines, DoLines, NullProc, EndLines,
  431.         VALL, ROP, 0,
  432.         {POLY, 100}},
  433.   {"-wline10",  "10x1 wide line",
  434.         InitWideLines, DoLines, NullProc, EndLines,
  435.         VALL, ROP, 0,
  436.         {100, 10}},
  437.   {"-wline100", "100x10 wide line",
  438.         InitWideLines, DoLines, NullProc, EndLines,
  439.         VALL, ROP, 0,
  440.         {100, 100}},
  441.   {"-wline500", "500x50 wide line",
  442.         InitWideLines, DoLines, NullProc, EndLines,
  443.         VALL, ROP, 0,
  444.         {50, 500}},
  445.   {"-wdline100", "100x10 wide dashed line",
  446.         InitWideDashedLines, DoLines, NullProc, EndLines,
  447.         VALL, ROP, 0,
  448.         {100, 100}},
  449.   {"-wddline100",  "100x10 wide double-dashed line",
  450.         InitWideDoubleDashedLines, DoLines, NullProc, EndLines,
  451.         VALL, ROP, 0,
  452.         {100, 100}},
  453.   {"-orect10",  "10x10 rectangle outline",
  454.         InitRectangles, DoOutlineRectangles, NullProc, EndRectangles,
  455.         VERSION1_3, ROP, 0,
  456.         {POLY, 10, NULL, "0", FillSolid}},
  457.   {"-orect100", "100x100 rectangle outline",
  458.         InitRectangles, DoOutlineRectangles, NullProc, EndRectangles,
  459.         VERSION1_3, ROP, 0,
  460.         {36, 100, NULL, "0", FillSolid}},
  461.   {"-orect500",    "500x500 rectangle outline",
  462.         InitRectangles, DoOutlineRectangles, NullProc, EndRectangles,
  463.         VERSION1_3, ROP, 0,
  464.         {1, 500, NULL, "0", FillSolid}},
  465.   {"-worect10",    "10x10 wide rectangle outline",
  466.         InitRectangles, DoOutlineRectangles, NullProc, EndRectangles,
  467.         VERSION1_3, ROP, 0,
  468.         {POLY, 10, NULL, "1", FillSolid}},
  469.   {"-worect100", "100x100 wide rectangle outline",
  470.         InitRectangles, DoOutlineRectangles, NullProc, EndRectangles,
  471.         VERSION1_3, ROP, 0,
  472.         {36, 100, NULL, "10", FillSolid}},
  473.   {"-worect500", "500x500 wide rectangle outline",
  474.         InitRectangles, DoOutlineRectangles, NullProc, EndRectangles,
  475.         VERSION1_3, ROP, 0,
  476.         {1, 500, NULL, "50", FillSolid}},
  477.   {"-circle1",  "1-pixel circle",
  478.         InitCircles, DoArcs, NullProc, EndArcs,
  479.         VALL, ROP, 0,
  480.         {POLY, 1}},
  481.   {"-circle10", "10-pixel circle",
  482.         InitCircles, DoArcs, NullProc, EndArcs,
  483.         VALL, ROP, 0,
  484.         {POLY, 10}},
  485.   {"-circle100", "100-pixel circle",
  486.         InitCircles, DoArcs, NullProc, EndArcs,
  487.         VALL, ROP, 0,
  488.         {200, 100}},
  489.   {"-circle500", "500-pixel circle",
  490.         InitCircles, DoArcs, NullProc, EndArcs,
  491.         VALL, ROP, 0,
  492.         {50, 500}},
  493.   {"-dcircle100", "100-pixel dashed circle",
  494.         InitDashedCircles, DoArcs, NullProc, EndArcs,
  495.         VALL, ROP, 0,
  496.         {100, 100}},
  497.   {"-ddcircle100", "100-pixel double-dashed circle",
  498.         InitDoubleDashedCircles, DoArcs, NullProc, EndArcs,
  499.         VALL, ROP, 0,
  500.         {100, 100}},
  501.   {"-wcircle10", "10-pixel wide circle",
  502.         InitWideCircles, DoArcs, NullProc, EndArcs,
  503.         VALL, ROP, 0,
  504.         {POLY, 10}},
  505.   {"-wcircle100", "100-pixel wide circle",
  506.         InitWideCircles, DoArcs, NullProc, EndArcs,
  507.         VALL, ROP, 0,
  508.         {100, 100}},
  509.   {"-wcircle500", "500-pixel wide circle",
  510.         InitWideCircles, DoArcs, NullProc, EndArcs,
  511.         VALL, ROP, 0,
  512.         {25, 500}},
  513.   {"-wdcircle100", "100-pixel wide dashed circle",
  514.         InitWideDashedCircles, DoArcs, NullProc, EndArcs,
  515.         VALL, ROP, 0,
  516.         {100, 100}},
  517.   {"-wddcircle100", "100-pixel wide double-dashed circle",
  518.         InitWideDoubleDashedCircles, DoArcs, NullProc, EndArcs,
  519.         VALL, ROP, 0,
  520.         {100, 100}},
  521.   {"-pcircle10", "10-pixel partial circle",
  522.         InitPartCircles, DoArcs, NullProc, EndArcs,
  523.         VALL, ROP, 0,
  524.         {POLY, 10}},
  525.   {"-pcircle100", "100-pixel partial circle",
  526.         InitPartCircles, DoArcs, NullProc, EndArcs,
  527.         VALL, ROP, 0,
  528.         {198, 100}},
  529.   {"-wpcircle10", "10-pixel wide partial circle",
  530.         InitPartWideCircles, DoArcs, NullProc, EndArcs,
  531.         VERSION1_3, ROP, 0,
  532.         {POLY, 10}},
  533.   {"-wpcircle100", "100-pixel wide partial circle",
  534.         InitPartWideCircles, DoArcs, NullProc, EndArcs,
  535.         VERSION1_3, ROP, 0,
  536.         {198, 100}},
  537.   {"-fcircle1",  "1-pixel solid circle",
  538.         InitCircles, DoFilledArcs, NullProc, EndArcs,
  539.         VALL, ROP, 0,
  540.         {POLY, 1}},
  541.   {"-fcircle10", "10-pixel solid circle",
  542.         InitCircles, DoFilledArcs, NullProc, EndArcs,
  543.         VALL, ROP, 0,
  544.         {POLY, 10}},
  545.   {"-fcircle100", "100-pixel solid circle",
  546.         InitCircles, DoFilledArcs, NullProc, EndArcs,
  547.         VALL, ROP, 0,
  548.         {100, 100}},
  549.   {"-fcircle500", "500-pixel solid circle",
  550.         InitCircles, DoFilledArcs, NullProc, EndArcs,
  551.         VALL, ROP, 0,
  552.         {20, 500}},
  553.   {"-fcpcircle10", "10-pixel fill chord partial circle",
  554.         InitChordPartCircles, DoFilledArcs, NullProc, EndArcs,
  555.         VALL, ROP, 0,
  556.         {POLY, 10}},
  557.   {"-fcpcircle100", "100-pixel fill chord partial circle",
  558.         InitChordPartCircles, DoFilledArcs, NullProc, EndArcs,
  559.         VALL, ROP, 0,
  560.         {108, 100}},
  561.   {"-fspcircle10", "10-pixel fill slice partial circle",
  562.         InitSlicePartCircles, DoFilledArcs, NullProc, EndArcs,
  563.         VALL, ROP, 0,
  564.         {POLY, 10}},
  565.   {"-fspcircle100", "100-pixel fill slice partial circle",
  566.         InitSlicePartCircles, DoFilledArcs, NullProc, EndArcs,
  567.         VALL, ROP, 0,
  568.         {108, 100}},
  569.   {"-ellipse10", "10-pixel ellipse",
  570.         InitEllipses, DoArcs, NullProc, EndArcs,
  571.         VALL, ROP, 0,
  572.         {500, 10}},
  573.   {"-ellipse100", "100-pixel ellipse",
  574.         InitEllipses, DoArcs, NullProc, EndArcs,
  575.         VALL, ROP, 0,
  576.         {300, 100}},
  577.   {"-ellipse500", "500-pixel ellipse",
  578.         InitEllipses, DoArcs, NullProc, EndArcs,
  579.         VALL, ROP, 0,
  580.         {100, 500}},
  581.   {"-dellipse100", "100-pixel dashed ellipse",
  582.         InitDashedEllipses, DoArcs, NullProc, EndArcs,
  583.         VALL, ROP, 0,
  584.         {25, 100}},
  585.   {"-ddellipse100", "100-pixel double-dashed ellipse",
  586.         InitDoubleDashedEllipses, DoArcs, NullProc, EndArcs,
  587.         VALL, ROP, 0,
  588.         {25, 100}},
  589.   {"-wellipse10", "10-pixel wide ellipse",
  590.         InitWideEllipses, DoArcs, NullProc, EndArcs,
  591.         VALL, ROP, 0,
  592.         {200, 10}},
  593.   {"-wellipse100", "100-pixel wide ellipse",
  594.         InitWideEllipses, DoArcs, NullProc, EndArcs,
  595.         VALL, ROP, 0,
  596.         {25, 100}},
  597.   {"-wellipse500", "500-pixel wide ellipse",
  598.         InitWideEllipses, DoArcs, NullProc, EndArcs,
  599.         VALL, ROP, 0,
  600.         {20, 500}},
  601.   {"-wdellipse100", "100-pixel wide dashed ellipse",
  602.         InitWideDashedEllipses, DoArcs, NullProc, EndArcs,
  603.         VALL, ROP, 0,
  604.         {25, 100}},
  605.   {"-wddellipse100", "100-pixel wide double-dashed ellipse",
  606.         InitWideDoubleDashedEllipses, DoArcs, NullProc, EndArcs,
  607.         VALL, ROP, 0,
  608.         {25, 100}},
  609.   {"-pellipse10", "10-pixel partial ellipse",
  610.         InitPartEllipses, DoArcs, NullProc, EndArcs,
  611.         VALL, ROP, 0,
  612.         {540, 10}},
  613.   {"-pellipse100", "100-pixel partial ellipse",
  614.         InitPartEllipses, DoArcs, NullProc, EndArcs,
  615.         VALL, ROP, 0,
  616.         {360, 100}},
  617.   {"-wpellipse10", "10-pixel wide partial ellipse",
  618.         InitPartWideEllipses, DoArcs, NullProc, EndArcs,
  619.         VERSION1_3, ROP, 0,
  620.         {540, 10}},
  621.   {"-wpellipse100", "100-pixel wide partial ellipse",
  622.         InitPartWideEllipses, DoArcs, NullProc, EndArcs,
  623.         VERSION1_3, ROP, 0,
  624.         {360, 100}},
  625.   {"-fellipse10", "10-pixel filled ellipse",
  626.         InitEllipses, DoFilledArcs, NullProc, EndArcs,
  627.         VALL, ROP, 0,
  628.         {200, 10}},
  629.   {"-fellipse100", "100-pixel filled ellipse",
  630.         InitEllipses, DoFilledArcs, NullProc, EndArcs,
  631.         VALL, ROP, 0,
  632.         {25, 100}},
  633.   {"-fellipse500", "500-pixel filled ellipse",
  634.         InitEllipses, DoFilledArcs, NullProc, EndArcs,
  635.         VALL, ROP, 0,
  636.         {10, 500}},
  637.   {"-fcpellipse10", "10-pixel fill chord partial ellipse",
  638.         InitChordPartEllipses, DoFilledArcs, NullProc, EndArcs,
  639.         VALL, ROP, 0,
  640.         {270, 10}},
  641.   {"-fcpellipse100", "100-pixel fill chord partial ellipse",
  642.         InitChordPartEllipses, DoFilledArcs, NullProc, EndArcs,
  643.         VALL, ROP, 0,
  644.         {36, 100}},
  645.   {"-fspellipse10", "10-pixel fill slice partial ellipse",
  646.         InitSlicePartEllipses, DoFilledArcs, NullProc, EndArcs,
  647.         VALL, ROP, 0,
  648.         {270, 10}},
  649.   {"-fspellipse100", "100-pixel fill slice partial ellipse",
  650.         InitSlicePartEllipses, DoFilledArcs, NullProc, EndArcs,
  651.         VALL, ROP, 0,
  652.         {36, 100}},
  653.   {"-triangle1", "Fill 1-pixel/side triangle",
  654.         InitTriangles, DoTriangles, NullProc, EndTriangles,
  655.         VERSION1_2, ROP, 0,
  656.         {POLY, 1}},
  657.   {"-triangle10", "Fill 10-pixel/side triangle",
  658.         InitTriangles, DoTriangles, NullProc, EndTriangles,
  659.         VERSION1_2, ROP, 0,
  660.         {POLY, 10}},
  661.   {"-triangle100", "Fill 100-pixel/side triangle",
  662.         InitTriangles, DoTriangles, NullProc, EndTriangles,
  663.         VERSION1_2, ROP, 0,
  664.         {100, 100}},
  665.   {"-triangle1", "Fill 1x1 equivalent triangle",
  666.         InitTriangles, DoTriangles, NullProc, EndTriangles,
  667.         VERSION1_3, ROP, 0,
  668.         {POLY, 1}},
  669.   {"-triangle10", "Fill 10x10 equivalent triangle",
  670.         InitTriangles, DoTriangles, NullProc, EndTriangles,
  671.         VERSION1_3, ROP, 0,
  672.         {POLY, 10}},
  673.   {"-triangle100", "Fill 100x100 equivalent triangle",
  674.         InitTriangles, DoTriangles, NullProc, EndTriangles,
  675.         VERSION1_3, ROP, 0,
  676.         {100, 100}},
  677.   {"-trap10", "Fill 10x10 trapezoid",
  678.         InitTrapezoids, DoTrapezoids, NullProc, EndTrapezoids,
  679.         VALL, ROP, 0,
  680.         {POLY, 10}},
  681.   {"-trap100", "Fill 100x100 trapezoid",
  682.         InitTrapezoids, DoTrapezoids, NullProc, EndTrapezoids,
  683.         VALL, ROP, 0,
  684.         {POLY/10, 100}},
  685.   {"-strap10", "Fill 10x10 stippled trapezoid",
  686.         InitTrapezoids, DoTrapezoids, NullProc, EndTrapezoids,
  687.         VALL, ROP, 0,
  688.         {POLY, 10, NULL, NULL, FillStippled}},
  689.   {"-strap100", "Fill 100x100 stippled trapezoid",
  690.         InitTrapezoids, DoTrapezoids, NullProc, EndTrapezoids,
  691.         VALL, ROP, 0,
  692.         {100, 100, NULL, NULL, FillStippled}},
  693.   {"-ostrap10", "Fill 10x10 opaque stippled trapezoid",
  694.         InitTrapezoids, DoTrapezoids, NullProc, EndTrapezoids,
  695.         VALL, ROP, 0,
  696.         {POLY, 10, NULL, NULL, FillOpaqueStippled}},
  697.   {"-ostrap100", "Fill 100x100 opaque stippled trapezoid",
  698.         InitTrapezoids, DoTrapezoids, NullProc, EndTrapezoids,
  699.         VALL, ROP, 0,
  700.         {100, 100, NULL, NULL, FillOpaqueStippled}},
  701.   {"-tiletrap10", "Fill 10x10 tiled trapezoid",
  702.         InitTrapezoids, DoTrapezoids, NullProc, EndTrapezoids,
  703.         VALL, ROP, 0,
  704.         {POLY, 10, NULL, NULL, FillTiled}},
  705.   {"-tiletrap100", "Fill 100x100 tiled trapezoid",
  706.         InitTrapezoids, DoTrapezoids, NullProc, EndTrapezoids,
  707.         VALL, ROP, 0,
  708.         {100, 100, NULL, NULL, FillTiled}},
  709.   {"-bigstrap10", "Fill 10x10 161x145 stippled trapezoid",
  710.         InitTrapezoids, DoTrapezoids, NullProc, EndTrapezoids,
  711.         VERSION1_3, ROP, 0,
  712.         {POLY, 10, "mensetmanus", NULL, FillStippled}},
  713.   {"-bigstrap100", "Fill 100x100 161x145 stippled trapezoid",
  714.         InitTrapezoids, DoTrapezoids, NullProc, EndTrapezoids,
  715.         VERSION1_3, ROP, 0,
  716.         {100, 100, "mensetmanus", NULL, FillStippled}},
  717.   {"-bigostrap10", "Fill 10x10 161x145 opaque stippled trapezoid",
  718.         InitTrapezoids, DoTrapezoids, NullProc, EndTrapezoids,
  719.         VERSION1_3, ROP, 0,
  720.         {POLY, 10, "mensetmanus", NULL, FillOpaqueStippled}},
  721.   {"-bigostrap100", "Fill 100x100 161x145 opaque stippled trapezoid",
  722.         InitTrapezoids, DoTrapezoids, NullProc, EndTrapezoids,
  723.         VERSION1_3, ROP, 0,
  724.         {100, 100, "mensetmanus", NULL, FillOpaqueStippled}},
  725.   {"-bigtiletrap10", "Fill 10x10 161x145 tiled trapezoid",
  726.         InitTrapezoids, DoTrapezoids, NullProc, EndTrapezoids,
  727.         VERSION1_3, ROP, 0,
  728.         {POLY, 10, "mensetmanus", NULL, FillTiled}},
  729.   {"-bigtiletrap100", "Fill 100x100 161x145 tiled trapezoid",
  730.         InitTrapezoids, DoTrapezoids, NullProc, EndTrapezoids,
  731.         VERSION1_3, ROP, 0,
  732.         {100, 100, "mensetmanus", NULL, FillTiled}},
  733.   {"-eschertiletrap10", "Fill 10x10 216x208 tiled trapezoid",
  734.         InitTrapezoids, DoTrapezoids, NullProc, EndTrapezoids,
  735.         VERSION1_3, ROP, 0,
  736.         {POLY, 10, "escherknot", NULL, FillTiled}},
  737.   {"-eschertiletrap100", "Fill 100x100 216x208 tiled trapezoid",
  738.         InitTrapezoids, DoTrapezoids, NullProc, EndTrapezoids,
  739.         VERSION1_3, ROP, 0,
  740.         {100, 100, "escherknot", NULL, FillTiled}},
  741.   {"-complex10", "Fill 10-pixel/side complex polygon",
  742.         InitComplexPoly, DoComplexPoly, NullProc, EndComplexPoly,
  743.         VERSION1_2, ROP, 0,
  744.         {POLY, 10}},
  745.   {"-complex100", "Fill 100-pixel/side complex polygons",
  746.         InitComplexPoly, DoComplexPoly, NullProc, EndComplexPoly,
  747.         VERSION1_2, ROP, 0,
  748.         {POLY/10, 100}},
  749.   {"-complex10", "Fill 10x10 equivalent complex polygon",
  750.         InitComplexPoly, DoComplexPoly, NullProc, EndComplexPoly,
  751.         VERSION1_3, ROP, 0,
  752.         {POLY, 10}},
  753.   {"-complex100", "Fill 100x100 equivalent complex polygons",
  754.         InitComplexPoly, DoComplexPoly, NullProc, EndComplexPoly,
  755.         VERSION1_3, ROP, 0,
  756.         {POLY/10, 100}},
  757.   {"-ftext",    "Char in 80-char line (6x13)",
  758.         InitText, DoText, ClearTextWin, EndText,
  759.         VALL, ROP, 0,
  760.         {80, False, "6x13", NULL}},
  761.   {"-f8text",    "Char in 70-char line (8x13)",
  762.         InitText, DoText, ClearTextWin, EndText,
  763.         VERSION1_3, ROP, 0,
  764.         {70, False, "8x13", NULL}},
  765.   {"-f9text",    "Char in 60-char line (9x15)",
  766.         InitText, DoText, ClearTextWin, EndText,
  767.         VERSION1_3, ROP, 0,
  768.         {60, False, "9x15", NULL}},
  769.   {"-f14text16",  "Char16 in 40-char line (k14)",
  770.         InitText16, DoText16, ClearTextWin, EndText16,
  771.         VERSION1_3, ROP, 0,
  772.         {40, False,
  773.           "-misc-fixed-medium-r-normal--14-130-75-75-c-140-jisx0208.1983-*",
  774.         NULL}},
  775.   {"-f24text16",  "Char16 in 23-char line (k24)",
  776.         InitText16, DoText16, ClearTextWin, EndText16,
  777.         VERSION1_3, ROP, 0,
  778.         {23, False, 
  779.           "-jis-fixed-medium-r-normal--24-230-75-75-c-240-jisx0208.1983-*",
  780.         NULL}},
  781.   {"-tr10text", "Char in 80-char line (TR 10)",
  782.         InitText, DoText, ClearTextWin, EndText,
  783.         VALL, ROP, 0,
  784.         {80, False, 
  785.         "-adobe-times-medium-r-normal--10-100-75-75-p-54-iso8859-1", 
  786.         NULL}},
  787.   {"-tr24text", "Char in 30-char line (TR 24)",
  788.         InitText, DoText, ClearTextWin, EndText,
  789.         VALL, ROP, 0,
  790.         {30, False, 
  791.         "-adobe-times-medium-r-normal--24-240-75-75-p-124-iso8859-1",
  792.          NULL}},
  793.   {"-polytext", "Char in 20/40/20 line (6x13, TR 10)",
  794.         InitText, DoPolyText, ClearTextWin, EndText,
  795.         VALL, ROP, 0,
  796.         {80, True, "6x13", 
  797.         "-adobe-times-medium-r-normal--10-100-75-75-p-54-iso8859-1"}},
  798.   {"-polytext16", "Char16 in 7/14/7 line (k14, k24)",
  799.         InitText16, DoPolyText16, ClearTextWin, EndText16,
  800.         VERSION1_3, ROP, 0,
  801.         {28, True, 
  802.          "-misc-fixed-medium-r-normal--14-130-75-75-c-140-jisx0208.1983-*",
  803.              "-jis-fixed-medium-r-normal--24-230-75-75-c-240-jisx0208.1983-*"}},
  804.   {"-fitext",   "Char in 80-char image line (6x13)",
  805.         InitText, DoImageText, ClearTextWin, EndText,
  806.         VALL, NONROP, 0,
  807.         {80, False, "6x13", NULL}},
  808.   {"-f8itext",   "Char in 70-char image line (8x13)",
  809.         InitText, DoImageText, ClearTextWin, EndText,
  810.         VERSION1_3, NONROP, 0,
  811.         {70, False, "8x13", NULL}},
  812.   {"-f9itext",   "Char in 60-char image line (9x15)",
  813.         InitText, DoImageText, ClearTextWin, EndText,
  814.         VERSION1_3, NONROP, 0,
  815.         {60, False, "9x15", NULL}},
  816.   {"-f14itext16", "Char16 in 40-char image line (k14)",
  817.         InitText16, DoImageText16, ClearTextWin, EndText16,
  818.         VERSION1_3, NONROP, 0,
  819.         {40, False,
  820.           "-misc-fixed-medium-r-normal--14-130-75-75-c-140-jisx0208.1983-*",
  821.         NULL}},
  822.   {"-f24itext16", "Char16 in 23-char image line (k24)",
  823.         InitText16, DoImageText16, ClearTextWin, EndText16,
  824.         VERSION1_3, NONROP, 0,
  825.         {23, False, 
  826.           "-jis-fixed-medium-r-normal--24-230-75-75-c-240-jisx0208.1983-*",
  827.         NULL}},
  828.   {"-tr10itext", "Char in 80-char image line (TR 10)",
  829.         InitText, DoImageText, ClearTextWin, EndText,
  830.         VALL, NONROP, 0,
  831.         {80, False, 
  832.         "-adobe-times-medium-r-normal--10-100-75-75-p-54-iso8859-1", 
  833.         NULL}},
  834.   {"-tr24itext", "Char in 30-char image line (TR 24)",
  835.         InitText, DoImageText, ClearTextWin, EndText,
  836.         VALL, NONROP, 0,
  837.         {30, False, 
  838.         "-adobe-times-medium-r-normal--24-240-75-75-p-124-iso8859-1",
  839.          NULL}},
  840.   {"-scroll10", "Scroll 10x10 pixels",
  841.         InitScroll, DoScroll, MidScroll, EndScroll,
  842.         VALL, ROP, 0,
  843.         {1, 10}},
  844.   {"-scroll100", "Scroll 100x100 pixels",
  845.         InitScroll, DoScroll, MidScroll, EndScroll,
  846.         VALL, ROP, 0,
  847.         {1, 100}},
  848.   {"-scroll500", "Scroll 500x500 pixels",
  849.         InitScroll, DoScroll, MidScroll, EndScroll,
  850.         VALL, ROP, 0,
  851.         {1, 500}},
  852.   {"-copywinwin10", "Copy 10x10 from window to window",
  853.         InitCopyWin, DoCopyWinWin, MidScroll, EndCopyWin,
  854.         VALL, ROP, 0,
  855.         {4, 10}},
  856.   {"-copywinwin100", "Copy 100x100 from window to window",
  857.         InitCopyWin, DoCopyWinWin, MidScroll, EndCopyWin,
  858.         VALL, ROP, 0,
  859.         {4, 100}},
  860.   {"-copywinwin500", "Copy 500x500 from window to window",
  861.         InitCopyWin, DoCopyWinWin, MidScroll, EndCopyWin,
  862.         VALL, ROP, 0,
  863.         {4, 500}},
  864.   {"-copypixwin10", "Copy 10x10 from pixmap to window",
  865.         InitCopyPix, DoCopyPixWin, MidCopyPix, EndCopyPix,
  866.         VALL, ROP, 0,
  867.         {4, 10}},
  868.   {"-copypixwin100", "Copy 100x100 from pixmap to window",
  869.         InitCopyPix, DoCopyPixWin, MidCopyPix, EndCopyPix, 
  870.         VALL, ROP, 0,
  871.         {4, 100}},
  872.   {"-copypixwin500", "Copy 500x500 from pixmap to window",
  873.         InitCopyPix, DoCopyPixWin, MidCopyPix, EndCopyPix,
  874.         VALL, ROP, 0,
  875.         {4, 500}},
  876.   {"-copywinpix10", "Copy 10x10 from window to pixmap",
  877.         InitCopyPix, DoCopyWinPix, MidScroll, EndCopyPix,
  878.         VALL, ROP, 0,
  879.         {4, 10}},
  880.   {"-copywinpix100", "Copy 100x100 from window to pixmap",
  881.         InitCopyPix, DoCopyWinPix, MidScroll, EndCopyPix, 
  882.         VALL, ROP, 0,
  883.         {4, 100}},
  884.   {"-copywinpix500", "Copy 500x500 from window to pixmap",
  885.         InitCopyPix, DoCopyWinPix, MidScroll, EndCopyPix,
  886.         VALL, ROP, 0,
  887.         {4, 500}},
  888.   {"-copypixpix10", "Copy 10x10 from pixmap to pixmap",
  889.         InitCopyPix, DoCopyPixPix, NullProc, EndCopyPix,
  890.         VALL, ROP, 0,
  891.         {4, 10}},
  892.   {"-copypixpix100", "Copy 100x100 from pixmap to pixmap",
  893.         InitCopyPix, DoCopyPixPix, NullProc, EndCopyPix, 
  894.         VALL, ROP, 0,
  895.         {4, 100}},
  896.   {"-copypixpix500", "Copy 500x500 from pixmap to pixmap",
  897.         InitCopyPix, DoCopyPixPix, NullProc, EndCopyPix,
  898.         VALL, ROP, 0,
  899.         {4, 500}},
  900.   {"-copyplane10", "Copy 10x10 1-bit deep plane",
  901.         InitCopyPlane, DoCopyPlane, MidCopyPix, EndCopyPix,
  902.         VALL, ROP, 0,
  903.         {4, 10}},
  904.   {"-copyplane100", "Copy 100x100 1-bit deep plane",
  905.         InitCopyPlane, DoCopyPlane, MidCopyPix, EndCopyPix,
  906.         VALL, ROP, 0,
  907.         {4, 100}},
  908.   {"-copyplane500", "Copy 500x500 1-bit deep plane",
  909.         InitCopyPlane, DoCopyPlane, MidCopyPix, EndCopyPix,
  910.         VALL, ROP, 0,
  911.         {4, 500}},
  912.   {"-putimage10", "PutImage 10x10 square",
  913.         InitPutImage, DoPutImage, MidCopyPix, EndGetImage,
  914.         VALL, ROP, 0,
  915.         {4, 10}},
  916.   {"-putimage100", "PutImage 100x100 square",
  917.         InitPutImage, DoPutImage, MidCopyPix, EndGetImage,
  918.         VALL, ROP, 0,
  919.         {4, 100}},
  920.   {"-putimage500", "PutImage 500x500 square",
  921.         InitPutImage, DoPutImage, MidCopyPix, EndGetImage,
  922.         VALL, ROP, 0,
  923.         {4, 500}},
  924. #ifdef MITSHM
  925.   {"-shmput10", "ShmPutImage 10x10 square",
  926.         InitShmPutImage, DoShmPutImage, MidCopyPix, EndShmPutImage,
  927.         VERSION1_3, ROP, 0,
  928.         {4, 10}},
  929.   {"-shmput100", "ShmPutImage 100x100 square",
  930.         InitShmPutImage, DoShmPutImage, MidCopyPix, EndShmPutImage,
  931.         VERSION1_3, ROP, 0,
  932.         {4, 100}},
  933.   {"-shmput500", "ShmPutImage 500x500 square",
  934.         InitShmPutImage, DoShmPutImage, MidCopyPix, EndShmPutImage,
  935.         VERSION1_3, ROP, 0,
  936.         {4, 500}},
  937. #endif
  938.   {"-getimage10", "GetImage 10x10 square",
  939.         InitGetImage, DoGetImage, NullProc, EndGetImage,
  940.         VALL, NONROP, 0,
  941.         {4, 10}},
  942.   {"-getimage100", "GetImage 100x100 square",
  943.         InitGetImage, DoGetImage, NullProc, EndGetImage,
  944.         VALL, NONROP, 0,
  945.         {4, 100}},
  946.   {"-getimage500", "GetImage 500x500 square",
  947.         InitGetImage, DoGetImage, NullProc, EndGetImage,
  948.         VALL, NONROP, 0,
  949.         {4, 500}},
  950.   {"-noop",     "X protocol NoOperation",
  951.         NullInitProc, DoNoOp, NullProc, NullProc,
  952.         VALL, NONROP, 0,
  953.         {1}},
  954.   {"-atom",     "GetAtomName",
  955.         NullInitProc, DoGetAtom, NullProc, NullProc,
  956.         VALL, NONROP, 0,
  957.         {1}},
  958.   {"-prop",     "GetProperty",
  959.         InitGetProperty, DoGetProperty, NullProc, NullProc,
  960.         VALL, NONROP, 0,
  961.         {1}},
  962.   {"-gc",       "Change graphics context",
  963.         InitGC, DoChangeGC, NullProc, EndGC,
  964.         VALL, NONROP, 0,
  965.         {4}},
  966.   {"-create",   "Create and map subwindows",
  967.         InitCreate, CreateChildren, DestroyChildren, EndCreate,
  968.         VALL, WINDOW, 0,
  969.         {0, True}},
  970.   {"-ucreate",  "Create unmapped window",
  971.         InitCreate, CreateChildren, DestroyChildren, EndCreate,
  972.         VALL, WINDOW, 0,
  973.         {0, False}},
  974.   {"-map",      "Map window via parent",
  975.         InitMap, MapParents, UnmapParents, EndCreate,
  976.         VALL, WINDOW, 0,
  977.         {0, True}},
  978.   {"-unmap",    "Unmap window via parent",
  979.         InitDestroy, UnmapParents, MapParents, EndCreate,
  980.         VALL, WINDOW, 0,
  981.         {0, True}},
  982.   {"-destroy",  "Destroy window via parent",
  983.         InitDestroy, DestroyParents, RenewParents, EndCreate,
  984.         VALL, WINDOW, 0,
  985.         {0, True}},
  986.   {"-popup",    "Hide/expose window via popup",
  987.         InitPopups, DoPopUps, NullProc, EndPopups,
  988.         VALL, WINDOW, 0,
  989.         {0, True}},
  990.   {"-move",     "Move window",
  991.         InitMoveWindows, DoMoveWindows, NullProc, EndMoveWindows,
  992.         VALL, WINDOW, 0,
  993.         {0, True}},
  994.   {"-umove",    "Moved unmapped window",
  995.         InitMoveWindows, DoMoveWindows, NullProc, EndMoveWindows,
  996.         VALL, WINDOW, 0,
  997.         {0, False}},
  998.   {"-movetree", "Move window via parent",
  999.         InitMoveTree, DoMoveTree, NullProc, EndMoveTree,
  1000.         VALL, WINDOW, 0,
  1001.         {4, True}},
  1002.   {"-resize",   "Resize window",
  1003.         InitMoveWindows, DoResizeWindows, NullProc, EndMoveWindows,
  1004.         VALL, WINDOW, 0,
  1005.         {4, True}},
  1006.   {"-uresize",  "Resize unmapped window",
  1007.         InitMoveWindows, DoResizeWindows, NullProc, EndMoveWindows,
  1008.         VALL, WINDOW, 0,
  1009.         {4, False}},
  1010.   {"-circulate", "Circulate window",
  1011.         InitCircWindows, DoCircWindows, NullProc, EndCircWindows,
  1012.         VALL, WINDOW, 0,
  1013.         {4, True}},
  1014.   {"-ucirculate", "Circulate Unmapped window",
  1015.         InitCircWindows, DoCircWindows, NullProc, EndCircWindows,
  1016.         VALL, WINDOW, 0,
  1017.         {4, False}},
  1018.   { NULL, NULL,
  1019.         NULL, NULL, NULL, NULL,
  1020.         NONROP, 0,
  1021.         {0, False, NULL, NULL}}
  1022. };
  1023.