home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 240.lha / PickPacket_v1.0 / Sources / viewgen.h < prev   
Text File  |  1989-05-04  |  4KB  |  126 lines

  1.  
  2. static USHORT ImageData1[] = {
  3.     0xFFFC,0xC7E0,0xC7E0,0xC7E0,0xFFFC,0xDFF8,0xCFF0,0xC7E0,
  4.     0xC3C0,0xC180,0xC000,0x0000,0x07E0,0x07E0,0x07E0,0x3FFC,
  5.     0x1FF8,0x0FF0,0x07E0,0x03C0,0x0180,0x0000
  6. };
  7.  
  8. static struct Image Image1 = {
  9.     0,0,    /* XY origin relative to container TopLeft */
  10.     14,11,    /* Image width and height in pixels */
  11.     2,    /* number of bitplanes in Image */
  12.     ImageData1,    /* pointer to ImageData */
  13.     0x0003,0x0000,    /* PlanePick and PlaneOnOff */
  14.     NULL    /* next Image structure */
  15. };
  16.  
  17. static struct Gadget Gadget3 = {
  18.     NULL,    /* next gadget */
  19.     -15,-19,    /* origin XY of hit box relative to window TopLeft */
  20.     14,11,    /* hit box width and height */
  21.     GADGIMAGE+GRELBOTTOM+GRELRIGHT,    /* gadget flags */
  22.     RELVERIFY,    /* activation flags */
  23.     BOOLGADGET,    /* gadget type flags */
  24.     (APTR)&Image1,    /* gadget border or image to be rendered */
  25.     NULL,    /* alternate imagery for selection */
  26.     NULL,    /* first IntuiText structure */
  27.     NULL,    /* gadget mutual-exclude long word */
  28.     NULL,    /* SpecialInfo structure */
  29.     GAD_DOWN,    /* user-definable data */
  30.     NULL    /* pointer to user-definable data */
  31. };
  32.  
  33. static USHORT ImageData2[] = {
  34.     0xC000,0xC180,0xC3C0,0xC7E0,0xCFF0,0xDFF8,0xFFFC,0xC7E0,
  35.     0xC7E0,0xC7E0,0xFFFC,0x0000,0x0180,0x03C0,0x07E0,0x0FF0,
  36.     0x1FF8,0x3FFC,0x07E0,0x07E0,0x07E0,0x0000
  37. };
  38.  
  39. static struct Image Image2 = {
  40.     0,0,    /* XY origin relative to container TopLeft */
  41.     14,11,    /* Image width and height in pixels */
  42.     2,    /* number of bitplanes in Image */
  43.     ImageData2,    /* pointer to ImageData */
  44.     0x0003,0x0000,    /* PlanePick and PlaneOnOff */
  45.     NULL    /* next Image structure */
  46. };
  47.  
  48. static struct Gadget Gadget2 = {
  49.     &Gadget3,    /* next gadget */
  50.     -15,10,    /* origin XY of hit box relative to window TopLeft */
  51.     14,11,    /* hit box width and height */
  52.     GADGIMAGE+GRELRIGHT,    /* gadget flags */
  53.     RELVERIFY,    /* activation flags */
  54.     BOOLGADGET,    /* gadget type flags */
  55.     (APTR)&Image2,    /* gadget border or image to be rendered */
  56.     NULL,    /* alternate imagery for selection */
  57.     NULL,    /* first IntuiText structure */
  58.     NULL,    /* gadget mutual-exclude long word */
  59.     NULL,    /* SpecialInfo structure */
  60.     GAD_UP,    /* user-definable data */
  61.     NULL    /* pointer to user-definable data */
  62. };
  63.  
  64. static struct PropInfo Gadget1SInfo = {
  65.     AUTOKNOB+FREEVERT,    /* PropInfo flags */
  66.     -1,0,    /* horizontal and vertical pot values */
  67.     1310,1,    /* horizontal and vertical body values */
  68. };
  69.  
  70. static struct Image Image3 = {
  71.     0,0,    /* XY origin relative to container TopLeft */
  72.     8,4,    /* Image width and height in pixels */
  73.     0,    /* number of bitplanes in Image */
  74.     NULL,    /* pointer to ImageData */
  75.     0x0000,0x0000,    /* PlanePick and PlaneOnOff */
  76.     NULL    /* next Image structure */
  77. };
  78.  
  79. static struct Gadget Gadget1 = {
  80.     &Gadget2,    /* next gadget */
  81.     -15,20,    /* origin XY of hit box relative to window TopLeft */
  82.     16,-39,    /* hit box width and height */
  83.     GADGHBOX+GADGHIMAGE+GRELRIGHT+GRELHEIGHT,    /* gadget flags */
  84.     RELVERIFY,    /* activation flags */
  85.     PROPGADGET,    /* gadget type flags */
  86.     (APTR)&Image3,    /* gadget border or image to be rendered */
  87.     NULL,    /* alternate imagery for selection */
  88.     NULL,    /* first IntuiText structure */
  89.     NULL,    /* gadget mutual-exclude long word */
  90.     (APTR)&Gadget1SInfo,    /* SpecialInfo structure */
  91.     GAD_SLIDER,    /* user-definable data */
  92.     NULL    /* pointer to user-definable data */
  93. };
  94.  
  95. #define GadgetList1 Gadget1
  96.  
  97. static struct TextAttr TOPAZ80 = {
  98.     (STRPTR)"topaz.font",
  99.     TOPAZ_EIGHTY,0,0
  100. };
  101. static struct IntuiText IText1 = {
  102.     0,0,JAM1,    /* front and back text pens, drawmode and fill byte */
  103.     272,52,    /* XY origin relative to container TopLeft */
  104.     &TOPAZ80,    /* font pointer or NULL for default */
  105.     " ",    /* pointer to text */
  106.     NULL    /* next IntuiText structure */
  107. };
  108.  
  109. #define IntuiTextList1 IText1
  110.  
  111. static struct NewWindow NewWindowStructure1 = {
  112.     0,17,    /* window XY origin relative to TopLeft of screen */
  113.     640,150,    /* window width and height */
  114.     0,1,    /* detail and block pens */
  115.     NULL,    /* IDCMP flags */
  116.     WINDOWSIZING+WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+ACTIVATE+NOCAREREFRESH,    /* other window flags */
  117.     &Gadget1,    /* first gadget in gadget list */
  118.     NULL,    /* custom CHECKMARK imagery */
  119.     "Help Window",    /* window title */
  120.     NULL,    /* custom screen pointer */
  121.     NULL,    /* custom bitmap */
  122.     20,50,    /* minimum width and height */
  123.     -1,-1,    /* maximum width and height */
  124.     WBENCHSCREEN    /* destination screen type */
  125. };
  126.