4 * Loading and manipulation of window templates
6 * © 1994-1998 Straylight
9 /*----- Licensing note ----------------------------------------------------*
11 * This file is part of Straylight's Steel library.
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)
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.
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.
31 /* --- Acorn stupidly decided to make this public --- */
33 typedef struct template__str
35 struct template__str *next;
44 /* --- The actual functions --- */
47 * template *template_copy(template *from)
50 * Copies a template field-for-field and fixes up new indirected data for
54 template *template_copy(template *from);
57 * BOOL template_readfile(char *name)
60 * Loads the template file named into memory, and sorts out all its
63 * Template entries with strange identifiers are ignored. Other entry
64 * types may be supported later.
67 * char *name == the name of the template file to load (a resource file)
70 * FALSE if the file contained no sprite icons. No, I don't understand
71 * the use of this either. It's not my problem though. I just write the
75 BOOL template_readfile(char *file);
78 * void template_init(void)
81 * Loads the application's `Templates' file.
84 void template_init(void);
87 * void template_use_fancyfonts(void)
90 * Does absolutely nothing at all. Fancy font support happens anyway.
93 void template_use_fancyfonts(void);
96 * BOOL template_exists(char *name)
99 * Returns TRUE if the named template is known at the moment, or FALSE
103 BOOL template_exists(char *name);
106 * template *template_find(char *name)
109 * Locates a named template and returns a pointer to it
112 template *template_find(char *name);
115 * wimp_wind *template_syshandle(char *name)
118 * Not very much, if the truth be known. It returns a pointer to a named
122 wimp_wind *template_syshandle(char *name);
125 * BOOL template_loaded(void)
128 * Returns TRUE if we have templates on board.
131 BOOL template_loaded(void);