4 * [Generated from win, 25 September 1996]
7 #if !defined(__CC_NORCROFT) || !defined(__arm)
8 #error You must use the Norcroft ARM Compiler for Sapphire programs
11 #pragma include_only_once
12 #pragma force_top_level
21 /*----- Overview ----------------------------------------------------------*
26 * win_removeEventHandler
30 * win_removeUnknownHandler
34 /* --- win_eventHandler --- *
36 * On entry: R0 == window handle
37 * R1 == pointer to routine to call
38 * R2 == R10 value to call routine with
39 * R3 == R12 value to call routine with
41 * On exit: May return an error
43 * Use: Adds a routine to the event handler list. Later added
44 * routines are called first. The event handing routine
45 * must preserve all the registers, but may alter the carry
46 * flag. If it returns with carry set, then no more event
47 * handlers, OR post-filters, will be called.
50 extern routine win_eventHandler;
52 /* --- win_removeEventHandler --- *
54 * On entry: R0 == window handle
55 * R1 == pointer to routine called
56 * R2 == R10 value routine is called with
57 * R3 == R12 value routine is called with
61 * Use: Removes a routine to the event handler list.
64 extern routine win_removeEventHandler;
66 /* --- win_swapWindow --- *
68 * On entry: R0 == old window handle
69 * R1 == new window handle
73 * Use: Searches for all the event handlers for window R0, and
74 * changes the window handle for R1. This is designed for
75 * situations in wihich a window has been deleted and
79 extern routine win_swapWindow;
81 /* --- win_windowDeleted --- *
83 * On entry: R0 == window handle
87 * Use: Removes all the event handlers associated with the given
88 * window handle. It is intended to be used when a window
92 extern routine win_windowDeleted;
94 /* --- win_unknownHandler --- *
96 * On entry: R0 == pointer to routine to call
97 * R1 == R4 value to call routine with
98 * R2 == R10 value to call routine with
99 * R3 == R12 value to call routine with
101 * On exit: May return an error
103 * Use: Adds a rountine to the event handler list. Later added
104 * routines are called first. The event handing routine
105 * must preserve all the registers, but may alter the carry
106 * flag. If it returns with carry set, then no more event
107 * handlers, OR post-filters, will be called.
110 extern routine win_unknownHandler;
112 /* --- win_removeUnknownHandler --- *
114 * On entry: R0 == pointer to routine called
115 * R1 == R4 value routine is called with
116 * R2 == R10 value routine is called with
117 * R3 == R12 value routine is called with
121 * Use: Removes a routine to the unknown handler list.
124 extern routine win_removeUnknownHandler;
126 /* --- win_init --- *
132 * Use: Initialises the win system.
135 extern routine win_init;
137 /*----- That's all, folks -------------------------------------------------*/