Initial revision
[ssr] / StraySrc / Sculptrix / sculptrix / sh / slab
1 ;
2 ; slab.sh
3 ;
4 ; Icon slabbing for Sculptrix
5 ;
6 ; © 1995-1998 Straylight
7 ;
8
9 ;----- Licensing note -------------------------------------------------------
10 ;
11 ; This file is part of Straylight's Sculptrix.
12 ;
13 ; Sculptrix 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)
16 ; any later version.
17 ;
18 ; Sculptrix 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.
22 ;
23 ; You should have received a copy of the GNU General Public License
24 ; along with Sculptrix. If not, write to the Free Software Foundation,
25 ; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26
27 ;----- Overview -------------------------------------------------------------
28 ;
29 ; Functions provided:
30 ;
31 ; slab_doSlab
32 ; slab_slab
33 ; slab_unslab
34 ; slab_colour
35
36 [ :LNOT::DEF:slab__dfn
37 GBLL slab__dfn
38
39 ; --- slab_doSlab ---
40 ;
41 ; On entry: R0 == window handle
42 ; R1 == icon handle
43 ; R2 == new background colour for icon
44 ;
45 ; On exit: R2 == old background colour, or -1
46 ;
47 ; Use: Low-level slabbing operation.
48
49 IMPORT slab_doSlab
50
51 ; --- slab_slab ---
52 ;
53 ; On entry: R0 == window handle
54 ; R1 == icon handle
55 ; R2 == pointer to slab descriptor block
56 ;
57 ; On exit: --
58 ;
59 ; Use: Slabs an icon in, and records information for unslabbing.
60
61 IMPORT slab_slab
62
63 ; --- slab_unslab ---
64 ;
65 ; On entry: R2 == pointer to descriptor block
66 ;
67 ; On exit: --
68 ;
69 ; Use: Unslabs an icon which was slabbed.
70
71 IMPORT slab_unslab
72
73 ; --- slab_colour ---
74 ;
75 ; On entry: --
76 ;
77 ; On exit: R2 == slab colour
78 ;
79 ; Use: Returns the current slabbing colour.
80
81 IMPORT slab_colour
82
83 ]
84
85 ;----- That's all, folks ----------------------------------------------------
86
87 END