chiark / gitweb /
Initial revision
[ssr] / StraySrc / Libraries / Steel / h / sculptrix
1 /*
2  * sculptrix.h
3  *
4  * Interface to sculptrix SWIs
5  *
6  * © 1994-1998 Straylight
7  */
8
9 /*----- Licensing note ----------------------------------------------------*
10  *
11  * This file is part of Straylight's Steel library.
12  *
13  * Steel 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  * Steel 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 Steel.  If not, write to the Free Software Foundation,
25  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26  */
27
28 #ifndef __sculptrix_h
29 #define __sculptrix_h
30
31 #ifndef __os_h
32   #include "os.h"
33 #endif
34
35 #ifndef __wimp_h
36   #include "wimp.h"
37 #endif
38
39 typedef struct sculptrix_slabDescriptor
40 {
41   wimp_w w;
42   wimp_i i;
43   int colour;
44   int time;
45 }
46 sculptrix_slabDescriptor;
47
48 os_error *sculptrix_redrawWindow(wimp_redrawstr *r);
49 os_error *sculptrix_doSlab(wimp_w w,wimp_i i,int colour,int *old);
50 os_error *sculptrix_slabIcon(wimp_w w,wimp_i i,sculptrix_slabDescriptor *d);
51 os_error *sculptrix_unslabIcon(sculptrix_slabDescriptor *d);
52 BOOL sculptrix_boundingBox(wimp_icon *i);
53 os_error *sculptrix_plotIcon(wimp_icon *i,wimp_redrawstr *r);
54 os_error *sculptrix_plotGroupBox(wimp_icon *i,
55                                  wimp_redrawstr *r,
56                                  int type,
57                                  char *titleString);
58 os_error *sculptrix_setSpriteArea(sprite_area *s);
59 os_error *sculptrix_updateIcon(wimp_w w,wimp_i i);
60 int sculptrix_slabColour(void);
61
62 #endif