home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / clib / progs / haswinlib / h / includes < prev   
Encoding:
Text File  |  1991-02-04  |  4.2 KB  |  113 lines

  1. /* > $.CLIB.C.includes
  2.  *
  3.  *     standard includes file for HASWIN.  All haswin source files include
  4.  *     this file.
  5.  */
  6. #include <stdio.h>
  7. #include <string.h>
  8. #include <stdlib.h>
  9. #include <haswin.h>
  10.  
  11. #define SWI_X                      0x20000
  12. #define OS_Byte                    0x00006
  13. #define OS_Word                    0x00007
  14. #define OS_File                    0x00008
  15. #define OS_Args                    0x00009
  16. #define OS_GBPB                    0x0000C
  17. #define OS_Find                    0x0000D
  18. #define OS_GetEnv                  0x00010
  19. #define OS_Heap                    0x0001D
  20. #define OS_FSControl               0x00029
  21. #define OS_Sprite_operation        0x0002E
  22. #define OS_ReadVduVariables        0x00031
  23. #define OS_ReadMonotonicTime       0x00042
  24. #define OS_Plot                    0x00045
  25. #define OS_Read_mem_map_info       0x00051
  26. #define OS_Read_mem_map_entries    0x00052
  27. #define OS_WriteI                  0x00100
  28.  
  29. #define HASWIN_FONT_Swi            0x40080
  30.  
  31. #define FONT_Find_font             HASWIN_FONT_Swi+0x01
  32. #define FONT_Lose_font             HASWIN_FONT_Swi+0x02
  33.  
  34. /*
  35.  *      this structure stores the data needed for window redirection to a
  36.  *      sprite.
  37.  */
  38. typedef struct spritejob {
  39.         int     win;                /* window handle sprite is drawn from */
  40.         char    *name;              /* name of sprite                     */
  41.         int     *savearea;          /* save area                          */
  42.         int     r0, r1, r2, r3;     /* R0-R3 for calls                    */
  43. } spritejob;
  44.  
  45. extern char     haswintemp[256];
  46. extern window   *haswin_topwindow;
  47. extern int      haswin_activewindowmax;
  48. extern int      haswin_activewindow[HASWIN_ACTIVEMAX];
  49. extern icon     *haswin_baricons;
  50. extern int      (*haswin_exittrap)(int);
  51. extern int      haswin_version;
  52. extern int      haswin_flags;
  53. extern char     *haswin_commline;
  54. extern int      *haswin_starttime;
  55. extern int      *haswin_usersprites;
  56. extern int      *haswin_haswinsprites;
  57. extern int      haswin_templatefsize;
  58. extern char     *haswin_templatewspace;
  59. extern char     *haswin_templateptr;
  60. extern char     *haswin_templateend;
  61. extern char     haswin_fontarray[256];
  62. extern menu     haswin_menu;
  63. extern window   *haswin_dragwindow;
  64. extern icon     *haswin_dragicon;
  65. extern pointer  haswin_dragmouse;
  66. extern int      (*haswin_ramtxroutine)(void *, int, int, buffer *);
  67. extern int      (*haswin_ramrxroutine)(void *, int, int, buffer *);
  68. extern void     *haswin_ramtxbuffer;
  69. extern int      haswin_ramtxlength;
  70. extern int      haswin_ramtxbytes;
  71. extern void     *haswin_ramrxbuffer;
  72. extern int      haswin_ramrxlength;
  73. extern int      haswin_ramrxbytes;
  74. extern int      (*haswin_autoloadroutine)(char *, buffer *);
  75. extern int      haswin_autoloadtype;
  76. extern int      (*haswin_loadfileroutine)(char *, buffer *);
  77. extern char     haswin_defaultloadfile[256];
  78. extern window   *haswin_loadingwindow;
  79. extern icon     *haswin_loadicon;
  80. extern icon     *haswin_loadiconok;
  81. extern icon     *haswin_loadiconname;
  82. extern icon     *haswin_loadicontype;
  83. extern int      haswin_loadfiletype;
  84. extern int      (*haswin_savefileroutine)(char *, buffer *);
  85. extern char     haswin_defaultsavefile[256];
  86. extern window   *haswin_saveingwindow;
  87. extern icon     *haswin_saveicon;
  88. extern icon     *haswin_saveiconok;
  89. extern icon     *haswin_saveiconname;
  90. extern icon     *haswin_saveicontype;
  91. extern int      haswin_savefiletype;
  92. extern int      haswin_fileoptions;
  93. extern window   *haswin_quitwin;
  94. extern int      haswin_quitfrom;
  95. extern int      haswin_programtop;
  96. extern char     *haswin_tasknameis;
  97. extern char     haswin_taskname[TASK_MAXNAME];
  98. extern int      haswin_taskid;
  99. extern spritejob   haswin_spritejob;
  100. extern int      (*haswin_printfileroutine)(char *, buffer *);
  101.  
  102. extern int      asciilen(char *);
  103. extern int      atoint(char *);
  104. extern void     strqcpy(char *, char *);
  105. extern void     strnqcpy(char *, char *, int);
  106. extern int      haswin_buildiconflags(char *, int, int, int, int *, char *,
  107.                         int);
  108. extern int      filemousebutton(icon *, buffer *);
  109. extern void     graphics_plot(char *, int, int, int, int, int, int);
  110. extern void     text_plot(text *, int, int, int, int, int, int);
  111. extern int      haswin_initpointerinfo(void);
  112.  
  113.