home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / clib / progs / timslib / TimsLib / h / IconLib < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.7 KB  |  53 lines

  1. /* 
  2.   IconLib.h - routines over and above RISC_OSLib and DeskLib.
  3. */
  4. /*                           
  5.  
  6.   #####                 #         #
  7.     #    #              #      #  #
  8.     #                   #         #
  9.     #   ##  ####   #### #     ##  ####
  10.     #    #  # # # #     #      #  #   #
  11.     #    #  # # #  ###  #      #  #   #
  12.     #    #  # # #     # #      #  #   #
  13.     #   ### # # # ####  ##### ### ####
  14.  
  15. -----------------------------------------------------------------------------
  16.  
  17. This is source for use with the 'DeskLib' Wimp C programming library for
  18. Risc OS. I currently use v1.04 of DeskLib.  This source is FreeWare, which
  19. means you can use it to write commercial applications, but you may not charge
  20. *in any way* for the distribution of this source.  I (Tim Browse) retain
  21. all copyright on this source.
  22.  
  23. This source is provided 'as is' and I offer no guarantees that is useful,
  24. bug-free, commented, that it will compile, or even that it exists.
  25.  
  26. If it breaks in half, you own both pieces.
  27.  
  28. All source © Tim Browse 1993
  29.  
  30. -----------------------------------------------------------------------------
  31.  
  32. */
  33.  
  34. /* DeskLib includes */
  35. #include "DeskLib.Wimp.h"
  36.  
  37. /* The following are used when examining icon flags/data.  A simple macro is
  38.    provide to find the type of an icon. */
  39.  
  40. #define NO_ICON_DATA 0
  41. #define TXT_ONLY     1
  42. #define SPR_ONLY     2
  43. #define TXT_AND_SPR  3
  44.  
  45. #define ICON_TYPE(flags) ((flags) & 3)
  46.  
  47. void IconLib_DisposeIndData(icon_data *data, icon_flags flags);
  48. /*
  49.   This will free any indirected data for this icon. It uses free(), so 
  50.   obviously expects that malloc() was used to get the memory in the first
  51.   place, so make sure this is the case if you use this function.
  52. */
  53.