home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / OS / FWGraphx / SLPalete.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.8 KB  |  73 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                SLPalete.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef SLPALETE_H
  11. #define SLPALETE_H
  12.  
  13. #ifndef SLCOLOR_H
  14. #include "SLColor.h"
  15. #endif
  16.  
  17. // Export or Import functions for CFM-68K [sfu]
  18.  
  19. #if defined(FW_ODFLIB_IMPORT)
  20. #pragma import on
  21. #elif defined(FW_ODFLIB)
  22. #pragma export on
  23. #endif
  24.  
  25. FW_EXTERN_C_BEGIN
  26.  
  27. //========================================================================================
  28. //    Palette type
  29. //========================================================================================
  30.  
  31. #ifdef FW_BUILD_WIN
  32. typedef HPALETTE    FW_Palette;
  33. #endif
  34.  
  35. #ifdef FW_BUILD_MAC
  36. typedef CTabHandle    FW_Palette;
  37. #endif
  38.  
  39. //========================================================================================
  40. //    Palette functions
  41. //========================================================================================
  42.  
  43. FW_Palette SL_API     FW_PrivCreatePalette(const FW_SColor* colors,
  44.                             short nColorCount);
  45.  
  46. short SL_API        FW_GetPaletteSize(FW_Palette palette);
  47.  
  48. void SL_API            FW_SetPaletteEntries(FW_Palette palette,
  49.                             const FW_SColor* colors,
  50.                             short nStartIndex,
  51.                             short nColorCount);
  52.  
  53. void SL_API            FW_GetPaletteEntries(FW_Palette palette,
  54.                             FW_SColor* colors,
  55.                             short nStartIndex,
  56.                             short nColorCount);
  57.  
  58. FW_Palette SL_API    FW_PrivCopyPalette(FW_Palette palette);
  59.  
  60. void SL_API            FW_DestroyPalette(FW_Palette palette);
  61.  
  62. FW_EXTERN_C_END
  63.                                 
  64. // For CFM-68K [sfu]
  65.  
  66. #if defined(FW_ODFLIB_IMPORT)
  67. #pragma import off
  68. #elif defined(FW_ODFLIB)
  69. #pragma export off
  70. #endif
  71.  
  72. #endif // SLPALETE_H
  73.