home *** CD-ROM | disk | FTP | other *** search
/ Encyclopedia of Graphics File Formats Companion / GFF_CD.ISO / software / unix / saoimage / sao1_07.tar / defs / cursor.def < prev    next >
Text File  |  1989-11-09  |  2KB  |  48 lines

  1. #ifndef lint
  2. static char SccsCurdefId[] = "%W%  %G%";
  3. #endif
  4.  
  5. /* Module:    Cursor.def
  6.  * Purpose:    Declare and initialize cursor structure
  7.  * Modified:    {0} Michael VanHilst    initial version          5 June 1989
  8.  *        {n} <who> -- <does what> -- <when>
  9.  */
  10.  
  11. struct cursorRec cursor = {
  12.  {    /* CurFCoord file;        file coordinates */
  13.   -1.0,0.0,    /* float X, Y;        center dimension (or other ref) */
  14.    10.0,10.0,    /* float Xdim, Ydim;    dimension appropriate to type */
  15.    0.0 },    /* double area;        area if computed */
  16.  {    /* CurWCoord win;        window coordinates */
  17.    NULL,    /* Display *display;    display where draw */
  18.    NULL,    /* Window ID;        drawable where to draw */
  19.    0, 0,    /* int x, y;        integer center coordinates */
  20.    0.0,0.0,    /* double X, Y;        float center coordinates */
  21.    10.0,10.0 },    /* double rayX, rayY;    center to side distance */
  22.  {    /*  CurRot rot;            rotation angle parameters */
  23.    0.0,        /* double angle;    rotation angle in radians */
  24.    0.0,-1.0,    /* double sin, cos;    sin and cos of angle */
  25.    0.0,0.0 },    /* double cut_A, cut_B;    angles of pie cut */
  26.  {    /* CurCtrl ctrl;        interactive control parameters */
  27.    0,        /* int active_vertex;    index of vertex being maniputated */
  28.    0,        /* int active_side;    sizing of x dim, y dim, or both */
  29.    1.0 },    /* double axis_ratio;    fixed ratio of Xdim and Ydim */
  30.     /* int type;            type (code in Constant.h) */
  31.  COP_Point,
  32.  0,    /* int cut;            apply-pie-cut flag */
  33.  0,    /* int label_point;        label-the-point flag */
  34.  1,    /* int overwrites_image_data;    cursor-overwrites-image-data */
  35.  0,    /* int index;            index for regions and annuli */
  36.  0,    /* int exclude_region;        region type and suppress drawing */
  37.  NULL,    /* int point_cnt;        number of points for XDrawLines */
  38.  NULL,    /* XPoint *points;        absolute-coord drawing vertices */
  39.  0,    /* int rectangle_cnt;        number of hash-mark boxes */
  40.  NULL,    /* XRectangle *rectangles;    for XDrawRectangles */
  41.  0,    /* int poly_cnt;        number of vertices in polygon */
  42.  NULL,    /* PolyPoint *poly;        array of polygon vertex coords */
  43.  0,    /* int annuli;                annuli of this type */
  44.  NULL,    /* struct cursorRec *next_annulus;    annulus linklist */
  45.  NULL,    /* struct cursorRec *next_region;    region linklist */
  46.  NULL,    /* GCspec *draw;        color set to draw this cursor */
  47. };
  48.