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

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