home *** CD-ROM | disk | FTP | other *** search
/ Acorn User 10 / AU_CD10.iso / Updates / DigitalCD / !DigitalCD / Copy / PowerBars / h / Window < prev   
Text File  |  1999-01-02  |  2KB  |  84 lines

  1. #ifndef __wind__H
  2. #define __wind__H
  3.  
  4. #include <stdarg.h>
  5.  
  6. #include "bool.h"
  7. #include "Coords.h"
  8. #include "CIcon.h"
  9. #include "Event.h"
  10. #include "Sprites.h"
  11.  
  12. typedef enum
  13. {
  14.     EWind_Moveable        = 0x00000002,
  15.     EWind_NoRedraw        = 0x00000010,
  16.     EWind_Pane        = 0x00000020,
  17.     EWind_NoLimits        = 0x00000040,
  18.     EWind_Scroll_1        = 0x00000100,
  19.     EWind_Scroll_2        = 0x00000200,
  20.     EWind_StayonBackground    = 0x00000800,
  21.     EWind_GrabHotKeys    = 0x00001000,
  22.     EWind_ForceOnScreen    = 0x00002000,
  23.     EWind_IgnoreRightExtent    = 0x00004000,
  24.     EWind_IgnoreLeftExtent    = 0x00008000,
  25.     EWind_IsOpen        = 0x00010000,
  26.     EWind_IsOnTop        = 0x00020000,
  27.     EWind_IsFullSize    = 0x00040000,
  28.     EWind_ClickToggle    = 0x00080000,
  29.     EWind_HasFocus        = 0x00100000,
  30.     EWind_WillForceOnScreen    = 0x00200000,
  31.     EWind_BackIcon        = 0x01000000,
  32.     EWind_CloseIcon        = 0x02000000,
  33.     EWind_TitleBar        = 0x04000000,
  34.     EWind_ToggleSize    = 0x08000000,
  35.     EWind_VScroll        = 0x10000000,
  36.     EWind_Resize        = 0x20000000,
  37.     EWind_HScroll        = 0x40000000,
  38.     EWind_NewFormat        = ~0x7fffffff
  39. } EWind_Flags;
  40.  
  41.  
  42. typedef struct
  43. {
  44.     HWind        w;
  45.     CWindCvt    cvt;
  46.     HWind        behind;
  47. } CWindOpen;
  48.  
  49. typedef struct
  50. {
  51.     CWindOpen    o;
  52.     int        flags;
  53. } CWindState;
  54.  
  55. typedef struct
  56. {
  57.     CWindState    o;
  58.     char        title_fg;
  59.     char        title_bg;
  60.     char        work_fg;
  61.     char        work_bg;
  62.     char        scroll_inner;
  63.     char        scroll_outer;
  64.     char        highlight_bg;
  65.     char        reserved;
  66.     CRect        ex;
  67.     int        title_flags;
  68.     int        work_flags;
  69.     CSpriteArea*    sprite_area;
  70.     short        min_width;
  71.     short        min_height;
  72.     CIconData    title_data;
  73.     int        nicons;
  74. } CWind;
  75.  
  76. typedef struct
  77. {
  78.     HWind        w;
  79.     CWindCvt    cvt;
  80.     CRect        bounds;
  81. } CWindRedraw;
  82.  
  83. #endif
  84.