statline.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #ifndef __STATLINE
  2. #define __STATLINE
  3. #include <default.h>
  4. /* Begin Auto-Generated Part */
  5. #ifndef __HAVE_Bool
  6. #define __HAVE_Bool
  7. enum Bool{FALSE,TRUE};
  8. #endif
  9. #ifndef __HAVE_SCR_RECT
  10. #define __HAVE_SCR_RECT
  11. typedef union{struct{unsigned char x0,y0,x1,y1;}xy;unsigned long l;}SCR_RECT;
  12. #endif
  13. #ifndef __HAVE_SCR_STATE
  14. #define __HAVE_SCR_STATE
  15. typedef struct{void*ScrAddr;unsigned char XMax,YMax;short CurFont,CurAttr,CurX,CurY;SCR_RECT CurClip;}SCR_STATE;
  16. #endif
  17. #ifndef __HAVE_WIN_RECT
  18. #define __HAVE_WIN_RECT
  19. typedef struct{short x0,y0,x1,y1;}WIN_RECT;
  20. #endif
  21. #ifndef __HAVE_WINDOW
  22. #define __HAVE_WINDOW
  23. typedef struct WindowStruct{unsigned short Flags;unsigned char CurFont;unsigned char CurAttr;unsigned char Background;short TaskId;short CurX,CurY;short CursorX,CursorY;SCR_RECT Client;SCR_RECT Window;SCR_RECT Clip;SCR_RECT Port;unsigned short DupScr;struct WindowStruct*Next;char*Title;SCR_STATE savedScrState;unsigned char Reserved[16];}WINDOW;
  24. #endif
  25. #ifndef __HAVE_ST_ACTIVITIES
  26. #define __HAVE_ST_ACTIVITIES
  27. enum ST_ACTIVITIES{ACTIVITY_IDLE,ACTIVITY_BUSY,ACTIVITY_PAUSED,ACTIVITY_NORMAL};
  28. #endif
  29. enum ST_FLAGS{ST_IDLE=0,ST_BUSY=1,ST_PAUSE=2,ST_CLEAR=3,ST_NORMAL=3,ST_NOTHING=0,ST_BATT=1,ST_BATT_DARK=2,ST_BATT_OK=0,ST_BATT_LOW=1,ST_BATT_REPLACE=2,ST_RAD=0,ST_DEG=1,ST_FUNC=0,ST_PAR=2,ST_POL=3,ST_SEQ=4,ST_3D=5,ST_DE=6,ST_NONE=0,ST_2ND=1,ST_SHIFT=2,ST_DIAMOND=4,ST_ALPHA=8,ST_SH_A_LOCK=16,ST_A_LOCK=32,ST_AUTO=0,ST_EXACT=1,ST_APPROX=2};
  30. #define ST_angle _rom_call(void,(short),E0)
  31. #define ST_batt _rom_call(void,(short),E1)
  32. #define ST_busy _rom_call(void,(short),E2)
  33. #define ST_eraseHelp _rom_call(short,(void),E3)
  34. #define ST_folder _rom_call(void,(const char*),E4)
  35. #define ST_graph _rom_call(void,(short),E5)
  36. #define ST_helpMsg _rom_call(void,(const char*),E6)
  37. #define ST_showHelp ST_helpMsg
  38. #define ST_modKey _rom_call(void,(short),E7)
  39. #define ST_precision _rom_call(void,(short),E8)
  40. #define ST_readOnly _rom_call(void,(short),E9)
  41. #define ST_refDsp _rom_call(void,(short),EB)
  42. #define ST_stack _rom_call(void,(short,short),EA)
  43. #if MIN_AMS>=200
  44. typedef struct{WINDOW*w;WIN_RECT rect;long value;long low,high;long logwidth;short physwidth;}ST_PROGRESS_BAR;
  45. #define ST_progressBar _rom_call(void,(ST_PROGRESS_BAR*,long,long),4D8)
  46. #define ST_progressDismiss _rom_call(void,(ST_PROGRESS_BAR*),4DB)
  47. #define ST_progressIncrement _rom_call(void,(ST_PROGRESS_BAR*,long),4DA)
  48. #define ST_progressUpdate _rom_call(void,(ST_PROGRESS_BAR*,long),4D9)
  49. #endif
  50. /* End Auto-Generated Part */
  51. #endif