home *** CD-ROM | disk | FTP | other *** search
/ Nebula / nebula.bin / SourceCode / MiniExamples / ImageText / CopyIcon.c < prev    next >
C/C++ Source or Header  |  1993-01-19  |  2KB  |  69 lines

  1. /* CopyIcon.c generated from CopyIcon.psw
  2.    by unix pswrap V1.009  Wed Apr 19 17:50:24 PDT 1989
  3.  */
  4.  
  5. #include <dpsclient/dpsfriends.h>
  6. #include <string.h>
  7.  
  8. #line 1 "CopyIcon.psw"
  9. #line 10 "CopyIcon.c"
  10. void copyIconPicture(int win, float x, float y, float w, float h)
  11. {
  12.   typedef struct {
  13.     unsigned char tokenType;
  14.     unsigned char topLevelCount;
  15.     unsigned short nBytes;
  16.  
  17.     DPSBinObjReal obj0;
  18.     DPSBinObjReal obj1;
  19.     DPSBinObjReal obj2;
  20.     DPSBinObjReal obj3;
  21.     DPSBinObjGeneric obj4;
  22.     DPSBinObjGeneric obj5;
  23.     DPSBinObjGeneric obj6;
  24.     DPSBinObjGeneric obj7;
  25.     DPSBinObjGeneric obj8;
  26.     DPSBinObjGeneric obj9;
  27.     DPSBinObjGeneric obj10;
  28.     DPSBinObjGeneric obj11;
  29.     DPSBinObjGeneric obj12;
  30.     char obj13[9];
  31.     char obj14[4];
  32.     char obj15[17];
  33.     } _dpsQ;
  34.   static const _dpsQ _dpsStat = {
  35.     DPS_DEF_TOKENTYPE, 13, 138,
  36.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: x */
  37.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: y */
  38.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: w */
  39.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: h */
  40.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 78},    /* gsave */
  41.     {DPS_LITERAL|DPS_INT, 0, 0, 0},    /* param: win */
  42.     {DPS_EXEC|DPS_NAME, 0, 17, 117},    /* windowdeviceround */
  43.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 79},    /* gstate */
  44.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 77},    /* grestore */
  45.     {DPS_LITERAL|DPS_INT, 0, 0, 0},
  46.     {DPS_LITERAL|DPS_INT, 0, 0, 0},
  47.     {DPS_EXEC|DPS_NAME, 0, 4, 113},    /* Copy */
  48.     {DPS_EXEC|DPS_NAME, 0, 9, 104},    /* composite */
  49.     {'c','o','m','p','o','s','i','t','e'},
  50.     {'C','o','p','y'},
  51.     {'w','i','n','d','o','w','d','e','v','i','c','e','r','o','u','n','d'},
  52.     }; /* _dpsQ */
  53.   _dpsQ _dpsF;    /* local copy  */
  54.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  55.   char pad[3];
  56.   register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
  57.   _dpsF = _dpsStat;    /* assign automatic variable */
  58.  
  59.   _dpsP[5].val.integerVal = win;
  60.   _dpsP[0].val.realVal = x;
  61.   _dpsP[1].val.realVal = y;
  62.   _dpsP[2].val.realVal = w;
  63.   _dpsP[3].val.realVal = h;
  64.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,138);
  65.   if (0) *pad = 0;    /* quiets compiler warnings */
  66. }
  67. #line 3 "CopyIcon.psw"
  68.  
  69.