4 * [Generated from gallery, 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 ----------------------------------------------------------*
25 * gallery_eventHandler
31 /* --- gallery_eventHandler --- *
33 * On entry: R0 == viewer handle
34 * R1 == pointer to handler routine
35 * R2 == R10 value to pass to handler
36 * R3 == R12 value to pass to handler
40 * Use: Sets up an event handler for the viewer, and adds in
41 * gallery's own special processing for background drawing.
44 extern routine gallery_eventHandler;
46 /* --- gallery_drawBox --- *
48 * On entry: R0-R3 == window relative coords of box to plot
52 * Use: Draws a box to indicate tht this item hasn't been
53 * displayed yet. Use this routine to give a consistant
54 * look to applications which use the gallery.
57 extern routine gallery_drawBox;
59 /* --- gallery_removeBox --- *
61 * On entry: R0-R3 == window relative coords of box to remove
65 * Use: Removes a previously draw temporary box. It is assumed that
66 * the background colour of the viewere is 1.
69 extern routine gallery_removeBox;
71 /* --- gallery_reset --- *
73 * On entry: R0 == viewer handle
77 * Use: Resets all the icons in the gallery to their `undrawn' state.
78 * Use this before opening the window etc.
81 extern routine gallery_reset;
83 /*----- That's all, folks -------------------------------------------------*/