home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD v1.2 / amidev_cd_12.iso / reference / amiga_mail_vol2 / iv-69 / hide.h < prev    next >
C/C++ Source or Header  |  1992-09-03  |  4KB  |  110 lines

  1. /*
  2.  * Hide.h
  3.  
  4. Copyright (c) 1991 Commodore-Amiga, Inc.
  5.  
  6. This example is provided in electronic form by Commodore-Amiga,
  7. Inc. for use with the Amiga Mail Volume II technical publication.
  8. Amiga Mail Volume II contains additional information on the correct
  9. usage of the techniques and operating system functions presented in
  10. these examples.  The source and executable code of these examples may
  11. only be distributed in free electronic form, via bulletin board or
  12. as part of a fully non-commercial and freely redistributable
  13. diskette.  Both the source and executable code (including comments)
  14. must be included, without modification, in any copy.  This example
  15. may not be published in printed form or distributed with any
  16. commercial product. However, the programming techniques and support
  17. routines set forth in these examples may be used in the development
  18. of original executable software products for Commodore Amiga
  19. computers.
  20.  
  21. All other rights reserved.
  22.  
  23. This example is provided "as-is" and is subject to change; no
  24. warranties are made.  All use is at your own risk. No liability or
  25. responsibility is assumed.
  26. */
  27.  
  28.  
  29. UWORD chip      ImageI1Data[] =
  30. {
  31. /* Plane 0 */
  32.     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x8208, 0x0000, 0x0000,
  33.     0x8208, 0x7FFF, 0xFFFF, 0xFEF8, 0x4000, 0x0000, 0x00A8, 0x4000,
  34.     0x0000, 0x0048, 0x4000, 0x0000, 0x00A8, 0x4000, 0x0000, 0x0048,
  35.     0x4000, 0x0000, 0x00A8, 0x4000, 0x0000, 0x0008, 0x4000, 0x0000,
  36.     0x0008, 0x4000, 0x0000, 0x00E8, 0x4000, 0x0000, 0x0008, 0xFFFF,
  37.     0xFFFF, 0xFFF8,
  38. /* Plane 1 */
  39.     0xFFFF, 0xFFFF, 0xFFF8, 0x8000, 0x0000, 0x4100, 0x8000, 0x0000,
  40.     0x4100, 0x8000, 0x0000, 0x0100, 0xC000, 0x0000, 0x0110, 0xC000,
  41.     0x0000, 0x0110, 0xC000, 0x0000, 0x0110, 0xC000, 0x0000, 0x0110,
  42.     0xC000, 0x0000, 0x0110, 0xC000, 0x0000, 0x0110, 0xC000, 0x0000,
  43.     0x0110, 0xC000, 0x0000, 0x0110, 0xFFFF, 0xFFFF, 0xFFF0, 0x0000,
  44.     0x0000, 0x0000,
  45. };
  46.  
  47. struct Image    ImageI1 =
  48. {
  49.     0, 0,                    /* Upper left corner */
  50.     45, 14, 2,               /* Width, Height, Depth */
  51.     ImageI1Data,             /* Image data */
  52.     0x0003, 0x0000,          /* PlanePick, PlaneOnOff */
  53.     NULL                     /* Next image */
  54. };
  55.  
  56. UWORD chip      ImageI2Data[] =
  57. {
  58. /* Plane 0 */
  59.     0x0000, 0x0000, 0x0000, 0x7FFF, 0xFFFF, 0xBEF8, 0x7FFF, 0xFFFF,
  60.     0xBEF8, 0x7FFF, 0xFFFF, 0xFEF8, 0x4000, 0x0000, 0x00E8, 0x4000,
  61.     0x0000, 0x00E8, 0x4000, 0x0000, 0x00E8, 0x4000, 0x0000, 0x00E8,
  62.     0x4000, 0x0000, 0x00E8, 0x4000, 0x0000, 0x00A8, 0x4000, 0x0000,
  63.     0x00A8, 0x4000, 0x0000, 0x00E8, 0x4000, 0x0000, 0x0008, 0xFFFF,
  64.     0xFFFF, 0xFFF8,
  65. /* Plane 1 */
  66.     0xFFFF, 0xFFFF, 0xFFF8, 0xFFFF, 0xFFFF, 0x7DF0, 0xFFFF, 0xFFFF,
  67.     0x7DF0, 0x8000, 0x0000, 0x0100, 0xC000, 0x0000, 0x0150, 0xC000,
  68.     0x0000, 0x01B0, 0xC000, 0x0000, 0x0150, 0xC000, 0x0000, 0x01B0,
  69.     0xC000, 0x0000, 0x0150, 0xC000, 0x0000, 0x01F0, 0xC000, 0x0000,
  70.     0x01F0, 0xC000, 0x0000, 0x0110, 0xFFFF, 0xFFFF, 0xFFF0, 0x0000,
  71.     0x0000, 0x0000,
  72. };
  73.  
  74. struct Image    ImageI2 =
  75. {
  76.     0, 0,                    /* Upper left corner */
  77.     45, 14, 2,               /* Width, Height, Depth */
  78.     ImageI2Data,             /* Image data */
  79.     0x0003, 0x0000,          /* PlanePick, PlaneOnOff */
  80.     NULL                     /* Next image */
  81. };
  82.  
  83. struct DiskObject AppIconDObj =
  84. {
  85.     0,
  86.     0,
  87.     {                        /* Embedded Gadget Structure */
  88.         NULL,                /* Next Gadget Pointer */
  89.         0, 0, 45, 15,        /* Left,Top,Width,Height */
  90.         GFLG_GADGHIMAGE,
  91.         0,                   /* Activation Flags */
  92.         0,                   /* Gadget Type */
  93.         (APTR) & ImageI1,    /* Render Image */
  94.         (APTR) & ImageI2,    /* Select Image */
  95.         NULL,                /* Gadget Text */
  96.         NULL,                /* Mutual Exclude */
  97.         NULL,                /* Special Info */
  98.         0,                   /* Gadget ID */
  99.         NULL,                /* User Data */
  100.     },
  101.     0,                       /* Icon Type */
  102.     NULL,                    /* Default Tool */
  103.     NULL,                    /* Tool Type Array */
  104.     NO_ICON_POSITION,        /* Current X */
  105.     NO_ICON_POSITION,        /* Current Y */
  106.     NULL,                    /* Drawer Structure */
  107.     NULL,                    /* Tool Window */
  108.     0                        /* Stack Size */
  109. };
  110.