Home » Archimedes archive » Acorn User » AU 1996-12 A.adf » Regulars » C/!RAPS/h/AUlib

C/!RAPS/h/AUlib

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1996-12 A.adf » Regulars
Filename: C/!RAPS/h/AUlib
Read OK:
File size: 0F24 bytes
Load address: 0000
Exec address: 0000
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
/* AULib.h - a header file for the Acorn User WIMP C library */

#ifndef AULIB_H
#define AULIB_H

/* #Include the appropriate files - swis.h and kernel.h hold the information
 * we need to call SWI functions from within C */

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "swis.h"
#include "kernel.h"

/* A few #defines to set up some constants */

#define IBAR_ONRIGHT	-1
#define IBAR_ONLEFT	-2
#define IBAR_PRIOR_APP	0

/* #Defines for icon flags */
#define ICON_ISTEXT	1u << 0
#define ICON_ISSPRITE	1u << 1
#define ICON_HASBORDER	1u << 2
#define ICON_HCENTRE	1u << 3
#define ICON_VCENTRE	1u << 4
#define ICON_ISFILLED	1u << 5
#define ICON_CLICKNOTIFIESONCE	3u << 12 

/* These are for a StyleGuide-compliant square iconbar icon - without text */
#define IBAR_BBOX_MINX	0
#define IBAR_BBOX_MINY	0
#define IBAR_BBOX_MAXX	68
#define IBAR_BBOX_MAXY	68

/* These are for a StyleGuide-compliant square iconbar icon - with text */
#define IBART_BBOX_MINX	0
#define IBART_BBOX_MINY	20
#define IBART_BBOX_MAXX	68
#define IBART_BBOX_MAXY	84

/* #Defines for menu creation */

#define MENU_TITLEFORE	7u
#define MENU_TITLEBACK	2u << 8
#define MENU_WORKFORE	7u << 16
#define MENU_WORKBACK	0u << 24 /* these define colours */
#define MENU_TICK	1u << 0
#define MENU_DOTTED	1u << 1
#define MENU_LASTITEM	1u << 7
#define MENU_SHADED	1u << 22

#define MENUITEM_FORE	7u << 24
#define MENUITEM_BACK	0u << 28

#define MENU_WIDTH	172 /* could be more intelligent, but it's a start */
#define MENU_HEIGHT	44 /* by order of the Style Guide */
#define MENU_VERTGAP	0

/* Message types */

#define MESSAGE_QUIT	0
#define MESSAGE_DATASAVE	1
#define MESSAGE_DATASAVEACK	2
#define MESSAGE_DATALOAD	3
#define MESSAGE_DATALOADACK	4

/* Sizes for block definitions */

#define ICON_BLOCK_SIZE	40

/* Other miscellaneous definitions */

#define SAVEDRAG_TYPE	5

/* Structure definitions */

typedef struct window_data {
	int	win_handle;
	unsigned char	*buffer;
	unsigned char	*workspace;
	char *win_name;
} window_data;

typedef struct pointer_data {
	long int	mouse_x;
	long int	mouse_y;
	long int	button_state;
	long int	win_handle;
	long int	icon_handle;
} pointer_data;

typedef struct menu_element {
	long int flags;
	long int submenu;
	long int menu_iconflags;
	char menu_text[12];
	struct menu_element *next_menuelem;
} menu_element;

typedef struct menu_data {
	char title[12];
	int size;
	long int colours;
	long int width;
	long int height;
	long int vert_gap;
	unsigned char* datablock;
	menu_element *next_menuelem;
} menu_data;

