home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / xicon05.zip / icondata.h < prev    next >
C/C++ Source or Header  |  1993-05-09  |  2KB  |  56 lines

  1. /* This file is icondata.h (part of XIcon)
  2.  *
  3.  * Copyright (C) 1993 by Norman Walsh
  4.  *
  5.  *   This program is free software; you can redistribute it and/or modify
  6.  *   it under the terms of the GNU General Public License as published by
  7.  *   the Free Software Foundation; either version 2 of the License, or
  8.  *   (at your option) any later version.
  9.  *
  10.  *   This program is distributed in the hope that it will be useful,
  11.  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  *   GNU General Public License for more details.
  14.  *
  15.  *   You should have received a copy of the GNU General Public License
  16.  *   along with this program; if not, write to the Free Software
  17.  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  ************************************************************************/
  19.  
  20. #ifndef ICONDATA_H
  21. #define ICONDATA_H
  22.  
  23. #ifndef SKIPTYPES
  24. typedef unsigned short int USHORT;
  25. typedef unsigned char      BYTE;
  26. typedef unsigned long int  ULONG;
  27. typedef short int          SHORT;
  28. typedef int                LONG;
  29. #endif /* not SKIPTYPES */
  30.  
  31. enum iconFileType { UnkFile, MacIcon, OS2Icon12, OS2Icon20, WinIcon, XBMicon };
  32.  
  33. typedef struct _rgb_info {
  34.   BYTE blue;
  35.   BYTE green;
  36.   BYTE red;
  37. } rgb_info;
  38.  
  39. typedef struct _bitmap_info {
  40.   ULONG width, height;
  41.   ULONG bits_per_pixel;
  42.   ULONG size;
  43.   ULONG bytewidth;
  44.   ULONG num_colors;
  45.   rgb_info *palette;
  46.   BYTE  *map;
  47. } bitmap_info;
  48.  
  49. typedef struct _generic_info {
  50.   bitmap_info and_map;
  51.   bitmap_info xor_map;
  52.   bitmap_info clr_map;
  53. } generic_info;
  54.  
  55. #endif /* not ICONDATA_H */
  56.