Initial revision
[ssr] / StraySrc / Sculptrix / sculptrix / sh / plot
1 ;
2 ; plot.sh
3 ;
4 ; Plots border types
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 ; plot_border
32 ; plot_group
33 ; plot_tnsBBox
34
35 [ :LNOT::DEF:plot__dfn
36 GBLL plot__dfn
37
38 ; --- plot_border ---
39 ;
40 ; On entry: R0 == pointer to border type
41 ; R1 == pointer to icon block
42 ; R2,R3 == window origin position
43 ;
44 ; On exit: May return an error
45 ;
46 ; Use: Plots the given border type.
47
48 IMPORT plot_border
49
50 ; --- plot_group ---
51 ;
52 ; On entry: R0 == pointer to border type
53 ; R1 == pointer to icon block
54 ; R2,R3 == window origin position
55 ; R6 == pointer to group title
56 ;
57 ; On exit: May return an error
58 ;
59 ; Use: Plots a group box.
60
61 IMPORT plot_group
62
63 ; --- plot_tnsBBox ---
64 ;
65 ; On entry: R1 == pointer to an icon block
66 ;
67 ; On exit: CS if sprite found, and
68 ; R0-R3 == bounding box of icon
69 ; R4 == icon flags word (modified)
70 ; else CC and registers preserved
71 ;
72 ; Use: Works out where the text of the icon ought to be. (Actually
73 ; the box returned is too wide, although this will probably
74 ; be good enough for most purposes.)
75
76 IMPORT plot_tnsBBox
77
78 ]
79
80 ;----- That's all, folks ----------------------------------------------------
81
82 END