/* Prototyping */
extern int	au_initialise(int, char *, long int[]);
extern void	au_closedown(int);
extern int	au_create_iconbar_icon(int, unsigned long int, unsigned long int, char *);
extern void	au_wordtobyte(unsigned long int, unsigned char[], int);
extern unsigned long int	au_bytetoword(unsigned char[], int);
extern void	au_opentemplate(char *);
extern void	au_closetemplate(void);
extern int	au_loadtemplate(char *, window_data *, int);
extern int	au_report_error(int, char *, int, char *);
extern void	au_openwin_from_templatedata(window_data *, long int);
extern int	au_wimp_poll(int, unsigned char *);
extern void	au_icon_text_change(char *, unsigned long int, unsigned long int);
extern char	*au_get_ptr_to_icontext(unsigned long int, unsigned long int);
extern void	au_buildmenu(char *, menu_data *);
extern void	au_addtomenu(char *, long int, long int, long int, menu_data *);
extern void	au_createmenu(menu_data *);
extern void	au_openmenu(menu_data *, int, int);
extern void	au_icon_get_text(char *, unsigned long int, unsigned long int);
extern void	au_losecaret(void);
extern void	au_dragbox(unsigned long int, unsigned long int);
extern void	au_geticoninfo(unsigned long int, unsigned long int, unsigned char *);
extern void	au_getpointerinfo(pointer_data *);
extern void	au_datasave(pointer_data, int, int, char*);
#endif
00000000  2f 2a 20 41 55 4c 69 62  2e 68 20 2d 20 61 20 68  |/* AULib.h - a h|
00000010  65 61 64 65 72 20 66 69  6c 65 20 66 6f 72 20 74  |eader file for t|
00000020  68 65 20 41 63 6f 72 6e  20 55 73 65 72 20 57 49  |he Acorn User WI|
00000030  4d 50 20 43 20 6c 69 62  72 61 72 79 20 2a 2f 0a  |MP C library */.|
00000040  0a 23 69 66 6e 64 65 66  20 41 55 4c 49 42 5f 48  |.#ifndef AULIB_H|
00000050  0a 23 64 65 66 69 6e 65  20 41 55 4c 49 42 5f 48  |.#define AULIB_H|
00000060  0a 0a 2f 2a 20 23 49 6e  63 6c 75 64 65 20 74 68  |../* #Include th|
00000070  65 20 61 70 70 72 6f 70  72 69 61 74 65 20 66 69  |e appropriate fi|
00000080  6c 65 73 20 2d 20 73 77  69 73 2e 68 20 61 6e 64  |les - swis.h and|
00000090  20 6b 65 72 6e 65 6c 2e  68 20 68 6f 6c 64 20 74  | kernel.h hold t|
000000a0  68 65 20 69 6e 66 6f 72  6d 61 74 69 6f 6e 0a 20  |he information. |
000000b0  2a 20 77 65 20 6e 65 65  64 20 74 6f 20 63 61 6c  |* we need to cal|
000000c0  6c 20 53 57 49 20 66 75  6e 63 74 69 6f 6e 73 20  |l SWI functions |
000000d0  66 72 6f 6d 20 77 69 74  68 69 6e 20 43 20 2a 2f  |from within C */|
000000e0  0a 0a 23 69 6e 63 6c 75  64 65 20 3c 73 74 64 69  |..#include <stdi|
000000f0  6f 2e 68 3e 0a 23 69 6e  63 6c 75 64 65 20 3c 73  |o.h>.#include <s|
00000100  74 72 69 6e 67 2e 68 3e  0a 23 69 6e 63 6c 75 64  |tring.h>.#includ|
00000110  65 20 3c 73 74 64 6c 69  62 2e 68 3e 0a 23 69 6e  |e <stdlib.h>.#in|
00000120  63 6c 75 64 65 20 22 73  77 69 73 2e 68 22 0a 23  |clude "swis.h".#|
00000130  69 6e 63 6c 75 64 65 20  22 6b 65 72 6e 65 6c 2e  |include "kernel.|
00000140  68 22 0a 0a 2f 2a 20 41  20 66 65 77 20 23 64 65  |h"../* A few #de|
00000150  66 69 6e 65 73 20 74 6f  20 73 65 74 20 75 70 20  |fines to set up |
00000160  73 6f 6d 65 20 63 6f 6e  73 74 61 6e 74 73 20 2a  |some constants *|
00000170  2f 0a 0a 23 64 65 66 69  6e 65 20 49 42 41 52 5f  |/..#define IBAR_|
00000180  4f 4e 52 49 47 48 54 09  2d 31 0a 23 64 65 66 69  |ONRIGHT.-1.#defi|
00000190  6e 65 20 49 42 41 52 5f  4f 4e 4c 45 46 54 09 2d  |ne IBAR_ONLEFT.-|
000001a0  32 0a 23 64 65 66 69 6e  65 20 49 42 41 52 5f 50  |2.#define IBAR_P|
000001b0  52 49 4f 52 5f 41 50 50  09 30 0a 0a 2f 2a 20 23  |RIOR_APP.0../* #|
000001c0  44 65 66 69 6e 65 73 20  66 6f 72 20 69 63 6f 6e  |Defines for icon|
000001d0  20 66 6c 61 67 73 20 2a  2f 0a 23 64 65 66 69 6e  | flags */.#defin|
000001e0  65 20 49 43 4f 4e 5f 49  53 54 45 58 54 09 31 75  |e ICON_ISTEXT.1u|
000001f0  20 3c 3c 20 30 0a 23 64  65 66 69 6e 65 20 49 43  | << 0.#define IC|
00000200  4f 4e 5f 49 53 53 50 52  49 54 45 09 31 75 20 3c  |ON_ISSPRITE.1u <|
00000210  3c 20 31 0a 23 64 65 66  69 6e 65 20 49 43 4f 4e  |< 1.#define ICON|
00000220  5f 48 41 53 42 4f 52 44  45 52 09 31 75 20 3c 3c  |_HASBORDER.1u <<|
00000230  20 32 0a 23 64 65 66 69  6e 65 20 49 43 4f 4e 5f  | 2.#define ICON_|
00000240  48 43 45 4e 54 52 45 09  31 75 20 3c 3c 20 33 0a  |HCENTRE.1u << 3.|
00000250  23 64 65 66 69 6e 65 20  49 43 4f 4e 5f 56 43 45  |#define ICON_VCE|
00000260  4e 54 52 45 09 31 75 20  3c 3c 20 34 0a 23 64 65  |NTRE.1u << 4.#de|
00000270  66 69 6e 65 20 49 43 4f  4e 5f 49 53 46 49 4c 4c  |fine ICON_ISFILL|
00000280  45 44 09 31 75 20 3c 3c  20 35 0a 23 64 65 66 69  |ED.1u << 5.#defi|
00000290  6e 65 20 49 43 4f 4e 5f  43 4c 49 43 4b 4e 4f 54  |ne ICON_CLICKNOT|
000002a0  49 46 49 45 53 4f 4e 43  45 09 33 75 20 3c 3c 20  |IFIESONCE.3u << |
000002b0  31 32 20 0a 0a 2f 2a 20  54 68 65 73 65 20 61 72  |12 ../* These ar|
000002c0  65 20 66 6f 72 20 61 20  53 74 79 6c 65 47 75 69  |e for a StyleGui|
000002d0  64 65 2d 63 6f 6d 70 6c  69 61 6e 74 20 73 71 75  |de-compliant squ|
000002e0  61 72 65 20 69 63 6f 6e  62 61 72 20 69 63 6f 6e  |are iconbar icon|
000002f0  20 2d 20 77 69 74 68 6f  75 74 20 74 65 78 74 20  | - without text |
00000300  2a 2f 0a 23 64 65 66 69  6e 65 20 49 42 41 52 5f  |*/.#define IBAR_|
00000310  42 42 4f 58 5f 4d 49 4e  58 09 30 0a 23 64 65 66  |BBOX_MINX.0.#def|
00000320  69 6e 65 20 49 42 41 52  5f 42 42 4f 58 5f 4d 49  |ine IBAR_BBOX_MI|
00000330  4e 59 09 30 0a 23 64 65  66 69 6e 65 20 49 42 41  |NY.0.#define IBA|
00000340  52 5f 42 42 4f 58 5f 4d  41 58 58 09 36 38 0a 23  |R_BBOX_MAXX.68.#|
00000350  64 65 66 69 6e 65 20 49  42 41 52 5f 42 42 4f 58  |define IBAR_BBOX|
00000360  5f 4d 41 58 59 09 36 38  0a 0a 2f 2a 20 54 68 65  |_MAXY.68../* The|
00000370  73 65 20 61 72 65 20 66  6f 72 20 61 20 53 74 79  |se are for a Sty|
00000380  6c 65 47 75 69 64 65 2d  63 6f 6d 70 6c 69 61 6e  |leGuide-complian|
00000390  74 20 73 71 75 61 72 65  20 69 63 6f 6e 62 61 72  |t square iconbar|
000003a0  20 69 63 6f 6e 20 2d 20  77 69 74 68 20 74 65 78  | icon - with tex|
000003b0  74 20 2a 2f 0a 23 64 65  66 69 6e 65 20 49 42 41  |t */.#define IBA|
000003c0  52 54 5f 42 42 4f 58 5f  4d 49 4e 58 09 30 0a 23  |RT_BBOX_MINX.0.#|
000003d0  64 65 66 69 6e 65 20 49  42 41 52 54 5f 42 42 4f  |define IBART_BBO|
000003e0  58 5f 4d 49 4e 59 09 32  30 0a 23 64 65 66 69 6e  |X_MINY.20.#defin|
000003f0  65 20 49 42 41 52 54 5f  42 42 4f 58 5f 4d 41 58  |e IBART_BBOX_MAX|
00000400  58 09 36 38 0a 23 64 65  66 69 6e 65 20 49 42 41  |X.68.#define IBA|
00000410  52 54 5f 42 42 4f 58 5f  4d 41 58 59 09 38 34 0a  |RT_BBOX_MAXY.84.|
00000420  0a 2f 2a 20 23 44 65 66  69 6e 65 73 20 66 6f 72  |./* #Defines for|
00000430  20 6d 65 6e 75 20 63 72  65 61 74 69 6f 6e 20 2a  | menu creation *|
00000440  2f 0a 0a 23 64 65 66 69  6e 65 20 4d 45 4e 55 5f  |/..#define MENU_|
00000450  54 49 54 4c 45 46 4f 52  45 09 37 75 0a 23 64 65  |TITLEFORE.7u.#de|
00000460  66 69 6e 65 20 4d 45 4e  55 5f 54 49 54 4c 45 42  |fine MENU_TITLEB|
00000470  41 43 4b 09 32 75 20 3c  3c 20 38 0a 23 64 65 66  |ACK.2u << 8.#def|
00000480  69 6e 65 20 4d 45 4e 55  5f 57 4f 52 4b 46 4f 52  |ine MENU_WORKFOR|
00000490  45 09 37 75 20 3c 3c 20  31 36 0a 23 64 65 66 69  |E.7u << 16.#defi|
000004a0  6e 65 20 4d 45 4e 55 5f  57 4f 52 4b 42 41 43 4b  |ne MENU_WORKBACK|
000004b0  09 30 75 20 3c 3c 20 32  34 20 2f 2a 20 74 68 65  |.0u << 24 /* the|
000004c0  73 65 20 64 65 66 69 6e  65 20 63 6f 6c 6f 75 72  |se define colour|
000004d0  73 20 2a 2f 0a 23 64 65  66 69 6e 65 20 4d 45 4e  |s */.#define MEN|
000004e0  55 5f 54 49 43 4b 09 31  75 20 3c 3c 20 30 0a 23  |U_TICK.1u << 0.#|
000004f0  64 65 66 69 6e 65 20 4d  45 4e 55 5f 44 4f 54 54  |define MENU_DOTT|
00000500  45 44 09 31 75 20 3c 3c  20 31 0a 23 64 65 66 69  |ED.1u << 1.#defi|
00000510  6e 65 20 4d 45 4e 55 5f  4c 41 53 54 49 54 45 4d  |ne MENU_LASTITEM|
00000520  09 31 75 20 3c 3c 20 37  0a 23 64 65 66 69 6e 65  |.1u << 7.#define|
00000530  20 4d 45 4e 55 5f 53 48  41 44 45 44 09 31 75 20  | MENU_SHADED.1u |
00000540  3c 3c 20 32 32 0a 0a 23  64 65 66 69 6e 65 20 4d  |<< 22..#define M|
00000550  45 4e 55 49 54 45 4d 5f  46 4f 52 45 09 37 75 20  |ENUITEM_FORE.7u |
00000560  3c 3c 20 32 34 0a 23 64  65 66 69 6e 65 20 4d 45  |<< 24.#define ME|
00000570  4e 55 49 54 45 4d 5f 42  41 43 4b 09 30 75 20 3c  |NUITEM_BACK.0u <|
00000580  3c 20 32 38 0a 0a 23 64  65 66 69 6e 65 20 4d 45  |< 28..#define ME|
00000590  4e 55 5f 57 49 44 54 48  09 31 37 32 20 2f 2a 20  |NU_WIDTH.172 /* |
000005a0  63 6f 75 6c 64 20 62 65  20 6d 6f 72 65 20 69 6e  |could be more in|
000005b0  74 65 6c 6c 69 67 65 6e  74 2c 20 62 75 74 20 69  |telligent, but i|
000005c0  74 27 73 20 61 20 73 74  61 72 74 20 2a 2f 0a 23  |t's a start */.#|
000005d0  64 65 66 69 6e 65 20 4d  45 4e 55 5f 48 45 49 47  |define MENU_HEIG|
000005e0  48 54 09 34 34 20 2f 2a  20 62 79 20 6f 72 64 65  |HT.44 /* by orde|
000005f0  72 20 6f 66 20 74 68 65  20 53 74 79 6c 65 20 47  |r of the Style G|
00000600  75 69 64 65 20 2a 2f 0a  23 64 65 66 69 6e 65 20  |uide */.#define |
00000610  4d 45 4e 55 5f 56 45 52  54 47 41 50 09 30 0a 0a  |MENU_VERTGAP.0..|
00000620  2f 2a 20 4d 65 73 73 61  67 65 20 74 79 70 65 73  |/* Message types|
00000630  20 2a 2f 0a 0a 23 64 65  66 69 6e 65 20 4d 45 53  | */..#define MES|
00000640  53 41 47 45 5f 51 55 49  54 09 30 0a 23 64 65 66  |SAGE_QUIT.0.#def|
00000650  69 6e 65 20 4d 45 53 53  41 47 45 5f 44 41 54 41  |ine MESSAGE_DATA|
00000660  53 41 56 45 09 31 0a 23  64 65 66 69 6e 65 20 4d  |SAVE.1.#define M|
00000670  45 53 53 41 47 45 5f 44  41 54 41 53 41 56 45 41  |ESSAGE_DATASAVEA|
00000680  43 4b 09 32 0a 23 64 65  66 69 6e 65 20 4d 45 53  |CK.2.#define MES|
00000690  53 41 47 45 5f 44 41 54  41 4c 4f 41 44 09 33 0a  |SAGE_DATALOAD.3.|
000006a0  23 64 65 66 69 6e 65 20  4d 45 53 53 41 47 45 5f  |#define MESSAGE_|
000006b0  44 41 54 41 4c 4f 41 44  41 43 4b 09 34 0a 0a 2f  |DATALOADACK.4../|
000006c0  2a 20 53 69 7a 65 73 20  66 6f 72 20 62 6c 6f 63  |* Sizes for bloc|
000006d0  6b 20 64 65 66 69 6e 69  74 69 6f 6e 73 20 2a 2f  |k definitions */|
000006e0  0a 0a 23 64 65 66 69 6e  65 20 49 43 4f 4e 5f 42  |..#define ICON_B|
000006f0  4c 4f 43 4b 5f 53 49 5a  45 09 34 30 0a 0a 2f 2a  |LOCK_SIZE.40../*|
00000700  20 4f 74 68 65 72 20 6d  69 73 63 65 6c 6c 61 6e  | Other miscellan|
00000710  65 6f 75 73 20 64 65 66  69 6e 69 74 69 6f 6e 73  |eous definitions|
00000720  20 2a 2f 0a 0a 23 64 65  66 69 6e 65 20 53 41 56  | */..#define SAV|
00000730  45 44 52 41 47 5f 54 59  50 45 09 35 0a 0a 2f 2a  |EDRAG_TYPE.5../*|
00000740  20 53 74 72 75 63 74 75  72 65 20 64 65 66 69 6e  | Structure defin|
00000750  69 74 69 6f 6e 73 20 2a  2f 0a 0a 74 79 70 65 64  |itions */..typed|
00000760  65 66 20 73 74 72 75 63  74 20 77 69 6e 64 6f 77  |ef struct window|
00000770  5f 64 61 74 61 20 7b 0a  09 69 6e 74 09 77 69 6e  |_data {..int.win|
00000780  5f 68 61 6e 64 6c 65 3b  0a 09 75 6e 73 69 67 6e  |_handle;..unsign|
00000790  65 64 20 63 68 61 72 09  2a 62 75 66 66 65 72 3b  |ed char.*buffer;|
000007a0  0a 09 75 6e 73 69 67 6e  65 64 20 63 68 61 72 09  |..unsigned char.|
000007b0  2a 77 6f 72 6b 73 70 61  63 65 3b 0a 09 63 68 61  |*workspace;..cha|
000007c0  72 20 2a 77 69 6e 5f 6e  61 6d 65 3b 0a 7d 20 77  |r *win_name;.} w|
000007d0  69 6e 64 6f 77 5f 64 61  74 61 3b 0a 0a 74 79 70  |indow_data;..typ|
000007e0  65 64 65 66 20 73 74 72  75 63 74 20 70 6f 69 6e  |edef struct poin|
000007f0  74 65 72 5f 64 61 74 61  20 7b 0a 09 6c 6f 6e 67  |ter_data {..long|
00000800  20 69 6e 74 09 6d 6f 75  73 65 5f 78 3b 0a 09 6c  | int.mouse_x;..l|
00000810  6f 6e 67 20 69 6e 74 09  6d 6f 75 73 65 5f 79 3b  |ong int.mouse_y;|
00000820  0a 09 6c 6f 6e 67 20 69  6e 74 09 62 75 74 74 6f  |..long int.butto|
00000830  6e 5f 73 74 61 74 65 3b  0a 09 6c 6f 6e 67 20 69  |n_state;..long i|
00000840  6e 74 09 77 69 6e 5f 68  61 6e 64 6c 65 3b 0a 09  |nt.win_handle;..|
00000850  6c 6f 6e 67 20 69 6e 74  09 69 63 6f 6e 5f 68 61  |long int.icon_ha|
00000860  6e 64 6c 65 3b 0a 7d 20  70 6f 69 6e 74 65 72 5f  |ndle;.} pointer_|
00000870  64 61 74 61 3b 0a 0a 74  79 70 65 64 65 66 20 73  |data;..typedef s|
00000880  74 72 75 63 74 20 6d 65  6e 75 5f 65 6c 65 6d 65  |truct menu_eleme|
00000890  6e 74 20 7b 0a 09 6c 6f  6e 67 20 69 6e 74 20 66  |nt {..long int f|
000008a0  6c 61 67 73 3b 0a 09 6c  6f 6e 67 20 69 6e 74 20  |lags;..long int |
000008b0  73 75 62 6d 65 6e 75 3b  0a 09 6c 6f 6e 67 20 69  |submenu;..long i|
000008c0  6e 74 20 6d 65 6e 75 5f  69 63 6f 6e 66 6c 61 67  |nt menu_iconflag|
000008d0  73 3b 0a 09 63 68 61 72  20 6d 65 6e 75 5f 74 65  |s;..char menu_te|
000008e0  78 74 5b 31 32 5d 3b 0a  09 73 74 72 75 63 74 20  |xt[12];..struct |
000008f0  6d 65 6e 75 5f 65 6c 65  6d 65 6e 74 20 2a 6e 65  |menu_element *ne|
00000900  78 74 5f 6d 65 6e 75 65  6c 65 6d 3b 0a 7d 20 6d  |xt_menuelem;.} m|
00000910  65 6e 75 5f 65 6c 65 6d  65 6e 74 3b 0a 0a 74 79  |enu_element;..ty|
00000920  70 65 64 65 66 20 73 74  72 75 63 74 20 6d 65 6e  |pedef struct men|
00000930  75 5f 64 61 74 61 20 7b  0a 09 63 68 61 72 20 74  |u_data {..char t|
00000940  69 74 6c 65 5b 31 32 5d  3b 0a 09 69 6e 74 20 73  |itle[12];..int s|
00000950  69 7a 65 3b 0a 09 6c 6f  6e 67 20 69 6e 74 20 63  |ize;..long int c|
00000960  6f 6c 6f 75 72 73 3b 0a  09 6c 6f 6e 67 20 69 6e  |olours;..long in|
00000970  74 20 77 69 64 74 68 3b  0a 09 6c 6f 6e 67 20 69  |t width;..long i|
00000980  6e 74 20 68 65 69 67 68  74 3b 0a 09 6c 6f 6e 67  |nt height;..long|
00000990  20 69 6e 74 20 76 65 72  74 5f 67 61 70 3b 0a 09  | int vert_gap;..|
000009a0  75 6e 73 69 67 6e 65 64  20 63 68 61 72 2a 20 64  |unsigned char* d|
000009b0  61 74 61 62 6c 6f 63 6b  3b 0a 09 6d 65 6e 75 5f  |atablock;..menu_|
000009c0  65 6c 65 6d 65 6e 74 20  2a 6e 65 78 74 5f 6d 65  |element *next_me|
000009d0  6e 75 65 6c 65 6d 3b 0a  7d 20 6d 65 6e 75 5f 64  |nuelem;.} menu_d|
000009e0  61 74 61 3b 0a 0a 2f 2a  20 50 72 6f 74 6f 74 79  |ata;../* Prototy|
000009f0  70 69 6e 67 20 2a 2f 0a  65 78 74 65 72 6e 20 69  |ping */.extern i|
00000a00  6e 74 09 61 75 5f 69 6e  69 74 69 61 6c 69 73 65  |nt.au_initialise|
00000a10  28 69 6e 74 2c 20 63 68  61 72 20 2a 2c 20 6c 6f  |(int, char *, lo|
00000a20  6e 67 20 69 6e 74 5b 5d  29 3b 0a 65 78 74 65 72  |ng int[]);.exter|
00000a30  6e 20 76 6f 69 64 09 61  75 5f 63 6c 6f 73 65 64  |n void.au_closed|
00000a40  6f 77 6e 28 69 6e 74 29  3b 0a 65 78 74 65 72 6e  |own(int);.extern|
00000a50  20 69 6e 74 09 61 75 5f  63 72 65 61 74 65 5f 69  | int.au_create_i|
00000a60  63 6f 6e 62 61 72 5f 69  63 6f 6e 28 69 6e 74 2c  |conbar_icon(int,|
00000a70  20 75 6e 73 69 67 6e 65  64 20 6c 6f 6e 67 20 69  | unsigned long i|
00000a80  6e 74 2c 20 75 6e 73 69  67 6e 65 64 20 6c 6f 6e  |nt, unsigned lon|
00000a90  67 20 69 6e 74 2c 20 63  68 61 72 20 2a 29 3b 0a  |g int, char *);.|
00000aa0  65 78 74 65 72 6e 20 76  6f 69 64 09 61 75 5f 77  |extern void.au_w|
00000ab0  6f 72 64 74 6f 62 79 74  65 28 75 6e 73 69 67 6e  |ordtobyte(unsign|
00000ac0  65 64 20 6c 6f 6e 67 20  69 6e 74 2c 20 75 6e 73  |ed long int, uns|
00000ad0  69 67 6e 65 64 20 63 68  61 72 5b 5d 2c 20 69 6e  |igned char[], in|
00000ae0  74 29 3b 0a 65 78 74 65  72 6e 20 75 6e 73 69 67  |t);.extern unsig|
00000af0  6e 65 64 20 6c 6f 6e 67  20 69 6e 74 09 61 75 5f  |ned long int.au_|
00000b00  62 79 74 65 74 6f 77 6f  72 64 28 75 6e 73 69 67  |bytetoword(unsig|
00000b10  6e 65 64 20 63 68 61 72  5b 5d 2c 20 69 6e 74 29  |ned char[], int)|
00000b20  3b 0a 65 78 74 65 72 6e  20 76 6f 69 64 09 61 75  |;.extern void.au|
00000b30  5f 6f 70 65 6e 74 65 6d  70 6c 61 74 65 28 63 68  |_opentemplate(ch|
00000b40  61 72 20 2a 29 3b 0a 65  78 74 65 72 6e 20 76 6f  |ar *);.extern vo|
00000b50  69 64 09 61 75 5f 63 6c  6f 73 65 74 65 6d 70 6c  |id.au_closetempl|
00000b60  61 74 65 28 76 6f 69 64  29 3b 0a 65 78 74 65 72  |ate(void);.exter|
00000b70  6e 20 69 6e 74 09 61 75  5f 6c 6f 61 64 74 65 6d  |n int.au_loadtem|
00000b80  70 6c 61 74 65 28 63 68  61 72 20 2a 2c 20 77 69  |plate(char *, wi|
00000b90  6e 64 6f 77 5f 64 61 74  61 20 2a 2c 20 69 6e 74  |ndow_data *, int|
00000ba0  29 3b 0a 65 78 74 65 72  6e 20 69 6e 74 09 61 75  |);.extern int.au|
00000bb0  5f 72 65 70 6f 72 74 5f  65 72 72 6f 72 28 69 6e  |_report_error(in|
00000bc0  74 2c 20 63 68 61 72 20  2a 2c 20 69 6e 74 2c 20  |t, char *, int, |
00000bd0  63 68 61 72 20 2a 29 3b  0a 65 78 74 65 72 6e 20  |char *);.extern |
00000be0  76 6f 69 64 09 61 75 5f  6f 70 65 6e 77 69 6e 5f  |void.au_openwin_|
00000bf0  66 72 6f 6d 5f 74 65 6d  70 6c 61 74 65 64 61 74  |from_templatedat|
00000c00  61 28 77 69 6e 64 6f 77  5f 64 61 74 61 20 2a 2c  |a(window_data *,|
00000c10  20 6c 6f 6e 67 20 69 6e  74 29 3b 0a 65 78 74 65  | long int);.exte|
00000c20  72 6e 20 69 6e 74 09 61  75 5f 77 69 6d 70 5f 70  |rn int.au_wimp_p|
00000c30  6f 6c 6c 28 69 6e 74 2c  20 75 6e 73 69 67 6e 65  |oll(int, unsigne|
00000c40  64 20 63 68 61 72 20 2a  29 3b 0a 65 78 74 65 72  |d char *);.exter|
00000c50  6e 20 76 6f 69 64 09 61  75 5f 69 63 6f 6e 5f 74  |n void.au_icon_t|
00000c60  65 78 74 5f 63 68 61 6e  67 65 28 63 68 61 72 20  |ext_change(char |
00000c70  2a 2c 20 75 6e 73 69 67  6e 65 64 20 6c 6f 6e 67  |*, unsigned long|
00000c80  20 69 6e 74 2c 20 75 6e  73 69 67 6e 65 64 20 6c  | int, unsigned l|
00000c90  6f 6e 67 20 69 6e 74 29  3b 0a 65 78 74 65 72 6e  |ong int);.extern|
00000ca0  20 63 68 61 72 09 2a 61  75 5f 67 65 74 5f 70 74  | char.*au_get_pt|
00000cb0  72 5f 74 6f 5f 69 63 6f  6e 74 65 78 74 28 75 6e  |r_to_icontext(un|
00000cc0  73 69 67 6e 65 64 20 6c  6f 6e 67 20 69 6e 74 2c  |signed long int,|
00000cd0  20 75 6e 73 69 67 6e 65  64 20 6c 6f 6e 67 20 69  | unsigned long i|
00000ce0  6e 74 29 3b 0a 65 78 74  65 72 6e 20 76 6f 69 64  |nt);.extern void|
00000cf0  09 61 75 5f 62 75 69 6c  64 6d 65 6e 75 28 63 68  |.au_buildmenu(ch|
00000d00  61 72 20 2a 2c 20 6d 65  6e 75 5f 64 61 74 61 20  |ar *, menu_data |
00000d10  2a 29 3b 0a 65 78 74 65  72 6e 20 76 6f 69 64 09  |*);.extern void.|
00000d20  61 75 5f 61 64 64 74 6f  6d 65 6e 75 28 63 68 61  |au_addtomenu(cha|
00000d30  72 20 2a 2c 20 6c 6f 6e  67 20 69 6e 74 2c 20 6c  |r *, long int, l|
00000d40  6f 6e 67 20 69 6e 74 2c  20 6c 6f 6e 67 20 69 6e  |ong int, long in|
00000d50  74 2c 20 6d 65 6e 75 5f  64 61 74 61 20 2a 29 3b  |t, menu_data *);|
00000d60  0a 65 78 74 65 72 6e 20  76 6f 69 64 09 61 75 5f  |.extern void.au_|
00000d70  63 72 65 61 74 65 6d 65  6e 75 28 6d 65 6e 75 5f  |createmenu(menu_|
00000d80  64 61 74 61 20 2a 29 3b  0a 65 78 74 65 72 6e 20  |data *);.extern |
00000d90  76 6f 69 64 09 61 75 5f  6f 70 65 6e 6d 65 6e 75  |void.au_openmenu|
00000da0  28 6d 65 6e 75 5f 64 61  74 61 20 2a 2c 20 69 6e  |(menu_data *, in|
00000db0  74 2c 20 69 6e 74 29 3b  0a 65 78 74 65 72 6e 20  |t, int);.extern |
00000dc0  76 6f 69 64 09 61 75 5f  69 63 6f 6e 5f 67 65 74  |void.au_icon_get|
00000dd0  5f 74 65 78 74 28 63 68  61 72 20 2a 2c 20 75 6e  |_text(char *, un|
00000de0  73 69 67 6e 65 64 20 6c  6f 6e 67 20 69 6e 74 2c  |signed long int,|
00000df0  20 75 6e 73 69 67 6e 65  64 20 6c 6f 6e 67 20 69  | unsigned long i|
00000e00  6e 74 29 3b 0a 65 78 74  65 72 6e 20 76 6f 69 64  |nt);.extern void|
00000e10  09 61 75 5f 6c 6f 73 65  63 61 72 65 74 28 76 6f  |.au_losecaret(vo|
00000e20  69 64 29 3b 0a 65 78 74  65 72 6e 20 76 6f 69 64  |id);.extern void|
00000e30  09 61 75 5f 64 72 61 67  62 6f 78 28 75 6e 73 69  |.au_dragbox(unsi|
00000e40  67 6e 65 64 20 6c 6f 6e  67 20 69 6e 74 2c 20 75  |gned long int, u|
00000e50  6e 73 69 67 6e 65 64 20  6c 6f 6e 67 20 69 6e 74  |nsigned long int|
00000e60  29 3b 0a 65 78 74 65 72  6e 20 76 6f 69 64 09 61  |);.extern void.a|
00000e70  75 5f 67 65 74 69 63 6f  6e 69 6e 66 6f 28 75 6e  |u_geticoninfo(un|
00000e80  73 69 67 6e 65 64 20 6c  6f 6e 67 20 69 6e 74 2c  |signed long int,|
00000e90  20 75 6e 73 69 67 6e 65  64 20 6c 6f 6e 67 20 69  | unsigned long i|
00000ea0  6e 74 2c 20 75 6e 73 69  67 6e 65 64 20 63 68 61  |nt, unsigned cha|
00000eb0  72 20 2a 29 3b 0a 65 78  74 65 72 6e 20 76 6f 69  |r *);.extern voi|
00000ec0  64 09 61 75 5f 67 65 74  70 6f 69 6e 74 65 72 69  |d.au_getpointeri|
00000ed0  6e 66 6f 28 70 6f 69 6e  74 65 72 5f 64 61 74 61  |nfo(pointer_data|
00000ee0  20 2a 29 3b 0a 65 78 74  65 72 6e 20 76 6f 69 64  | *);.extern void|
00000ef0  09 61 75 5f 64 61 74 61  73 61 76 65 28 70 6f 69  |.au_datasave(poi|
00000f00  6e 74 65 72 5f 64 61 74  61 2c 20 69 6e 74 2c 20  |nter_data, int, |
00000f10  69 6e 74 2c 20 63 68 61  72 2a 29 3b 0a 23 65 6e  |int, char*);.#en|
00000f20  64 69 66 0a                                       |dif.|
00000f24