4 ; Background-drawing viewers
6 ; © 1995-1998 Straylight
9 ;----- Licensing note -------------------------------------------------------
11 ; This file is part of Straylight's Sapphire library.
13 ; Sapphire is free software; you can redistribute it and/or modify
14 ; it under the terms of the GNU General Public License as published by
15 ; the Free Software Foundation; either version 2, or (at your option)
18 ; Sapphire is distributed in the hope that it will be useful,
19 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ; GNU General Public License for more details.
23 ; You should have received a copy of the GNU General Public License
24 ; along with Sapphire. If not, write to the Free Software Foundation,
25 ; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 ;----- Overview -------------------------------------------------------------
31 ; gallery_eventHandler
36 [ :LNOT::DEF:gallery__dfn
39 ; --- gallery_eventHandler ---
41 ; On entry: R0 == viewer handle
42 ; R1 == pointer to handler routine
43 ; R2 == R10 value to pass to handler
44 ; R3 == R12 value to pass to handler
48 ; Use: Sets up an event handler for the viewer, and adds in
49 ; gallery's own special processing for background drawing.
51 IMPORT gallery_eventHandler
53 ; --- gallery_drawBox ---
55 ; On entry: R0-R3 == window relative coords of box to plot
59 ; Use: Draws a box to indicate tht this item hasn't been
60 ; displayed yet. Use this routine to give a consistant
61 ; look to applications which use the gallery.
63 IMPORT gallery_drawBox
65 ; --- gallery_removeBox ---
67 ; On entry: R0-R3 == window relative coords of box to remove
71 ; Use: Removes a previously draw temporary box. It is assumed that
72 ; the background colour of the viewere is 1.
74 IMPORT gallery_removeBox
76 ; --- gallery_reset ---
78 ; On entry: R0 == viewer handle
82 ; Use: Resets all the icons in the gallery to their `undrawn' state.
83 ; Use this before opening the window etc.
89 ;----- That's all, folks ----------------------------------------------------