home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / clib / progs / haswinlib / info / palette < prev    next >
Encoding:
Text File  |  1991-02-04  |  1.4 KB  |  38 lines

  1.  
  2.                       The HASWIN window library.
  3.                      ===========================
  4.                       Copyright H.A. Shaw 1990.
  5.                      ===========================
  6.  
  7. Palettes under the HASWIN system.
  8. ----------------------------------------
  9.  
  10.         HASWIN provides a palette structure to store WIMP colour palettes.
  11. The colour system is, at present, very simple.  HASWIN only uses the WIMPs
  12. 16 standard colours and cannot use more.
  13.  
  14.  
  15.         The HASWIN palette is a data structure created and maintained by
  16. the HASWIN routines.  A palette contains a single field that holds a
  17. 16 colour palette.
  18.  
  19. int             colour[20];
  20.         - 20 integers that hold the 20 colours used by the WIMP.
  21.           The different colours are kept in the array "colour"at the
  22.           offsets below...
  23.           - 0-15   WIMP colours 0 to 15.
  24.           - 16     WIMP border colour.
  25.           - 17     mouse pointer colour 1
  26.           - 18     mouse pointer colour 2
  27.           - 19     mouse pointer colour 3
  28.  
  29. palette *haswin_getpalette(palette *pal);
  30.         - Get the WIMP palette and fill in the fields in the palette "pal".
  31.           If "pal" is 0 then create a new palette.
  32.         - Returns "pal", or a pointer to the newly created palette, or
  33.           HASWIN_FALSE on any error.
  34.  
  35. void    haswin_setpalette(palette *pal);
  36.         - Set the WIMP palette to the palette "pal".
  37.  
  38.