home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / palmos / progect-src-0.20.tar.gz / progect-src-0.20.tar / progect-0.20 / icon.h < prev    next >
C/C++ Source or Header  |  2000-10-26  |  1KB  |  59 lines

  1. /* -*-Mode:C; tab-width:4; indent-tabs-mode:t; c-file-style:"bsd";-*- */
  2. //
  3. // Project : progect
  4. // Desc.   : Icon support code.
  5. // $Id: icon.h,v 1.1 2000/09/28 13:26:04 seagull_kamome Exp $
  6. //
  7.  
  8.  
  9. #if !defined(H_ICONSUPPORT)
  10. #define H_ICONSUPPORT
  11.  
  12. #if defined(__cplusplus)
  13. extern "C" {
  14. #endif
  15.  
  16. #define MAX_ICONS 70
  17.  
  18. #define getIconImage(id) (loadedIcon[id].image)
  19. #define getIconDesc(id)  (loadedIcon[id].desc)
  20. #define getNumIconsLoaded() (numIconLoaded)
  21. #define getIconHeight(id) (8)
  22. #define getIconWidth(id) (8)
  23. #define getIconDataLength(id) (8)
  24. #define getIconRowBytes(id) (1)
  25. #define getIconColorDepth(id) (1)
  26.  
  27.  
  28. // initialize icon handling module.
  29. //  please call at first.
  30. void initializeIcon(void);
  31.  
  32. // draw an icon specified by id, to (x, y).
  33. void drawIcon(UInt8 id, int x, int y);
  34.  
  35. // event handler for icon select dialog.
  36. Boolean FrmIconSelectHandleEvent(EventPtr e);
  37.  
  38.  
  39. /////////////////////////////////////
  40. // Internal use only.
  41. //   don't direct access
  42. typedef struct tag_IconType {
  43.     char shortcut;
  44.     char desc[32];
  45.     UInt8 image[8];
  46. } IconType;
  47. extern UInt8 numIconLoaded;
  48. extern IconType loadedIcon[MAX_ICONS];
  49.  
  50.  
  51. #if defined(__cplusplus)
  52. }
  53. #endif
  54.  
  55.  
  56. #endif
  57.  
  58.  
  59.