Annotation of 43BSD/contrib/X/xwm/StoreBox.c, revision 1.1.1.1

1.1       root        1: #include <X/mit-copyright.h>
                      2: 
                      3: /* Copyright    Massachusetts Institute of Technology    1985  */
                      4: 
                      5: /*
                      6:  *     StoreBox - This subroutine is used by the X Window Manager (xwm)
                      7:  *     to store the vertices for the resize / movement box in a vertex list.
                      8:  *
                      9:  *     File:           StoreBox.c
                     10:  */
                     11: 
                     12: #ifndef lint
                     13: static char *rcsid_StoreBox_c = "$Header: StoreBox.c,v 10.3 86/02/01 16:10:07 tony Rel $";
                     14: #endif
                     15: 
                     16: #include "xwm.h"
                     17: 
                     18: /*
                     19:  * Store the vertices for the resize movement box in a vertex list.
                     20:  */
                     21: int StoreBox(box, ulx, uly, lrx, lry)
                     22:     register Vertex box[];
                     23:     register int ulx;          /* Upper left X coordinate. */
                     24:     register int uly;          /* Upper left Y coordinate. */
                     25:     register int lrx;          /* Lower right X coordinate. */
                     26:     register int lry;          /* Lower right Y coordinate. */
                     27: {
                     28:     /*
                     29:      * Xor in.
                     30:      */
                     31:     box[0].x = ulx;  box[0].y = uly;  box[0].flags = VertexDontDraw;
                     32:     box[1].x = lrx;  box[1].y = uly;
                     33:     box[2].x = lrx;  box[2].y = lry;
                     34:     box[3].x = ulx;  box[3].y = lry;
                     35:     box[4].x = ulx;  box[4].y = uly;
                     36: 
                     37:     /*
                     38:      * Xor out.
                     39:      */
                     40:     box[5].x = lrx;  box[5].y = uly;
                     41:     box[6].x = lrx;  box[6].y = lry;
                     42:     box[7].x = ulx;  box[7].y = lry;
                     43:     box[8].x = ulx;  box[8].y = uly;
                     44: 
                     45:     /*
                     46:      * Total number of vertices is 9.
                     47:      */
                     48:     return(9);
                     49: }
                     50: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.