home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 522.lha / ccd_v2.0 / win.h < prev   
C/C++ Source or Header  |  1991-06-09  |  4KB  |  117 lines

  1.  
  2. struct NewScreen NewScreenStructure = {
  3.    0,0,  /* screen XY origin relative to View */
  4.    640,200, /* screen width and height */
  5.    2, /* screen depth (number of bitplanes) */
  6.    0,1,  /* detail and block pens */
  7.    HIRES,   /* display modes for this screen */
  8.    CUSTOMSCREEN,  /* screen type */
  9.    NULL, /* pointer to default screen font */
  10.    NULL, /* screen title */
  11.    NULL, /* first in list of custom screen gadgets */
  12.    NULL  /* pointer to custom BitMap structure */
  13. };
  14.  
  15. #define NEWSCREENSTRUCTURE NewScreenStructure
  16.  
  17. USHORT Palette[] = {
  18.    0x0000,  /* color #0 */
  19.    0x0FFF,  /* color #1 */
  20.    0x0900,  /* color #2 */
  21.    0x00AB   /* color #3 */
  22. #define PaletteColorCount 4
  23. };
  24.  
  25. #define PALETTE Palette
  26.  
  27. SHORT w1BorderVectors1[] = {
  28.    0,0,
  29.    53,0,
  30.    53,24,
  31.    0,24,
  32.    0,0
  33. };
  34. struct Border w1Border1 = {
  35.    -1,-1,   /* XY origin relative to container TopLeft */
  36.    3,0,JAM1,   /* front pen, back pen and drawmode */
  37.    5, /* number of XY vectors */
  38.    w1BorderVectors1, /* pointer to XY vectors */
  39.    NULL  /* next border in list */
  40. };
  41.  
  42. struct IntuiText w1IText1 = {
  43.    3,0,JAM2,   /* front and back text pens, drawmode and fill byte */
  44.    10,8, /* XY origin relative to container TopLeft */
  45.    NULL, /* font pointer or NULL for default */
  46.    "dh0:",  /* pointer to text */
  47.    NULL  /* next IntuiText structure */
  48. };
  49.  
  50. struct Gadget w1Gadget2 = {
  51.    NULL, /* next gadget */
  52.    547,25,  /* origin XY of hit box relative to window TopLeft */
  53.    52,23,   /* hit box width and height */
  54.    NULL, /* gadget flags */
  55.    RELVERIFY,  /* activation flags */
  56.    BOOLGADGET, /* gadget type flags */
  57.    (APTR)&w1Border1, /* gadget border or image to be rendered */
  58.    NULL, /* alternate imagery for selection */
  59.    &w1IText1,  /* first IntuiText structure */
  60.    NULL, /* gadget mutual-exclude long word */
  61.    NULL, /* SpecialInfo structure */
  62.    2, /* user-definable data */
  63.    NULL  /* pointer to user-definable data */
  64. };
  65.  
  66. struct PropInfo w1w1Gadget1SInfo = {
  67.    AUTOKNOB+FREEVERT,   /* PropInfo flags */
  68.    0,0,  /* horizontal and vertical pot values */
  69.    -1,-1,   /* horizontal and vertical body values */
  70. };
  71.  
  72. struct Image w1Image1 = {
  73.    0,0,  /* XY origin relative to container TopLeft */
  74.    8,181,   /* Image width and height in pixels */
  75.    0, /* number of bitplanes in Image */
  76.    NULL, /* pointer to ImageData */
  77.    0x0000,0x0000, /* PlanePick and PlaneOnOff */
  78.    NULL  /* next Image structure */
  79. };
  80.  
  81. struct Gadget w1Gadget1 = {
  82.    &w1Gadget2, /* next gadget */
  83.    5,12, /* origin XY of hit box relative to window TopLeft */
  84.    16,185,  /* hit box width and height */
  85.    NULL, /* gadget flags */
  86.    RELVERIFY,   /* activation flags */
  87.    PROPGADGET, /* gadget type flags */
  88.    (APTR)&w1Image1,  /* gadget border or image to be rendered */
  89.    NULL, /* alternate imagery for selection */
  90.    NULL, /* first IntuiText structure */
  91.    NULL, /* gadget mutual-exclude long word */
  92.    (APTR)&w1w1Gadget1SInfo,   /* SpecialInfo structure */
  93.    1, /* user-definable data */
  94.    NULL  /* pointer to user-definable data */
  95. };
  96.  
  97. #define w1GadgetList1 w1Gadget1
  98.  
  99. struct NewWindow w1NewWindowStructure1 = {
  100.    0,0,  /* window XY origin relative to TopLeft of screen */
  101.    640,200, /* window width and height */
  102.    0,1,  /* detail and block pens */
  103.    MOUSEBUTTONS+GADGETUP+CLOSEWINDOW+RAWKEY, /* IDCMP flags */
  104.    WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+ACTIVATE+NOCAREREFRESH,  /* other window flags */
  105.    &w1Gadget1, /* first gadget in gadget list */
  106.    NULL, /* custom CHECKMARK imagery */
  107.    "CCD 2.0     by Cédric BEUST",   /* window title */
  108.    NULL, /* custom screen pointer */
  109.    NULL, /* custom bitmap */
  110.    5,5,  /* minimum width and height */
  111.    -1,-1,   /* maximum width and height */
  112.    CUSTOMSCREEN   /* destination screen type */
  113. };
  114.  
  115.  
  116. /* end of PowerWindows source generation */
  117.