1: #include <X/mit-copyright.h>
   2: 
   3: /* Copyright    Massachusetts Institute of Technology    1985	*/
   4: 
   5: /*
   6:  *	StoreZap - This subroutine is used by the X Window Manager (xwm)
   7:  *	to store the vertices for the iconify, uniconify zap.
   8:  *
   9:  *	File:		StoreZap.c
  10:  */
  11: 
  12: #ifndef lint
  13: static char *rcsid_StoreZap_c = "$Header: StoreZap.c,v 10.3 86/02/01 16:10:21 tony Rel $";
  14: #endif
  15: 
  16: #include "xwm.h"
  17: 
  18: /*
  19:  * Store the vertices for the zap effect.
  20:  */
  21: int StoreZap(zap, ulx_1, uly_1, lrx_1, lry_1, ulx_2, uly_2, lrx_2, lry_2)
  22:     register Vertex zap[];
  23:     int ulx_1;      /* From window, upper left X coordinate. */
  24:     int uly_1;      /* From window, upper left Y coordinate. */
  25:     int lrx_1;      /* From window, lower right X coordinate. */
  26:     int lry_1;      /* From window, lower right Y coordinate. */
  27:     int ulx_2;      /* To window, upper left X coordinate. */
  28:     int uly_2;      /* To window, upper left Y coordinate. */
  29:     int lrx_2;      /* To window, lower right X coordinate. */
  30:     int lry_2;      /* To window, lower right Y coordinate. */
  31: {
  32: 
  33:     /*
  34:      * Xor in.
  35:      */
  36:     zap[0].x = ulx_1;   zap[0].y = uly_1;   zap[0].flags = VertexDontDraw;
  37:     zap[1].x = ulx_2;   zap[1].y = uly_2;
  38:     zap[2].x = lrx_1;   zap[2].y = uly_1;   zap[2].flags = VertexDontDraw;
  39:     zap[3].x = lrx_2;   zap[3].y = uly_2;
  40:     zap[4].x = lrx_1;   zap[4].y = lry_1;   zap[4].flags = VertexDontDraw;
  41:     zap[5].x = lrx_2;   zap[5].y = lry_2;
  42:     zap[6].x = ulx_1;   zap[6].y = lry_1;   zap[6].flags = VertexDontDraw;
  43:     zap[7].x = ulx_2;   zap[7].y = lry_2;
  44: 
  45:     /*
  46:      * Xor out.
  47:      */
  48:     zap[8].x = ulx_1;   zap[8].y = uly_1;   zap[8].flags = VertexDontDraw;
  49:     zap[9].x = ulx_2;   zap[9].y = uly_2;
  50:     zap[10].x = lrx_1;  zap[10].y = uly_1;  zap[10].flags = VertexDontDraw;
  51:     zap[11].x = lrx_2;  zap[11].y = uly_2;
  52:     zap[12].x = lrx_1;  zap[12].y = lry_1;  zap[12].flags = VertexDontDraw;
  53:     zap[13].x = lrx_2;  zap[13].y = lry_2;
  54:     zap[14].x = ulx_1;  zap[14].y = lry_1;  zap[14].flags = VertexDontDraw;
  55:     zap[15].x = ulx_2;  zap[15].y = lry_2;
  56: 
  57:     /*
  58:      * Total number of vertices is 16.
  59:      */
  60:     return(16);
  61: }

Defined functions

Defined variables

rcsid_StoreZap_c defined in line 13; never used
Last modified: 1986-02-01
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 815
Valid CSS Valid XHTML 1.0 Strict