home *** CD-ROM | disk | FTP | other *** search
/ ST-Computer Leser-CD 1999 January / STC_CD_01_1999.iso / utility / winlupe / source / image.c < prev    next >
Text File  |  2000-01-08  |  4KB  |  114 lines

  1.  
  2. #define NULL    ((void *) 0l)
  3.  
  4. typedef struct
  5. {
  6.     int        *hi_on,*hi_off,*lo_on,*lo_off;
  7. } IMAGE;
  8.  
  9. typedef struct
  10. {
  11.     int        count;
  12.     IMAGE    *image;
  13. } IMAGES;
  14.  
  15. static int radio_hi_on[] = {
  16. 0x0000, 0x03C0, 0x0C30, 0x1008, 0x23C4, 0x27E4, 0x4FF2, 0x4FF2,
  17. 0x4FF2, 0x4FF2, 0x27E4, 0x23C4, 0x1008, 0x0C30, 0x03C0, 0x0000 };
  18.  
  19. static int radio_hi_off[] = {
  20. 0x0000, 0x03C0, 0x0C30, 0x1008, 0x2004, 0x2004, 0x4002, 0x4002,
  21. 0x4002, 0x4002, 0x2004, 0x2004, 0x1008, 0x0C30, 0x03C0, 0x0000 };
  22.  
  23. static int radio_lo_on[] = {
  24. 0x0FF0, 0x781E, 0xE3C7, 0xCFF3, 0xCFF3, 0xE3C7, 0x781E, 0x0FF0 };
  25.  
  26. static int radio_lo_off[] = {
  27. 0x0FF0, 0x781E, 0xE007, 0xC003, 0xC003, 0xE007, 0x781E, 0x0FF0 };
  28.  
  29. static int check_hi_on[] = {
  30. 0x0000, 0x7FFE, 0x4002, 0x500A, 0x4812, 0x4422, 0x4242, 0x4182,
  31. 0x4182, 0x4242, 0x4422, 0x4812, 0x500A, 0x4002, 0x7FFE, 0x0000 };
  32.  
  33. static int check_hi_off[] = {
  34. 0x0000, 0x0000, 0x3FFC, 0x2004, 0x2004, 0x2004, 0x2004, 0x2004,
  35. 0x2004, 0x2004, 0x2004, 0x2004, 0x2004, 0x3FFC, 0x0000, 0x0000 };
  36.  
  37. static int check_lo_on[] =
  38. { 0x7FFC, 0x701C, 0x4C64, 0x4384, 0x4C64, 0x701C, 0x7FFC ,0x0000 };
  39.  
  40. static int check_lo_off[] =
  41. { 0x7FFC, 0x4004, 0x4004, 0x4004, 0x4004, 0x4004, 0x7FFC ,0x0000 };
  42.  
  43. static int arrow_up_lo_sel[] = {
  44. 0x0000, 0x0180, 0x0180, 0x03C0, 0x03C0, 0x07E0, 0x07E0, 0x0000 };
  45. static int arrow_up_lo[] = {
  46. 0x0000, 0x0180, 0x0180, 0x0240, 0x0240, 0x0420, 0x07E0, 0x0000};
  47.  
  48. static int arrow_dn_lo_sel[] = {
  49. 0x0000, 0x07E0, 0x07E0, 0x03E0, 0x03C0, 0x0180, 0x0180, 0x0000};
  50. static int arrow_dn_lo[] = {
  51. 0x0000, 0x07E0, 0x0420, 0x0240, 0x0240, 0x0180, 0x0180, 0x0000};
  52.  
  53. static int arrow_right_lo_sel[] = {
  54. 0x0000, 0x3C00, 0x3FC0, 0x3FFC, 0x3FC0, 0x3C00, 0x0000 , 0x0000};
  55. static int arrow_right_lo[] = {
  56. 0x0000, 0x3C00, 0x23C0, 0x203C, 0x23C0, 0x3C00, 0x0000 , 0x0000};
  57.  
  58. static int arrow_left_lo_sel[] = {
  59. 0x0000, 0x001E, 0x01FE, 0x1FFE, 0x01FE, 0x001E, 0x0000, 0x0000 };
  60. static int arrow_left_lo[] = {
  61. 0x0000, 0x001E, 0x01E2, 0x1E02, 0x01E2, 0x001E, 0x0000, 0x0000 };
  62.  
  63. static int arrow_up_hi_sel[] = {
  64. 0x0000, 0x0000, 0x0080, 0x00C0, 0x01C0, 0x01E0, 0x03E0, 0x03F0,
  65. 0x07F0, 0x07F8, 0x0FF8, 0x0FFC, 0x1FFC, 0x1FFE, 0x0FFE, 0x0000 };
  66. static int arrow_up_hi[] = {
  67. 0x0000, 0x0000, 0x0080, 0x00C0, 0x0140, 0x0160, 0x0220, 0x0230,
  68. 0x0410, 0x0418, 0x0808, 0x080C, 0x1004, 0x1FFE, 0x0FFE, 0x0000 };
  69.  
  70. static int arrow_dn_hi_sel[] = {
  71. 0x0000, 0x0000, 0x1FFC, 0x1FFC, 0x1FFC, 0x0FF8, 0x0FF8, 0x07F0,
  72. 0x07F0, 0x03E0, 0x03E0, 0x01C0, 0x01C0, 0x0080, 0x0000, 0x0000 };
  73. static int arrow_dn_hi[] = {
  74. 0x0000, 0x0000, 0x1FFC, 0x100C, 0x180C, 0x0818, 0x0C18, 0x0430,
  75. 0x0630, 0x0260, 0x0360, 0x01C0, 0x01C0, 0x0080, 0x0000, 0x0000 };
  76.  
  77. static int arrow_left_hi_sel[] = {
  78. 0x0000, 0x0000, 0x000C, 0x003E, 0x00FE, 0x03FE, 0x0FFE, 0x3FFE,
  79. 0x1FFE, 0x07FE, 0x01FE, 0x007E, 0x001E, 0x0006, 0x0000, 0x0000 };
  80. static int arrow_left_hi[] = {
  81. 0x0000, 0x0000, 0x000C, 0x0036, 0x00C6, 0x0306, 0x0C06, 0x3006,
  82. 0x1C06, 0x0706, 0x01C6, 0x0076, 0x001E, 0x0006, 0x0000, 0x0000 };
  83.  
  84. static int arrow_right_hi_sel[] = {
  85. 0x0000, 0x0000, 0x3000, 0x3C00, 0x3F00, 0x3FC0, 0x3FF0, 0x3FFC,
  86. 0x3FFE, 0x3FF8, 0x3FE0, 0x3F80, 0x3E00, 0x1800, 0x0000, 0x0000 };
  87. static int arrow_right_hi[] = {
  88. 0x0000, 0x0000, 0x3000, 0x2C00, 0x2300, 0x20C0, 0x2030, 0x200C,
  89. 0x203E, 0x20F8, 0x23E0, 0x2F80, 0x3E00, 0x1800, 0x0000, 0x0000 };
  90.  
  91. static IMAGE radio_im[] =
  92. {{radio_hi_on,radio_hi_off,radio_lo_on,radio_lo_off}};
  93.  
  94. static IMAGE check_im[] =
  95. {{check_hi_on,check_hi_off,check_lo_on,check_lo_off}};
  96.  
  97. static IMAGE arrow_up_im[] =
  98. {{arrow_up_hi_sel,arrow_up_hi,arrow_up_lo_sel,arrow_up_lo}};
  99. static IMAGE arrow_dn_im[] =
  100. {{arrow_dn_hi_sel,arrow_dn_hi,arrow_dn_lo_sel,arrow_dn_lo}};
  101.  
  102. static IMAGE arrow_left_im[] =
  103. {{arrow_left_hi_sel,arrow_left_hi,arrow_left_lo_sel,arrow_left_lo}};
  104. static IMAGE arrow_right_im[] =
  105. {{arrow_right_hi_sel,arrow_right_hi,arrow_right_lo_sel,arrow_right_lo}};
  106.  
  107. IMAGES _radios = { 1, radio_im };
  108. IMAGES _checks = { 1, check_im };
  109. IMAGES _cycles = { 0, NULL };
  110. IMAGES _arrows_up    = { 1, arrow_up_im };
  111. IMAGES _arrows_down    = { 1, arrow_dn_im };
  112. IMAGES _arrows_right= { 1, arrow_right_im };
  113. IMAGES _arrows_left    = { 1, arrow_left_im };
  114.