home *** CD-ROM | disk | FTP | other *** search
/ Acorn User 10 / AU_CD10.iso / Updates / DigitalCD / !DigitalCD / Copy / PowerBars / h / CIcon < prev    next >
Text File  |  1999-01-02  |  978b  |  62 lines

  1. #ifndef __CIcon__H
  2. #define __CIcon__H
  3.  
  4. #include <stdarg.h>
  5.  
  6. #include "bool.h"
  7. #include "Coords.h"
  8. #include "Sprites.h"
  9.  
  10. typedef union
  11. {
  12.     char    t[12];
  13.     char    s[12];
  14.     char    st[12];
  15.     struct
  16.     {
  17.         char*    buffer;
  18.         char*    validation;
  19.         int    buf_size;
  20.     } it;
  21.     struct
  22.     {
  23.         char*        sprite_name;
  24.         CSpriteArea*    sprite_area;
  25.         int        sprite_name_length;
  26.     } is;
  27.     struct
  28.     {
  29.         char*    buffer;
  30.         char*    validation;
  31.         int    buf_size;
  32.     } ist;
  33. } CIconData;
  34.  
  35. typedef enum
  36. {
  37.     EIcon_Text        = 0x00000001,
  38.     EIcon_Sprite        = 0x00000002,
  39.     EIcon_Border        = 0x00000004,
  40.     EIcon_HCentre        = 0x00000008,
  41.     EIcon_VCentre        = 0x00000010,
  42.     EIcon_Filled        = 0x00000020,
  43.     EIcon_Font        = 0x00000040,
  44.     EIcon_Redraw        = 0x00000080,
  45.     EIcon_Indirect        = 0x00000100,
  46.     EIcon_RightAlign    = 0x00000200,
  47.     EIcon_Adjust        = 0x00000400,
  48.     EIcon_HalveSprite    = 0x00000800,
  49.     EIcon_Selected        = 0x00200000,
  50.     EIcon_Dimmed        = 0x00400000,
  51.     EIcon_Deleted        = 0x00800000
  52. } CIcon_Flags;
  53.  
  54. typedef struct
  55. {
  56.     CRect        box;
  57.     int        flags;
  58.     CIconData    data;
  59. } CIcon;
  60.  
  61. #endif
  62.