home *** CD-ROM | disk | FTP | other *** search
-
- The HASWIN window library.
- ===========================
- Copyright H.A. Shaw 1990.
- ===========================
-
- Palettes under the HASWIN system.
- ----------------------------------------
-
- HASWIN provides a palette structure to store WIMP colour palettes.
- The colour system is, at present, very simple. HASWIN only uses the WIMPs
- 16 standard colours and cannot use more.
-
-
- The HASWIN palette is a data structure created and maintained by
- the HASWIN routines. A palette contains a single field that holds a
- 16 colour palette.
-
- int colour[20];
- - 20 integers that hold the 20 colours used by the WIMP.
- The different colours are kept in the array "colour"at the
- offsets below...
- - 0-15 WIMP colours 0 to 15.
- - 16 WIMP border colour.
- - 17 mouse pointer colour 1
- - 18 mouse pointer colour 2
- - 19 mouse pointer colour 3
-
- palette *haswin_getpalette(palette *pal);
- - Get the WIMP palette and fill in the fields in the palette "pal".
- If "pal" is 0 then create a new palette.
- - Returns "pal", or a pointer to the newly created palette, or
- HASWIN_FALSE on any error.
-
- void haswin_setpalette(palette *pal);
- - Set the WIMP palette to the palette "pal".
-
-