4 * [Generated from ibicon, 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 ----------------------------------------------------------*
32 /* --- ibicon_create --- *
34 * On entry: R0 == pointer to sprite name
35 * R1 == pointer to text buffer (must be writable if you
36 * intend to change the text)
37 * R2 == icon bar position indicator (`window handle')
38 * R3 == icon bar priority/icon handle
39 * R4 == pointer to event handler
40 * R5 == value to pass in R10
41 * R6 == value to pass in R12
43 * On exit: R0 == ibicon icon handle
46 * Use: Places an icon on the icon bar. Your handler is called when
47 * an event occurs on the icon. On entry to the handler, R10
48 * and R12 are set up as for above, R0 is the event type, and
49 * R1 is the ibicon pointer.
52 extern routine ibicon_create;
54 /* --- ibicon_changeSprite --- *
56 * On entry: R0 == ibicon pointer
57 * R1 == pointer to sprite name
61 * Use: Changes the sprite of the ibicon passed to it.
64 extern routine ibicon_changeSprite;
66 /* --- ibicon_changeText --- *
68 * On entry: R0 == ibicon pointer
69 * R1 == pointer to new text
73 * Use: Changes the sprite of the ibicon passed to it.
76 extern routine ibicon_changeText;
78 /* --- ibicon_remove --- *
80 * On entry: R0 == ibicon icon handle
84 * Use: Removes the given icon from the icon bar.
87 extern routine ibicon_remove;
89 /* --- ibicon_init --- *
95 * Use: Initialises the ibicon unit.
98 extern routine ibicon_init;
100 /*----- Event types -------------------------------------------------------*/
102 #define ibEvent_select 0
103 #define ibEvent_menu 1
104 #define ibEvent_adjust 2
105 #define ibEvent_save 3
106 #define ibEvent_load 4
107 #define ibEvent_help 5
109 /*----- That's all, folks -------------------------------------------------*/