home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / desklib / examples / DeskLib / Examples / Widget5 / !Widget5 / h / LoadSave < prev    next >
Encoding:
Text File  |  1995-05-12  |  1.3 KB  |  38 lines

  1. /************************************************************************
  2.  *                                                                      *
  3.  *        File: LoadSave.h                                              *
  4.  *                                                                      *
  5.  *     Purpose: Provides routines to load and save images as Widget5    *
  6.  *              (text), Widget4 (simple byte per pixel) and Sprite      *
  7.  *              format.                                                 *
  8.  *                                                                      *
  9.  ************************************************************************/
  10.  
  11.  /*
  12.   * filetype number for files that belong to program
  13.   */
  14. #define filetype_WIDGET5 0x042
  15. #define filetype_WIDGET4 0x041
  16.  
  17.  /*
  18.   * initialisation to be done on startup
  19.   */
  20. extern void LoadSave_Init(void);
  21.  
  22.  /*
  23.   * checks to see if the prog was started up by doubleclicking on a file and
  24.   * so loads this file
  25.   */
  26. extern void LoadSave_CheckStartupLoad(int argc, char *argv[]);
  27.  
  28.  /*
  29.   * sets the number of the image bank being saved, and the number of greys for the image
  30.   */
  31. extern void LoadSave_SetSaveBank(int imageno, int numbergreys);
  32.  
  33.  /*
  34.   * call this to save the file after setting up the image bank
  35.   */
  36. extern void LoadSave_savefile(char *filename, int filetype, BOOL safe);
  37.  
  38.