home *** CD-ROM | disk | FTP | other *** search
- The HASWIN window library.
- ===========================
- Copyright H.A. Shaw 1990.
- ===========================
-
- General facilities provided by HASWIN.
- ---------------------------------------
-
- In order to work correctly and to provide a uniform interface to
- the user the include file, "haswin.h" has to contain items internal to
- HASWIN, but available to the user program as well. Under normal
- circumstances the user program will not have to make use of these items, but
- they will be explained here.
-
- HASWIN_WIMP_Swi - This #defined constant is the base number for
- WIMP SWIs.
- HASWIN_HASWIN_Swi - This #defined constant is the base number for
- HASWINs own SWIs. At present it is unused.
-
- The following #defined constants provide the SWI numbers for direct
- calls to the WIMP SWIs. The user program should have no need to ever use
- direct calls to WIMP SWIs, but they are provided just in case.
-
- HASWIN_Initialise, HASWIN_Create_window, HASWIN_Create_icon,
- HASWIN_Delete_window, HASWIN_Delete_icon, HASWIN_Open_window,
- HASWIN_Close_window, HASWIN_Poll, HASWIN_Redraw_window, HASWIN_Update_window,
- HASWIN_Get_rectangle, HASWIN_Get_window_state, HASWIN_Get_window_info,
- HASWIN_Set_icon_state, HASWIN_Get_icon_state, HASWIN_Get_pointer_info,
- HASWIN_Drag_box, HASWIN_Force_redraw, HASWIN_Set_caret, HASWIN_Get_caret,
- HASWIN_Create_menu, HASWIN_Decode_menu, HASWIN_Which_icon, HASWIN_Set_extent,
- HASWIN_Set_pointer_shape, HASWIN_Open_template, HASWIN_Close_template,
- HASWIN_Load_template, HASWIN_Process_key, HASWIN_Closedown,
- HASWIN_Start_task, HASWIN_Report_error, HASWIN_Get_window_outline,
- HASWIN_Poll_idle, HASWIN_Plot_icon, HASWIN_Set_mode, HASWIN_Set_palette,
- HASWIN_Read_palette, HASWIN_Set_colour, HASWIN_Send_message,
- HASWIN_Create_sub_menu, HASWIN_Sprite_operation, HASWIN_Base_of_sprites,
- HASWIN_Block_copy, HASWIN_Slot_size, HASWIN_Read_pix_trans,
- HASWIN_Claim_free_memory, HASWIN_Command_window, HASWIN_Text_colour,
- HASWIN_Transfer_block, HASWIN_Read_sys_info, HASWIN_Set_font_colours,
-
- The following #defined constants provide the SWI numbers for direct
- calls to the HourGlass SWIs. The user program should have no need to ever
- use direct calls to HourGlass SWIs, but they are provided just in case.
-
- HASWIN_Hourglass_on, HASWIN_Hourglass_off
-
- The following #defined constants provide useful values for use with
- HASWIN programs.
-
- HASWIN_UNKNOWN - returned by some HASWIN routines.
- HASWIN_FALSE - returned by some HASWIN routines.
- HASWIN_TRUE - returned by some HASWIN routines.
-
- TASK_MAXNAME - maximun length of a task name for a user program
- HASWIN_ACTIVEMAX - maximum number of active windows. This is greater
- than the number of windows the underlying WIMP will
- allow on the screen at a time.
- HASWIN_SPRITEFILE - name of file containing HASWINs sprites.
- HASWIN_TEMPLATEFILE - name of file containing HASWINs templates.
-
- haswin_bell() - this macro rings the terminal bell by sending a
- CONTROL+G to the standard output stream.
-
- char *haswin_getcommandline();
- - this routine returns the commandline the program
- was started with.
-
- int haswin_getflags();
- - this routine returns the global HASWIN flags as
- passed to haswin_initialise() and modified with
- haswin_setflags() and haswin_clearflags().
-
- int haswin_clearflags(int flags);
- - this routine clears the global HASWIN flags given
- in the parameter "flags".
-
- int haswin_setflags(int flags);
- - this routine sets the global HASWIN flags given in
- the parameter "flags".
-
- int *haswin_getstarttime();
- - this routine returns a pointer to a five byte time
- block which contains the time at which the program
- was started.
-
- int haswin_getversion();
- - this routine returns the current version number of
- the HASWIN library (*100).
-
-
- int haswin_setinfowindow(char *title, char *purpose, char *author, char *version);
- - this routine creates a "standard" info window and
- adds it to the menu of any icons this program has
- (or will put in the future) on the icon bar. The
- parameters should be self explainatory to anyone
- who has seen an Info window before.
- If a window called "information" exists then it is
- used and the four parameters are placed into the
- first four icons in the icon definition (icon
- handles 0-3). If no window is found any currently
- open template file is searched for a window called
- "information", and only if no window is found is
- the HASWIN default window used.
-
- int haswin_helpreply(char *, buffer *);
- int haswin_openfiler(char *, char *);
- int haswin_swi(int, _kernel_swi_regs *);
-
-